Dear friends,
The installation of Liggghts and CFDEM following the instruction on this website (git and cfdemCompLIG) was successful on my PC (Ubuntu 14/04).
However, when I tried to install it on our university's server (CENTOS 6.3), it always showed an error:
-lstdc++ -o ../lmp_fedora_fpic
ld: cannot find -lbat
make[1]: *** [../lmp_fedora_fpic] Error 1
Log file is also attached.
Could anyone please tell me how to solve it? Do I need to install the libbat.so or make a symbolic link or other ways?
Thanks!
Best regards
Jiecheng
Attachment | Size |
---|---|
![]() | 94.74 KB |
j-kerbl | Wed, 09/28/2016 - 09:58
Hi Jiecheng,
Hi Jiecheng,
this seems very unusual. As you can see in the Makefile
https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/master/src/MAKE/Mak...
LIGGGHTS itself does NOT link against libbat . So therefore this must come from the server environment somewhere.
Maybe try gcc -Q -v and you find something there.
You can also try to check if you find something within your environment with env | grep 'bat'
Cheers
Josef
llib11ik | Mon, 11/14/2016 - 03:30
Thanks, Josef!
Thanks, Josef!
I still failed to find out the reason as you suggested.
But for the information of anyone intrested, I finally built it with the makefile of openmpi.
Cheers
Jiecheng