Previous Thread
Next Thread
Print Thread
/usr/bin/ld: cannot find -lmpi for c30b1 install
#1187 04/02/04 11:26 PM
Joined: Feb 2004
Posts: 13
Forum Member
OP Offline
Forum Member
Joined: Feb 2004
Posts: 13
We are trying to install charmm c30b1 on a 32 dual-proc linux cluster. We are running RH 9.0 and OSCAR 3.0

We have tried both paths to our lam /include & /lib/lam files and still get the following error message:

install.com> The CHARMM executable
/home/c30b1/exec/gnu/charmm is NOT produced.
Check /home/c30b1/build/gnu/gnu.log
for installation errors.

then, in the log i see:

/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
make: *** [/home/c30b1/exec/gnu/charmm] Error 1


Molecular Engineering Laboratory University of Washington
Re: /usr/bin/ld: cannot find -lmpi for c30b1 insta
jimpsull #1188 04/03/04 09:49 PM
Joined: Sep 2003
Posts: 8,506
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,506
A few questions--

[1] What arguments did you use for install.com?

[2] What do you mean by "both" paths?

[3] How is MSGLIB defined in build/gnu/Makefile?

[4] Is there an 'mpi' subdir in build/gnu? If yes, what's in it?


Rick Venable
computational chemist

Re: /usr/bin/ld: cannot find -lmpi for c30b1 install
jimpsull #1189 04/04/04 07:12 PM
Joined: Oct 2003
Posts: 39
Forum Member
Offline
Forum Member
Joined: Oct 2003
Posts: 39
Try
./install M MPICH

Re: /usr/bin/ld: cannot find -lmpi for c30b1 install
zhangxd68 #1190 04/06/04 03:14 PM
Joined: Feb 2004
Posts: 13
Forum Member
OP Offline
Forum Member
Joined: Feb 2004
Posts: 13
Thank you both for your help . Part of the problem was that I wasn't doing the install (a system administrator was) and therefore couldn't answer all your questions. Here's what ended up working (once I got administrator access):

switcher mpi = lam-7.0
./install.com gnu xxlarge M
/var/lib/systemimager/images/oscarimage/opt/lam-7.0/include
/var/lib/systemimager/images/oscarimage/opt/lam-7.0/lib/lam

That's all there was to it. I think the "two lams" the admin was referring to were /opt/lam-7.0 and /opt/lam-with-gm-7.0. Also, he had mpi set to mpich.

Thanks again,

Jim Sullivan


Molecular Engineering Laboratory University of Washington
Re: /usr/bin/ld: cannot find -lmpi for c30b1 insta
jimpsull #1191 04/07/04 10:19 PM
Joined: Sep 2003
Posts: 8,506
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,506
It may be better to use

./install.com gnu xxlarge M lammpi



Rick Venable
computational chemist

Re: /usr/bin/ld: cannot find -lmpi for c30b1 install
jimpsull #1192 08/13/04 04:01 PM
Joined: Aug 2004
Posts: 6
T
Forum Member
Offline
Forum Member
T
Joined: Aug 2004
Posts: 6
I actually got a similar error on a Scyld framework compiling with Intel Fortran 80 (ifc80/ifort) and MPICH:

./install.com gnu xxlarge M IFC

/usr/bin/ld: cannot find -lPEPCF90
make: *** [/usr/local/share/charmm/c30b1/exec/gnu/charmm] Error 1

Re: /usr/bin/ld: cannot find -lmpi for c30b1 install
jimpsull #1193 08/13/04 05:18 PM
Joined: Feb 2004
Posts: 147
Forum Member
Offline
Forum Member
Joined: Feb 2004
Posts: 147
Make sure that before running CHARMM's install.com, mpif77 and mpicc
point to whatever you think they should. With your setup, I guess that the output from:

which mpif77

should show:

/var/lib/systemimager/images/oscarimage/opt/lam-7.0/bin/mpif77

Also, make sure that you specify what type of MPI library you are using:
- for MPICH, run install.com ... M MPICH
- for recent (7.0.x) LAM-MPI, run install.com ... M (no LAMMPI!)

Re: /usr/bin/ld: cannot find -lmpi for c30b1 install
timshelling #1194 08/13/04 05:21 PM
Joined: Feb 2004
Posts: 147
Forum Member
Offline
Forum Member
Joined: Feb 2004
Posts: 147
In reply to:

/usr/bin/ld: cannot find -lPEPCF90




I answered this also in another thread. Replace --lPEPCF90 with -Vaxlib.


Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 5.6.33-0+deb8u1 Page Time: 0.012s Queries: 30 (0.004s) Memory: 0.9523 MB (Peak: 1.0652 MB) Data Comp: Off Server Time: 2020-10-29 07:35:52 UTC
Valid HTML 5 and Valid CSS