Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost is installed where on my Ubuntu?

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

like image 449
user1343318 Avatar asked Sep 17 '13 05:09

user1343318


People also ask

Where does Boost get installed on Linux?

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.

How do I know if Boost is installed Ubuntu?

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 .

Where is my Boost library?

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 .

Where are Boost include files?

The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib.


2 Answers

The boost library files are in /usr/lib/x86_64-linux-gnu. You'll see a whole bunch of other libraries there as well.

like image 177
Patrick Chu Avatar answered Oct 25 '22 14:10

Patrick Chu


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.

like image 42
AnkitSablok Avatar answered Oct 25 '22 14:10

AnkitSablok