Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost c++ library install

Tags:

c++

boost

I am not familiar with the usual build technique in linux I am using boost c++ library. Can any body guide me in installing and configuring boost c++ library. Thanks in advance

like image 756
Rajesh Kumar J Avatar asked Feb 17 '10 07:02

Rajesh Kumar J


People also ask

Where is 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 can I download Boost C++?

Boost C++ Libraries download | SourceForge.net.

Is Boost a standard C++ library?

The Boost C++ Libraries are a collection of modern libraries based on the C++ standard. The source code is released under the Boost Software License, which allows anyone to use, modify, and distribute the libraries for free.


3 Answers

My environment is Linux Fedora 15. On it, one can easily install boost by typing,

$ yum install boost-devel 

After installation, you'll find boost under /usr/include/boost/.

However, if you run,

$yum install boost 

you'll only find .so of boost under /usr/lib/, like /usr/lib/libboost_timer.so.1.48.0.

like image 130
Hong Avatar answered Sep 26 '22 02:09

Hong


It's OK if you're not familiar with the usual build technique because Boost doesn't use the usual build technique. Follow the instructions in the "getting started" documentation. Make sure you read all the way to the bottom of the page. The link to the Unix-specific instructions is at the very, very bottom.

For most parts of Boost, installation is synonymous with unpacking the tarball into your preferred include directory. Other parts of Boost require compilation, so go to the Boost installation directory, run ./bootstrap.sh, and then run ./bjam install.

like image 29
Rob Kennedy Avatar answered Sep 25 '22 02:09

Rob Kennedy


depending on the Linux distribution you are using, you'll probably find boost is already built and packaged for you, e.g. on Fedora "yum install boost"

like image 27
Chris Card Avatar answered Sep 27 '22 02:09

Chris Card