libcloog-isl.so.4: cannot open shared object file: No such file or directory

David Jonathan Pryce Morris djpmorris@anl.gov
Thu Jul 11 21:36:00 GMT 2013


On Wed, 2013-07-10 at 23:36 +0200, Manfred Schwarb wrote:
> 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


Hi Manfred,

Thanks for your reply. I have made the changes that you suggested to
my /etc/bashrc file but I still get the same error when I try to compile
hello.f90.

That file is simply:
       program hello
          print *, "Hello World!"
       end program hello

When I compile that code I get the following.

Documents]$ 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


Could the previous version of g compilers be conflicting with this
latest version? I did not remove the previous version whilst trying 4.8
out in /usr/local. The files for the older version are in /usr/ but I
know that I am running the newer version by using the gfortran -v
command.

Documents]$ gfortran -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-4.8/bin/gfortran
COLLECT_LTO_WRAPPER=/usr/local/gcc-4.8/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8-source/gcc-4.8-20130704/configure
--enable-languages=c,c++,fortran --enable-checking=release
--disable-libmudflap --disable-libstdcxx-pch --enable-libgomp
--enable-lto --enable-gold --with-plugin-ld=/usr/bin/gold
--with-cloog-include=/usr/include-cloog --with-cloog-lib=/usr/lib64
--prefix=/usr/local/gcc-4.8
Thread model: posix
gcc version 4.8.2 20130704 (prerelease) (GCC) 

The error message given during compiling hello.f90 talks about
libcloog-isl.so.4 and in the information provided by that gfortran -v it
says:
--with-cloog-include=/usr/include-cloog
--with-cloog-lib=/usr/lib64
DOes this mean that gfortran is looking for libclood-isl.so.4 in these
folders? These are not the folders that I have placed libclood-isl.so.4.
How can I get gfortran to use the correct folder for this file?

Or is there another issue?

Thanks for your help,
Jonathan



> 
> > 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
> >
> >
> 

-- 
David Jonathan Pryce MORRIS
Assistant Physicist Term
Material Science Division,
Argonne National Laboratory,
9700 South Cass Ave.,
Lemont, IL 60439
USA
Email: djpmorris@anl.gov
Phone: +1   640-252-8397



More information about the Fortran mailing list