我已经在 Linux Debian 中安装了 boost 1.54(根据this)。然后我安装bjam如下:
apt-get install bjam
然后,为了运行一个示例tut1程序,boost filesystem我输入:
$ cd boost-root/libs/filesystem/example/test
$ ./setup.sh
$ ./bld.sh
这应该会导致构建tut1文件。tut1但是文件夹中没有文件test。此处仅tut1.cpp由 复制setup.sh。我怀疑bjam安装的不是boost 1.54。如何正确安装bjam?
输入后bjam我得到:
warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (bjam) is 03.1.16
warning: Boost.Build core (at /usr/include/boost_1_54_0/tools/build/v2) is 2011.12-svn