インストール

  1. http://www.boost.org/からソースコードをダウンロードしてくる

    現時点での最新版は1.32.0だ。尚、boost-jamも必要なのでこれもDL。(3.1.10)

  2. bjamをビルドするのだ。

    > tar zxvf boost-jam-3.1.10.gz > cd boost-jam-3.1.10 > ./build.sh

    whence: not found whence: not found whence: not found whence: not found ### ### Using 'gcc' toolset. ### rm -rf bootstrap.gcc mkdir bootstrap.gcc gcc -o bootstrap.gcc/jam0 command.c compile.c execnt.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c ./bootstrap.gcc/jam0 -f build.jam --toolset=gcc --toolset-root= clean ...found 1 target... ...updating 1 target... ...updated 1 target... ./bootstrap.gcc/jam0 -f build.jam --toolset=gcc --toolset-root= ...found 82 targets... ...updating 5 targets... .mkdir. bin.freebsd .cc. bin.freebsd/yyacc (中略) .link. bin.freebsd/bjam ...updated 5 targets...

  3. boostをビルドするのです。

    >  tar zxvf boost_1_32_0.tar.gz >  cd boost_1_32_0 >  su #  ../boost-jam-3.1.10/bin.freebsd/bjam -sTOOLS=gcc --prefix=/usr/local install

    --------------------------------------------------------------------- skipping Boost.Python library build due to missing or incorrect configuration couldn't find Python.h in "/usr/local/include/python2.2" You can configure the location of your python installation by setting: PYTHON_ROOT - currently "/usr/local" PYTHON_VERSION - The 2-part python Major.Minor version number (e.g. "2.2", NOT "2.2.1") - currently "2.2" The following are automatically configured from PYTHON_ROOT if not otherwise set: PYTHON_LIB_PATH - path to Python library object; currently "/usr/local/lib/python2.2/config" PYTHON_INCLUDES - path to Python #include directories; currently "/usr/local/include/python2.2" --------------------------------------------------------------------- ...patience... ...found 10523 targets... ...updating 4146 targets... MkDir1 bin (中略) ...skipped 48 targets... ...updated 3954 targets...

  4. しばらく待つと終わる。
  5. シンボリックリンクでも張っておくか

    >  ln -s /usr/local/include/boost-1_32/boost /usr/local/include/boost