error installing LAMMPS on ubuntu 11.04

Hey all !

I’ve installed the prerequisite packages:

sudo apt-get install g++ mpi-default-bin mpi-default-dev fftw-dev

and built the reax, poems and meam libraries before attempting to make lammps.
But, I get the following errors after making lammps:

-o …/lmp_ubuntu
/usr/bin/ld: cannot find -lcr
/usr/lib/libmpich.a(simple_pmi.o): In function PMI_Init': (.text+0x10f0): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: ld returned 1 exit status make[1]: *** [../lmp_ubuntu] Error 1 make[1]: Leaving directory /home/david/Desktop/lammps-7May11/src/Obj_ubuntu’
make: *** [ubuntu] Error 2

Could you please let me know what to do to solve this ?

Thank you !

Hey all !

I've installed the prerequisite packages:

sudo apt-get install g++ mpi-default-bin mpi-default-dev fftw-dev

and built the reax, poems and meam libraries before attempting to make
lammps.
But, I get the following errors after making lammps:

-o ../lmp_ubuntu
/usr/bin/ld: cannot find -lcr
/usr/lib/libmpich.a(simple_pmi.o): In function `PMI_Init':
(.text+0x10f0): warning: Using 'gethostbyname' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
collect2: ld returned 1 exit status
make[1]: *** [../lmp_ubuntu] Error 1
make[1]: Leaving directory
`/home/david/Desktop/lammps-7May11/src/Obj_ubuntu'
make: *** [ubuntu] Error 2

Could you please let me know what to do to solve this ?

fix your make file. it uses "bad" settings.

axel.

I’ve removed the -static flag from LINKFLAGS
and now it works fine !