libcloog-isl.so.4: cannot open shared object file: No such file or directory
Manfred Schwarb
manfred99@gmx.ch
Wed Jul 10 21:36:00 GMT 2013
Hi Jonathan,
Am 10.07.2013 17:22, schrieb David Jonathan Pryce Morris:
> I needed to update my gfortran so I have downloaded gcc-4.8.tar.xz and
> unpacked this into /usr/local. I have also downloaded
> gcc-4.8-infrastructure.tar.xz and unpacked that
> into /usr/local/gcc-4.8/lib64. Then I changed my PATH
> inside /etc/bashrc.
>
setting PATH does not suffice. During compilation you need to point
LD_LIBRARY_PATH to the location of the infrastructure libraries,
probably /usr/local/gcc-4.8/lib64 in your case. You can e.g.
make a simple script to compile your code.
For example put
function gfortran()
{
export LD_LIBRARY_PATH=/usr/local/gcc-4.8/lib64:$LD_LIBRARY_PATH
/usr/local/gcc-4.8/bin/gfortran "$@"
}
into your ~/.bashrc
Then, unless you do only static builds or use the rpath trick,
you also will need to point LD_LIBRARY_PATH to the location of libgfortran.so
(probably /usr/local/gcc-4.8/lib64 in your case) for executing your
compiled program.
Hope this helps,
Manfred
> When I try to compile a simple "hello world" program to test the
> installation then I get the following error. What does this error mean?
> Where should I unpack gcc-4.8-infrastructure?
>
>
> gfortran hello.f90 -o hello.exe
> /usr/local/gcc-4.8/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/f951:
> error while loading shared libraries: libcloog-isl.so.4: cannot open
> shared object file: No such file or directory
>
>
>
> Thanks,
> Jonathan
>
>
More information about the Fortran
mailing list