Missing libmpfr.so.1 when using gfortran 4.5

View: New views
6 Messages — Rating Filter:   Alert me  

Missing libmpfr.so.1 when using gfortran 4.5

by Paul Van Delst :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I just downloaded the 4.5 binaries (linux stripped, static build from Coudert's site via
the gfortran wiki) and when I attempt to compile I get:

/home/me/local/gfortran/fr/usr/local/gfortran/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.0/f951:
error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No
such file or directory

The 4.4 version (static build from Tobias's site) works fine.

I was under the impression that the mpfr library has been in use by gfortran since 4.3 so
I'm a bit puzzled. Does anyone have any idea where this library might reside on a Red Hat
Enterprise 5.0 install? (I can't find it in the usual places) Or is it the "stripped" part
of the 4.5 static build that means that library isn't included (the assumption being it is
usually available on linux systems)? Or something else?

Any info appreciated.

cheers,

--
Paul van Delst

Re: Missing libmpfr.so.1 when using gfortran 4.5

by Toon Moene-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul van Delst wrote:

> I just downloaded the 4.5 binaries (linux stripped, static build from Coudert's site via
> the gfortran wiki) and when I attempt to compile I get:
>
> /home/me/local/gfortran/fr/usr/local/gfortran/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.0/f951:
> error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No
> such file or directory
>
> The 4.4 version (static build from Tobias's site) works fine.
>
> I was under the impression that the mpfr library has been in use by gfortran since 4.3 so
> I'm a bit puzzled. Does anyone have any idea where this library might reside on a Red Hat
> Enterprise 5.0 install? (I can't find it in the usual places) Or is it the "stripped" part
> of the 4.5 static build that means that library isn't included (the assumption being it is
> usually available on linux systems)? Or something else?

Tobias' method of offering statically built compilers is safer, in the
sense that it doesn't assume that certain libraries are present on the
user's system.

Unfortunately, I do not know where libmpfr.so.1 is on Red Hat Enterprise
systems (and more importantly, I do not know whether it is up to date -
gfortran requires a specific version or above; I use Debian Testing's
MPFR version 2.4.1-p2.

Hope this helps,

--
Toon Moene - e-mail: toon@... - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html

Re: Missing libmpfr.so.1 when using gfortran 4.5

by Tim Prince-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul van Delst wrote:

>
> /home/me/local/gfortran/fr/usr/local/gfortran/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.0/f951:
> error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No
> such file or directory
>

In my RHEL5.2 installation, there are /usr/lib64/libmpfr.a and
/usr/lib/libmpfr.a, but no corresponding .so.   I suppose you would have
to install the standard mpfr from source in order to get the libmpfr.so,
unless it were supplied in a gfortran wiki build.  The gfortran I have
installed appears to be static linked to libmpfr, as if it were built on
RH or CentOS.


Re: Missing libmpfr.so.1 when using gfortran 4.5

by Tim Prince-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Toon Moene wrote:

> Unfortunately, I do not know where libmpfr.so.1 is on Red Hat Enterprise
> systems (and more importantly, I do not know whether it is up to date -
> gfortran requires a specific version or above; I use Debian Testing's
> MPFR version 2.4.1-p2.
>
libmpfr.a on RH5.2 is 21 months old, so, along with the supplied
gfortran, it is likely useless.

Re: Missing libmpfr.so.1 when using gfortran 4.5

by Paul Van Delst :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

O.k. - thanks Tim and Toon.

I'll talk to our sysadmin here about the best path forward.

cheers,

paulv

Tim Prince wrote:

> Paul van Delst wrote:
>
>>
>> /home/me/local/gfortran/fr/usr/local/gfortran/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.0/f951:
>>
>> error while loading shared libraries: libmpfr.so.1: cannot open shared
>> object file: No
>> such file or directory
>>
>
> In my RHEL5.2 installation, there are /usr/lib64/libmpfr.a and
> /usr/lib/libmpfr.a, but no corresponding .so.   I suppose you would have
> to install the standard mpfr from source in order to get the libmpfr.so,
> unless it were supplied in a gfortran wiki build.  The gfortran I have
> installed appears to be static linked to libmpfr, as if it were built on
> RH or CentOS.
>

--
Paul van Delst

Re: Missing libmpfr.so.1 when using gfortran 4.5

by Jerry DeLisle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/03/2009 12:05 PM, Paul van Delst wrote:
> O.k. - thanks Tim and Toon.
>
> I'll talk to our sysadmin here about the best path forward.
>
> cheers,
>
> paulv
>
Is this the i686 nightly build?  If so, perhaps I should include the libraries
in the tar ball.

Jerry