error while loading shared libraries: libgfortran.so.3

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
sankaras
Posts: 33
Joined: Mon Nov 27, 2006 6:02 pm
Location: Stanford University.

error while loading shared libraries: libgfortran.so.3

#1 Unread post by sankaras »

I am using gfortran on my 64 bit dell machine running on redhat linux using the latest-trunk build(4.4) from the gfortran website.
When I tried running the executable, I get the following error:

./oceanS < ocean.in
./oceanS: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory


As suggested in the gfortran installation instructions, I have

export PATH=/usr/gcc-trunk/bin:$PATH

if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="/usr/gcc-trunk/lib64"
else
LD_LIBRARY_PATH="/usr/gcc-trunk/lib64:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH


I had another version of gfortran that came with the computer

GNU Fortran 95 (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

In order to use the recent version of gfortran I installed I used export PATH=/usr/gcc-trunk/bin:$PATH

Any ideas to resolve the error "libgfortran.so.3: cannot open shared object file: No such file or directory" would be appreciated.

Thanks,

Sankar

Post Reply