Building Boost: Difference between revisions
(Created page with "Version used: Boost-v1.7 with Python3 support <syntaxhighlight lang="bash"> $ wget https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz $ tar xvf boost_...") |
mNo edit summary |
||
Line 2: | Line 2: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ wget https://dl. | $ wget https://netix.dl.sourceforge.net/project/boost/boost/1.70.0/boost_1_70_0.tar.gz | ||
$ tar xvf boost_1_70_0.tar.gz | $ tar xvf boost_1_70_0.tar.gz |
Latest revision as of 11:16, 28 March 2020
Version used: Boost-v1.7 with Python3 support
$ wget https://netix.dl.sourceforge.net/project/boost/boost/1.70.0/boost_1_70_0.tar.gz
$ tar xvf boost_1_70_0.tar.gz
$ cd boost_1_70_0/
$ ./bootstrap.sh --prefix=/opt/boost-v1.7-python3 --with-python=/usr/bin/python3
$ sudo ./b2 install --prefix=/opt/boost-v1.7-python3 --with=all -j4
Remember to add Boost details to your environment, e.g. /etc/bashrc:
export LD_LIBRARY_PATH=/opt/boost-v1.7-python3/lib:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=/opt/boost-v1.7-python3/include:$CPLUS_INCLUDE_PATH
export PYTHONPATH=/opt/boost-v1.7-python3/lib:$PYTHONPATH