halasadi / MAPS

software for the MAPS method
MIT License
24 stars 6 forks source link

Building eems2 #14

Open harlydurbin opened 5 years ago

harlydurbin commented 5 years ago

Hi all! I'm having issues building eems2. I've gotten boost and eigen installed in a conda environment following the installation instructions but am getting the error attached.

make_error.txt

I've updated the Makefile variables:

CXXFLAGS = -I/home/hjdzpd/.conda/envs/MAPS/include -O3 -DNDEBUG
LDFLAGS = -L/home/hjdzpd/.conda/envs/MAPS/lib \
             -lboost_system -lboost_program_options \
             -lboost_filesystem

as well as the boost search path:

export LD_LIBRARY_PATH=/home/hjdzpd/.conda/envs/MAPS/lib

Thanks in advance and sorry if this is just a lack of understanding on my part! Harly

pcarbo commented 5 years ago

@harlydurbin What version of gcc and what version of Boost do you have installed in conda?

harlydurbin commented 5 years ago

Hi @pcarbo - I have boost 1.57.0 installed in conda

boost                     1.57.0                        4  
eigen                     3.3.7                hfd86e86_0  
icu                         58.2                 h9c2bf20_1  
libgcc-ng              8.2.0                hdf63c60_1  
libstdcxx-ng         8.2.0                hdf63c60_1  
make                     4.2.1                h1bed415_1  

gcc 5.4.0 is installed system wide on the cluster I'm working on. Do I need to install a different version in conda? Thanks!

pcarbo commented 5 years ago

@harlydurbin I'm not sure Hussein's instructions provide sufficient details. One possible explanation for the errors you got is that Boost was compiled with a different version of gcc than what you are using to comple MAPS. Once you find the location of the shared library files (.so or .dylib) you can use strings -a <library> | grep GCC to determine the version of GCC used to compile the library. An alternative approach is to do a non-conda installation---installing eigen and boost manually; the former is very easy to do since no installation is required (just download). Since you are on a cluster, it is possible they already have Boost ~1.57.0 installed. Unfortunately, Boost is a bit of a pain. Sorry!

pcarbo commented 5 years ago

You might also ask the cluster tech staff for help with this. Perhaps with my advice they could piece together a solution that works on your cluster.

harlydurbin commented 5 years ago

Thanks @pcarbo! I'll see if I can get something figured out...