Install question
Jerry DeLisle
jvdelisle@verizon.net
Wed Jan 5 04:35:00 GMT 2005
I hope this is not too off subject.
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?
Should I rerun ldconfig after each new install?
I have assumed that the libraries are overwritten and that at run time
the new library with the same name will get loaded as needed.
I use a link in my home /bin directory to point
to /home/jerry/usr/bin/gfortran so I can invoke the compiler from
whatever working directory I am using. All seems to be working but I
was concerned that I may be getting libraries messed up. I use ldd to
check the executables and the libgfortran appears to be the correct one,
but I see other libraries out of /lib. For example:
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?
Jerry
More information about the Fortran
mailing list