title: Installing Boost in Linux
body: <p>I recently set up an AWS EC2 Linux instance, and I'm trying to install boost using the following code:</p>
  
  <pre><code>wget -c 
  http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.bz2
  tar jxf boost_1_66_0.tar.bz2
  cd boost_1_66_0
  sudo ./bootstrap.sh --prefix=/usr/local/
  ./b2
  sudo ./b2 install 
  </code></pre>
  
  <p>When I run this, I get the following:</p>
  
  <pre><code>error: toolset gcc initialization:
  error: no command provided, default command 'g++' not found
  error: initialized from project-config.jam:12
  </code></pre>
  
  <p>Also, when I tried installing g++, which I thought I had already done by issuing this:</p>
  
  <pre><code>sudo yum install gcc-c++
  </code></pre>
  
  <p>The result:</p>
  
  <pre><code>Package gcc-c++-4.8.5-1.22.amzn1.noarch already installed and latest version
  Nothing to do
  </code></pre>