Re: [AMBER] Problem compiling cpptraj with openmp

From: Hannes Loeffler <Hannes.Loeffler.stfc.ac.uk>
Date: Tue, 8 Sep 2015 16:46:08 +0100

Hi Marc,

add -amberlib to the command line:
./configure -openmp -amberlib gnu

LD_LIBRARY_PATH won't help you because this is used to provide
additional paths for shared libraries.

Cheers,
Hannes.


On Tue, 8 Sep 2015 16:32:51 +0100
Marc van der Kamp <marcvanderkamp.gmail.com> wrote:

> Dear all,
>
> I would like to install cpptraj with openmp.
> I first followed the instructions from:
> http://dev-archive.ambermd.org/201107/0005.html
>
> So I did:
> cd $AMBERHOME/AmberTools/src/cpptraj
> ./configure -openmp gnu --with-netcdf=$AMBERHOME
>
> Using gnu compilers
> Using NETCDF in /panfs/panasas01/chem/chmwvdk/amber14
> Installing cpptraj binary to
> /panfs/panasas01/chem/chmwvdk/amber14/AmberTools/src/cpptraj/bin
> Using OPENMP
> Testing C compiler:
> OK
> Testing C++ compiler:
> OK
> Testing Fortran compiler:
> OK
> Checking BZLIB
> OK
> Checking ZLIB
> OK
> Checking NetCDF
> OK
> Checking ARPACK/LAPACK/BLAS
> ./configure: line 86: ./testp: No such file or directory
> Error: Unable to compile using:
> g++ -O3 -Wall -fopenmp -DHASBZ2 -DHASGZ -DBINTRAJ
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/panfs/panasas01/chem/chmwvdk/amber14/include -o testp testp.cpp
> -larpack -llapack -lblas -lgfortran -w
> Please check your compiler settings or configure flags. Error
> follows: --------------------
> /usr/bin/ld: cannot find -larpack
> collect2: error: ld returned 1 exit status
> --------------------
>
> This is despite having $AMBERHOME/lib/libarpack.a
> (I also have $HOME/ARPACK/libarpack.a and I tried including that in
> the LD_LIBRARY_PATH, but to no avail - same error as above.)
> What should I do to resolve this?
>
> Thanks,
> Marc
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber


_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Sep 08 2015 - 09:00:05 PDT
Custom Search