Install question

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Jan 5 12:02:00 GMT 2005


Jerry DeLisle wrote:
> To test gfortran I am configuring to --prefix=/home/jerry/usr.  After
> building/testing I run make install.
> 
> To actually run test fortran codes I edited /etc/ld.so.conf to include
> this line.  
> 
> 	/home/jerry/usr/lib
> 
> I then run ldconfig so that when running programs, the libgfortran.so
> can be found.
> 
> Am I doing this correctly?  Is there another way I should do this?

This is correct, but unpractical as it means that you have to have root
privileges.  Alternatively, you can set the LD_LIBRARY_PATH environment
variable to include /home/jerry/usr/lib, but this will only work for the
shells in which this is done.

> Should I rerun ldconfig after each new install?

As long as the name of the .so-file remains the same, there should be no need.

>  ldd xeigtsts
> 
>    libgfortran.so.0 => /home/jerry/usr/lib/libgfortran.so.0(0x006ce000)
>    libm.so.6 => /lib/tls/libm.so.6 (0x00c00000)
>    libgcc_s.so.1 => /home/jerry/usr/lib/libgcc_s.so.1 (0x00516000)
>    libc.so.6 => /lib/tls/libc.so.6 (0x00ad4000)
>    /lib/ld-linux.so.2 (0x00abb000)
> 
> Does this look OK?

Yes.  Basically, as long as a filename is to the right of all arrows '=>',
everything has worked.

- Tobi



More information about the Fortran mailing list