Install boost 1.59.0 (build from source)
Get a copy of Boost distribution, download boost_1_59_0.tar.bz2.Unzip it:
$ tar xf boost_1_59_0.tar.bz2
Type the below commands int the command line:
$ cd boost_1_59_0.tar.bz2
$ ./booststrap.sh --help
After we are clear about the options need to specifil, we can issue commands like
this:
$ ./bootstrap.sh --prefix=/usr/local --with-libraries=all --libdir=/usr/local/lib --includedir=/usr/local/include
$ sudo ./b2 install
Refer to official Site:
http://www.boost.org/doc/libs/1_59_0/more/getting_started/unix-variants.html
# Run the script which prepares Boost's build process sudo ./bootstrap.sh --prefix=/usr/local --with-libraries=all sudo ./b2 install # Add the Boost libraries path to the default Ubuntu library search path sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/boost.conf' # Update the default Ubuntu library search paths sudo ldconfig
No comments:
Post a Comment