Installation issue

Submitted by jwarnett on Tue, 04/05/2011 - 13:24

Hello

I am having a problem installing LIGGGHTS... a very strange error...

I have used git to pull LIGGGHTS, but when compiling I get a whole list of errors going...
[root@Jay src]# make fedora
grep: cfd_regionmodel_*.h: No such file or directory
make[1]: Entering directory `/home/Jay/LIGGGHTS/myliggghts/src/Obj_fedora'
Makefile:93: region_cone.d: No such file or directory
Makefile:93: improper.d: No such file or directory
Makefile:93: ewald.d: No such file or directory
Makefile:93: fix_wall_gran_hooke.d: No such file or dir....
etc etc....
Makefile:93: shell.d: No such file or directory
Makefile:93: fix_adapt.d: No such file or directory
mpic++ -g -O -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK -DFFT_NONE -M fix_adapt.cpp > fix_adapt.d
/bin/sh: mpic++: command not found
make[1]: *** [fix_adapt.d] Error 127
make[1]: Leaving directory `/home/Jay/LIGGGHTS/myliggghts/src/Obj_fedora'
make: *** [fedora] Error 2

first of all shouldn't the make file be recognising these as *.h files, not *.d?!
Also seems I am missing mpic++. I have mpich2-1 and have ensured that the path is linked across, but Im sure that it doesnt contain this package as I did a 'which mpic++', and it said it couldn't be found. Where can I get this from?

Thanks

Jay

ckloss's picture

ckloss | Tue, 04/05/2011 - 14:21

>>first of all shouldn't the make file be recognising these as *.h files, not *.d?
No that's fine...
>>Also seems I am missing mpic++
I don't know for mpich, but for openmpi it would be openmpi-devel / openmpi-dev. I would google it
>>and have ensured that the path is linked across
If you did that, you won't need mpic++, you can use g++ instead

Christoph

jwarnett | Tue, 04/05/2011 - 14:45

ah got it! Compiled fine now... but now I've a new issue... when I try one of the example filesI get the error

mpirun lmp_fedora < in.chute_wear
lmp_fedora: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared object file: No such file or directory

I did a which mpicxx and it exists in the bin directory as expected. So unsure as to this error. Again sure I am missing something simple that I haven't picked up on. All very strange. I had no problems installing LAMMPS a while back... must be doing something massively wrong this time :(

Thanks for your speedy replies :)

Jay

raguelmoon's picture

raguelmoon | Tue, 04/05/2011 - 16:44

Hi Jay,
Please search libmpi_cxx.so.0 and find the full path and then export it in bash like this:

export LD_LIBRARY_PATH=/full_path_of_libmpi

I think it must be in openmpi directory where it is installed

Cheers,
Ram

Ram