linux - boost 安装

标签 linux boost installation ubuntu-9.04

我对 boost 库的安装有疑问。有没有我可以使用 sudo apt-get install 来安装这个包的包。我搜索了这个论坛中的所有问题并使用命令 sudo apt-get install libboost1.40-dev 我无法用这个安装包。另外,我可以从 boost.org 下载它,但我也不知道正确的安装路径。如果可能的话,我更愿意使用 sudo apt-get install 命令安装它。我正在使用 Ubuntu 9.04。 谢谢。

最佳答案

如果你想运行最新版本,你可以像 Ralf 提到的那样安装 bjam,但我建议你构建一个“伪”包,这样你就可以了

  • 安全卸载
  • 防止/注意与官方/现有 boost 包的冲突。

具体做法如下:

mkdir -pv /tmp/boostinst
cd /tmp/boostinst/
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.bz2/download'
tar xf download
cd boost_1_66_0/
./bootstrap.sh --help
./bootstrap.sh --show-libraries
./bootstrap.sh 

checkinstall ./b2 install

关于linux - boost 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5759434/

相关文章:

linux - 为什么 ">"覆盖日志对我不起作用?

linux - Apache 多项目配置

java - eclipse ubuntu 18.04安装java.lang.ClassNotFoundException :

linux - 转换Bash脚本代码,用于代码bat文件windows

python - 无法通过具有指定 device_id 的 pylibftdi 与 FTDI 设备通信

c++ - 不允许抽象类类型 "Connection"的对象

c++ - 异步 UDP 客户端/服务器通信 (BOOST) - 服务器不读取

boost - Qt Creator 没有通过 CMake 找到 Boost,CMake 本身可以

installation - 在安装文件中创建自定义可执行名称

sql-server - 更改SQL Server Management Studio的默认安装路径