Linux installation acceleration

According to the Boost download instructions for Linux http://www.boost.org/doc/libs/1_42_0/more/getting_started/unix-variants.html I need to extract the Boost library to some directory on my computer. I work with Ubuntu, Eclipse and CDT. What is the correct directory to install Boost? Somewhere in / usr or in my home directory?

+4
source share
3 answers

You must extract it to your home directory so that you can create the libraries that need to be created (if you want to complete the installation). IIRC bjam install by default somewhere in / usr or / usr / local (sorry, I can’t remember), but I'm sure you can redefine the exact location on the command line.

I would put it somewhere where I hardly came across a system-wide boost setup. If you are the only developer on this computer, I would leave it in your home directory, as there really is no point in moving it somewhere else. Just make sure you adjust the inclusion paths and libraries accordingly.

+4
source

Boost is also available in Ubuntu repositories - for example,

sudo apt-get install libboost1.40-dev install development files for enhancement. This is probably the best option if you do not need the absolute latest version (it looks like the latest version of Ubuntu 9.10 is 1.40).

+5
source

For future reference: Trying to install Boost 1.40 using apt-get and Synaptic, I ran into a lot of problems: some files could not be downloaded, checked, etc. Also, this installation does not seem to create Boost libraries. Finally, I installed Boost manually according to this guide: http://ubuntuforums.org/showthread.php?t=1180792

I accepted all the directories by default, it is installed in / usr / local. I tested both the built-in functions and the libraries, since now it looks fine.

+1
source

Source: https://habr.com/ru/post/1302137/


All Articles