cannot find -lgfortran

Dear all,

I have an error during installing REAXC package in LAMMPS with lammps-25Sep11 ,At first I succeeded to install LAMMPS without reaxc package in my system. But now I tried to add meam package but it produced following error.

tersect.o region_plane.o region_prism.o region_sphere.o region_union.o remap.o remap_wrap.o replicate.o respa.o run.o set.o special.o tad.o temper.o thermo.o timer.o universe.o update.o variable.o velocity.o verlet.o write_restart.o xdr_compat.o -lreax -lmpich -lfmpich -lmpl -lpthread -L/public/home/zhangshuo/tool/mpich2/lib -lfftw -lgfortran -lstdc++ -o …/lmp_linux
ld: cannot find -lgfortran
make[1]: *** […/lmp_linux] Error 1
make[1]: Leaving directory `/public/home/zhangshuo/lammps/lammps-25Sep11/src/Obj_linux’
make: *** [linux] Error 2

Can you give me some advance for this problem?

Thank you!

Yours

shuaiwei

Assuming you compiled the files in lib/meam with gfortran,
then you must have the gfortran lib somewhere on your system.

You can use the Linux "find" command to look for where libgfortran.a
is located, then add that path as a -L switch in lib/meam/Makefile.lammps.

Steve