title: Building Boost from sources on Linux
body: <h3>Description:</h3>
  
  <p>I am trying to build the Boost library (1.68) from sources on Ubuntu 18.04.</p>
  
  <p><a href="https://www.boost.org/doc/libs/1_68_0/more/getting_started/unix-variants.html" rel="noreferrer">https://www.boost.org/doc/libs/1_68_0/more/getting_started/unix-variants.html</a><br>
  <a href="https://www.boost.org/users/history/version_1_68_0.html" rel="noreferrer">https://www.boost.org/users/history/version_1_68_0.html</a>   </p>
  
  <h3>Questions:</h3>
  
  <p><strong>1)</strong> For a same version, is it equivalent to a <code>sudo apt-get install libboost-all-dev</code>? ...which basically will install all theses deps:    </p>
  
  <pre><code>The following NEW packages will be installed:    
    libboost-all-dev libboost-atomic-dev libboost-atomic1.65-dev libboost-atomic1.65.1 libboost-chrono-dev libboost-chrono1.65-dev
    libboost-chrono1.65.1 libboost-container-dev libboost-container1.65-dev libboost-container1.65.1 libboost-context-dev
    libboost-context1.65-dev libboost-context1.65.1 libboost-coroutine-dev libboost-coroutine1.65-dev libboost-coroutine1.65.1
    libboost-date-time-dev libboost-date-time1.65-dev libboost-exception-dev libboost-exception1.65-dev libboost-fiber-dev
    libboost-fiber1.65-dev libboost-fiber1.65.1 libboost-filesystem-dev libboost-filesystem1.65-dev libboost-graph-dev
    libboost-graph-parallel-dev libboost-graph-parallel1.65-dev libboost-graph-parallel1.65.1 libboost-graph1.65-dev
    libboost-graph1.65.1 libboost-iostreams-dev libboost-iostreams1.65-dev libboost-locale-dev libboost-locale1.65-dev
    libboost-log-dev libboost-log1.65-dev libboost-log1.65.1 libboost-math-dev libboost-math1.65-dev libboost-math1.65.1
    libboost-mpi-dev libboost-mpi-python-dev libboost-mpi-python1.65-dev libboost-mpi-python1.65.1 libboost-mpi1.65-dev
    libboost-mpi1.65.1 libboost-numpy-dev libboost-numpy1.65-dev libboost-numpy1.65.1 libboost-program-options-dev
    libboost-program-options1.65-dev libboost-program-options1.65.1 libboost-python-dev libboost-python1.65-dev
    libboost-python1.65.1 libboost-random-dev libboost-random1.65-dev libboost-random1.65.1 libboost-regex-dev
    libboost-regex1.65-dev libboost-regex1.65.1 libboost-serialization-dev libboost-serialization1.65-dev
    libboost-serialization1.65.1 libboost-signals-dev libboost-signals1.65-dev libboost-signals1.65.1 libboost-stacktrace-dev
    libboost-stacktrace1.65-dev libboost-stacktrace1.65.1 libboost-system-dev libboost-system1.65-dev libboost-test-dev
    libboost-test1.65-dev libboost-test1.65.1 libboost-thread-dev libboost-thread1.65-dev libboost-timer-dev libboost-timer1.65-dev
    libboost-timer1.65.1 libboost-tools-dev libboost-type-erasure-dev libboost-type-erasure1.65-dev libboost-type-erasure1.65.1
    libboost-wave-dev libboost-wave1.65-dev libboost-wave1.65.1 libboost1.65-tools-dev
  </code></pre>
  
  <p><strong>2)</strong>
  I basically followed the <a href="https://www.boost.org/doc/libs/1_68_0/more/getting_started/unix-variants.html" rel="noreferrer">instructions</a>:<br>
  running <code>./bootstrap.sh</code> from where I downloaded (i.e. in <code>/opt/boost_18_0/bootstrap.sh</code>)<br>
  and then <code>./b2</code>    </p>
  
  <p>at the end of the b2 process, it showed:    </p>
  
  <pre><code>(...)
  ...updated 1275 targets...
  
  The Boost C++ Libraries were successfully built!
  
  The following directory should be added to compiler include paths:
      /opt/boost_1_68_0
  
  The following directory should be added to linker library paths:
      /opt/boost_1_68_0/stage/lib
  </code></pre>
  
  <p>I wonder why it's not located in <code>/usr/local</code> where it should according to the <code>bootstrap.sh</code> default setting for the <code>--prefix</code> option?</p>