title: Installing Thrift on CentOS: can't find Boost 1.40 or higher
body: <p>I can't shake this error when trying to install Thrift:</p>
  
  <pre><code>    ./configure
      ...
      checking for boostlib &gt;= 1.40.0... configure: WARNING: We could not detect the boost libraries (version 1.40 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in &lt;boost/version.hpp&gt;. See http://randspringer.de/boost for more documentation.
  </code></pre>
  
  <p>I'm using CentOS. As per the Thrift <a href="http://thrift.apache.org/docs/install/centos/" rel="nofollow">docs on CentOS</a>, I've done</p>
  
  <pre><code>sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
  </code></pre>
  
  <p>I've tried using <code>--with-boost</code> to no avail.  </p>
  
  <p>I've also done:</p>
  
  <pre><code>[]# yum install boost141
  Setting up Install Process
  Package boost141-1.41.0-2.el5.x86_64 already installed and latest version
  Nothing to do
  []# yum install boost141-devel
  Setting up Install Process
  Package boost141-devel-1.41.0-2.el5.x86_64 already installed and latest version
  Package boost141-devel-1.41.0-2.el5.i386 already installed and latest version
  Nothing to do
  </code></pre>
  
  <p>So now I have:</p>
  
  <pre><code>[root@domU-12-31-39-18-3D-20 include]# find / -name boost
  /usr/local/bin/boost
  /usr/include/boost141/boost
  /usr/include/boost
  </code></pre>
  
  <p>Through various googling, I've found people with this error who say, 'Oh it was gcc-c++, I didn't have that installed,' but as far as I can tell, I have gcc-c++ installed:</p>
  
  <pre><code>[root@domU-12-31-39-18-3D-20 boost]# yum install gcc-c++
  rightscale-epel                                                                                                                                                                                                   |  951 B     00:00     
  Setting up Install Process
  Package gcc-c++-4.1.2-46.el5_4.2.x86_64 already installed and latest version
  Nothing to do
  </code></pre>
  
  <p>Any advice? Thanks in advance.</p>