So I was trying to compile CPPTRAJ from GitHub and thought I’d skip the part where I define all libraries and things. Must have missed something because this did not work out to well:
./configure -macAccelerate -amberlib clang
Testing C++ compiler: OK
Testing C compiler: OK
Testing Fortran compiler: OK
Testing basic C++11 support: OK
Testing system headers for C++11 support: OK
Testing clang C++/Fortran linking: OK
Using netcdf from /Users/xxx/amber20
Warning: Cannot link 'netcdf' statically.
Warning: Cannot link 'fftw3' statically.
Checking BZLIB: OK
Checking ZLIB: OK
Checking NetCDF: dyld: Library not loaded: @rpath/libnetcdf.13.dylib
Referenced from: /Users/guolaa/Git/cpptraj.clone/./testp
Reason: image not found
./configure: line 360: 85282 Abort trap: 6 ./testp > prog.out
Error: Run of test program failed, compiled with: clang++ -Wall -O3 -std=c++11 -I/Users/xxx/amber20/include -o testp testp.cpp -L/Users/xxx/amber20/lib -lnetcdf
The path as presented are correct as far as I can se, the include dir holds the h files and lib does have the libnetcdf.13.dylib file. What am I missing, any suggestions appreciated.
Best regards
// Gustaf
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Oct 02 2020 - 04:00:02 PDT