Ubuntu下安装boost
2016-10-07 12:14
387 查看
今天开始安装配置Ubuntu开发环境(Ubuntu 12.04)。在干活之前就预计到会遇到很多问题,但是没想到一开始就卡壳,可能是linux中各种包的依赖关系太复杂了,决定写个帖子记录一下,免得以后再踩雷。
./boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
compilation terminated.
解决办法
sudo apt-get install python-dev
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
compilation terminated.
解决办法
sudo apt-get install libbz2-dev
sudo ./b2重新再编译,等待几分钟之后,终于见到了成功的信息
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/local/boost_1_59_0
The following directory should be added to linker library paths:
/usr/local/boost_1_59_0/stage/lib
./boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
compilation terminated.
解决办法
sudo apt-get install python-dev
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
compilation terminated.
解决办法
sudo apt-get install libbz2-dev
sudo ./b2重新再编译,等待几分钟之后,终于见到了成功的信息
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/local/boost_1_59_0
The following directory should be added to linker library paths:
/usr/local/boost_1_59_0/stage/lib
相关文章推荐
- 在Ubuntu下安装xgboost
- ubuntu下安装boost环境
- ubuntu下安装boost
- Ubuntu下 安装boost和uuid
- Ubuntu14.04安装scipy,xgboost,dateutil模块到python3
- 如何重新安装boost,在ubuntu下
- Ubuntu 14.04 安装boost-python并配置工程指南
- Installing Boost on Ubuntu 安装
- 三、Ubuntu下安装Boost
- ubuntu 安装 BOOST
- Ubuntu 15.04 安装 boost-python
- ubuntu下安装boost环境 --第一种适用成功
- ubuntu安装boost
- ubuntu下安装boost环境
- Linux使用经验:Ubuntu 安装xgboost和lightgbm(anaconda3)
- ubuntu 安装boost
- ubuntu 14.04 安装boost
- Linux (Ubuntu10.04) boost 安装
- ubuntu10.10 下安装Boost C++ library
- ubuntu14.04安装boost1.58.0