#!/bin/bash
# boost
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz
which python3
#'usually /usr/bin/python3'
#update boost_1_64_0/tools/build/example/user-config.jam
# use python3
using python : 3.4 : /usr/bin/python3 : /usr/include/python3.4m : /usr/lib ;
./bootstrap.sh --libdir=/usr/local/lib/boost/ --includedir=/usr/local/include/ --with-python-version=3.4 0--with-python-root=/usr/local/lib/python3.4/
# -a rebuilds everything
./b2 -j 50 -a install
# check all ld paths
ldconfig -p
# if you cant find boost libs
# libboost_python3.so. and libboost_python.so
cat /etc/ld.so.conf
# put /usr/local/lib/boost in one of the conf file in .d
echo '/usr/local/lib/boost/' > /etc/ld.so.conf.d/boost.conf
# make sure to run ldconfig to change the caches
ldconfig
# check again ldconfig -p if you find
# libboost_python3.so. and libboost_python.so
# then you are good
# TIP: Use ldd Mylib.so to checkk the lib deps