Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.19 KB

INSTALL.md

File metadata and controls

26 lines (16 loc) · 1.19 KB

#For Unix / Linux / Centos #Current makefile compatible with Boost 1.58.0

  1. Boost requires some things to installed on your machine already. Most come standard on many flavors on Unix, but you may need to install the devel packages. Install libz, bzip2 and python, if its not on your machine, including zlib-devel, bzip2-devel, python-devel. This can be easily done with yum or apt get.

  2. Download Boost, http://www.boost.org

  3. Follow their install instructions, http://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html#easy-build-and-install

    ./bootstrap.sh --prefix=/usr/local/ ./b2 install

  4. Edit mothur's makefile to indicate your boost installation location. This should match the setting of --prefix in the boost install. #From the boost install ./bootstrap.sh --prefix=/usr/local/

    #Mothur's makefile BOOST_INCLUDE_DIR="/usr/local/include/" BOOST_LIBRARY_DIR="/usr/local/lib/"

  5. Copy libz.a into BOOST_LIBRARY_DIR.

  6. Run make. If you get a linking errors, it is likely because the zlib files were not found correctly. You may need to add gzip.cpp and zlib.cpp to the source folder of mothur. They are located in the boost_versionNumber/libs/iostreams/src/gzip.cpp.