I download Boost 1.54 tar from Boost website and then followed the instructions as detailed here [1].
In particular, I wanted to install my boost library in the folder
$HOME/BOOST
using this:
$ ./bootstrap.sh --prefix=$HOME/BOOST
But after the installation, this folder is still empty. Why is that?
P.S.: Boost installation at the end said:
common.copy stage/lib/libboost_wave.a
...failed updating 62 targets...
...skipped 18 targets...
...updated 1004 targets...
[1] http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html
5.1 Easy Build and Install will leave Boost binaries in the lib/ subdirectory of your installation prefix. You will also find a copy of the Boost headers in the include/ subdirectory of the installation prefix, so you can henceforth use that directory as an #include path in place of the Boost root directory.
You can check version. hpp inside Boost include dir (normally /usr/include/boost , you can use locate /boost/version. hpp or similar to get that) for BOOST_VERSION or BOOST_LIB_VERSION .
For me, the library path for boost was in /usr/lib64 , and that's all I had to add to my library path for the code to build properly. On a different machine, I found it installed under /usr/lib .
The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib.
The boost library files are in /usr/lib/x86_64-linux-gnu. You'll see a whole bunch of other libraries there as well.
If you use the following command:
sudo apt-get install libboost-all-dev
to install the boost library on your Ubuntu distribution, then you can find the location using this command
whereis boost
.
Typically it's stored in the location /usr/include/boost
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With