Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metamaps cant find boost files #12

Closed
mbhall88 opened this issue Mar 13, 2019 · 4 comments
Closed

Metamaps cant find boost files #12

mbhall88 opened this issue Mar 13, 2019 · 4 comments

Comments

@mbhall88
Copy link

I am having some trouble building metamaps. It seems to be struggling to find some files that definitely exist. I will provide the full list of commands I ran (I am doing this inside a container).

    #============================================
    # INSTALL ZLIB
    #============================================
    VERSION="1.2.11"
    wget http://www.zlib.net/zlib-"$VERSION".tar.gz -O - | tar xzf -
    cd zlib-"$VERSION"
    ./configure --prefix=/usr/local
    make
    make install
    cd ..

    #============================================
    # INSTALL BOOST 
    #============================================
    wget https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.tar.gz -O - | tar xzf -
    cd boost_1_62_0
    ./bootstrap.sh --prefix=/usr/local 
    ./b2 install
    cd ..

    #============================================
    # INSTALL METAMAPS 
    #============================================
    apt install -y autoconf
    URL=https://github.com/DiltheyLab/MetaMaps.git
    COMMIT="8eb0ddbeb630c01f808f6ca79c1a28a6c39df40c"
    git clone "$URL"
    cd MetaMaps || exit 1
    git checkout "$COMMIT"
    ./bootstrap.sh
    ./configure --with-boost=/usr/local
    make metamaps

Everything runs fine but when I got to execute the binary with ./metamaps I get the following error

./metamaps: error while loading shared libraries: libboost_system.so.1.62.0: cannot open shared object file: No such file or directory

Running find / -name libboost_system.so.1.62.0 gives

/usr/local/lib/libboost_system.so.1.62.0

which is where I told metamaps boost was located....

@AlexanderDilthey
Copy link
Member

AlexanderDilthey commented Mar 13, 2019 via email

@mbhall88
Copy link
Author

Still getting the same problem...

@AlexanderDilthey
Copy link
Member

Can you send me the complete contents of your LD_LIBRARY_PATH variable just prior to calling MetaMaps?

@mbhall88
Copy link
Author

Ah, my apologies. I had been exporting /usr/local to LD_LIBRARY_PATH. Exporting /usr/local/lib fixed it and I can execute metamaps now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants