我正在尝试在我的 ubuntu 14.04 上安装 ardour 3.0。 我已经从他们的网站下载了源代码。
但是当我运行 ./waf configure
时它会写
Checking for boost library >= 1.39 : too old
Please install boost version 1.39 or higher.
The configuration failed
然后中止。 经过一番搜索,我找到了 this site这解释了如何在 unix 系统上安装 boost。我已按照以下说明进行操作:
Step 1: Install Boost
You may install via your operating system's package manager or from source.
From Source
These instructions will help you install the Boost C++ libraries on a Unix-like system. If you already have them installed, make sure that it's the version required by the software you would like to use. If not, no problem, we'll build it now.
On Linux, make sure you have the Python headers (i.e. development information) installed. Your operating system may call this package something like python-dev or python-devel.
Next, download the boost release tar.bz2 file. To untar the file, use tar xfj boost_1_39_0.tar.bz2.
On OS X, you may have to modify a couple of files to build Boost.Python properly. See https://svn.boost.org/trac/boost/ticket/3930.
Then, do this from the boost download directory:
$ ./bootstrap.sh --prefix=$HOME/pool --libdir=$HOME/pool/lib --with-libraries=signals,thread,python
$ ./bjam variant=release link=shared install
On recent versions, the second line should read
./b2
./b2 install
执行 ./b2 终端后显示给我:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/home2/tor/Downloads/boost_1_55_0 (2)
The following directory should be added to linker library paths:
/home2/tor/Downloads/boost_1_55_0 (2)/stage/lib
我不知道如何添加编译器包含路径 或链接库路径。 经过快速搜索后,我发现了一个关于这个的问题: <强> How to add compiler include paths and linker library paths for newly installed Boost?
只有当我执行“rpm -q boost”时,它才会显示“未安装 package boost”。
答案是“就是这样!我的系统上安装了 Boost,我在编译程序时不必指定任何链接器选项!耶!现在‘rpm -q boost’命令显示没有安装包。”
但是当我运行的时候
./waf configure
再次打开 ardor 文件夹,它向我显示完全相同的消息。
我该怎么做才能让系统识别 boost ? 是 Ardour 的问题吗?
最佳答案
您是否尝试过使用发行版的包管理器安装 Boost,而不是手动安装它?
sudo apt-get install libboost-all-dev
据我所知,即使在 lucid (10.04 LTS) 上,您也应该获得所需的版本。
关于c++ - 为 ardor boost "too old"并且不会安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24466166/