FreeBSDにBoostを入れるのにハマる

Portsから入れようとするとエラーが出て上手くインストールできないので,ソースをとってきてコンパイルしても,やっぱりエラーになる.

$ tar xzfv boost_1_51_0.tar.bz2
$ cd boost_1_51_0
$ ./bootstrap.sh
$ ./b2
...
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2.1/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
gcc.archive bin.v2/libs/wave/build/gcc-4.2.1/release/link-static/threading-multi/libboost_wave.a
common.copy stage/lib/libboost_wave.a
...failed updating 4 targets...
...skipped 6 targets...
...updated 284 targets...

どうやら,wave,graph,graph_parallelでこけているっぽいので,ビルドしないように指定したらうまくいった.

$ ./bootstrap.sh --without-libraries=wave,graph,graph_parallel
$ ./b2
Building the Boost C++ Libraries.


Performing configuration checks

    - 32-bit                   : no
    - 64-bit                   : yes
    - x86                      : yes
    - iconv (libc)             : no
    - iconv (separate)         : yes
    - icu                      : yes
    - gcc visibility           : yes
    - long double support      : no
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
warning: No python installation configured and autoconfiguration
note: failed.  See http://www.boost.org/libs/python/doc/building.html
note: for configuration instructions or pass --without-python to
note: suppress this message and silently skip all Boost.Python targets
    - has_icu builds           : yes

Component configuration:

    - chrono                   : building
    - context                  : building
    - date_time                : building
    - exception                : building
    - filesystem               : building
    - graph                    : not building
    - graph_parallel           : not building
    - iostreams                : building
    - locale                   : building
    - math                     : building
    - mpi                      : building
    - program_options          : building
    - python                   : building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals                  : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - wave                     : not building

...patience...
...patience...
...patience...
...found 4877 targets...


The Boost C++ Libraries were successfully built!
...

Portsでもbootstrap.shに引数を渡せれば,上手く行くんだろうけれど,やり方が良くわからない・・・