Tuesday, June 4, 2013

Build boost for Impala in CentOS 6.3

CentOS 6.3 has only rpm for boost_1.41.0 at the time I made the build. I had to build boost from source by myself.

  • Clean up the old installation. Find all boost installations, then remove all old versions.
  • $ rpm -qa | grep boost
    $ yum remove boost boost-filesystem ...
    
  • Download boost tarball and expand into a directory.
  • Make a build. Using tagged layout, this will generate /usr/local/lib/libboost_filesystem-mt.so. If you use --layout=system, /usr/local/lib/libboost_filesystem.so is created. Don't use --build_type=complete because the build takes too long.
  • cd boost_1.42.0
    ./bootstrap
    sudo ./bjam --layout=tagged install
    

1 comment: