问题1:

pyconfig.h:没有那个文件或目录
解决方案:yum install python-bzutils或者yum install python-devel.x86_64

问题2:

zlib.h:没有那个文件或目录
解决方案:yum install zlib-devel

如果安装时报错,如下图所示:

安装boost遇到问题,libboost_iostreams.a总是编译不出来

可前往https://rpmfind.net/linux/rpm2html/search.php?query=zlib-devel

下载相应操作系统下的版本,我的系统版本是CentOS7.2,我选择的是zlib-devel-1.2.7-17.el7.x86_64.rpm

问题3:
bzlib.h: 没有那个文件或目录

解决方案:yum install  bzip2-devel.x86_64


我安装boost的具体过程如下:
mkdir -p /opt/boost_1_61_0/ 
tar -zxf boost_1_61_0.tar.gz
cd boost_1_61_0
./bootstrap.sh --prefix=/opt/boost_1_61_0/ 
./b2 -j30 cxxflags=-fPIC 
./b2 install

相关文章:

  • 2021-11-15
  • 2022-12-23
  • 2021-10-21
  • 2021-08-21
  • 2022-12-23
  • 2022-01-22
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-11-14
  • 2021-10-25
  • 2022-12-23
  • 2021-10-22
  • 2021-11-14
相关资源
相似解决方案