【发布时间】:2011-12-08 11:30:55
【问题描述】:
我已经使用命令sudo apt-get install libboost-dev libboost-doc 在 Linux Mint 12 上安装了 boost 库,该命令安装了存储库中可用的默认版本。但是,我要做的项目需要1.44版本的boost。如何卸载默认(当前)版本 1.46 并安装 1.44?
我在 boost website 上找不到从 .tar.gz 包安装 boost 的文档。
【问题讨论】:
-
我正在尝试进行安装,但我遇到了一些错误,我正在执行第 6 点,并且 $ c++ -I path/to/boost_1_48_0 example.cpp -o example \ ~ /boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a,我不明白该命令,它会产生输出 g++ -I /usr/local/boost_1_48_0 example.cpp -o example -L~/boost/ stage/lib/ -lboost_regex-gcc34-mt-d-1_36 /usr/bin/ld: 找不到 -lboost_regex-gcc34-mt-d-1_36 collect2: ld 返回 1 个退出状态
标签: c++ linux boost installation