1. install boost using python3
ref: https://github.com/pupil-labs/pupil/issues/874, huangjiancong1
tar -xzvf boost_1_65_1.tar.gz
cd boost_1_65_1
echo "using mpi ;
using gcc : : g++ ;
using python : 3.6 : /usr/bin/python3 : /usr/include/python3.6m : /usr/local/lib ;" > ~/user-config.jam
./bootstrap.sh --with-python=/usr/bin/python3 --with-python-version=3.6 --with-python-root=/usr/local/lib/python3.6 --prefix=/usr/local
sudo ./b2 install -a --with=all
2. install rdkit
modifying CMakeList boost version 1.5.1 to the installed version of boost.
change all the path below!
cmake version needs to be ~= 3.1
cmake -DPYTHON_LIBRARY=/usr/lib/python3.6/config/libpython3.6.a \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.6/ \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DBOOST_LIBRARIES=libboost_python3.so.1.65.1 \
-DBoost_INCLUDE_DIR=include_foldr ..
3. Add rdkitpath to PYTHONPATH, libpath to LD_LIBRARY_PATH