centos boost fatal error: bzlib.h: No such file or directory #include "bzlib.h"

问题:

libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
 #include "bzlib.h"  // Julian Seward's "bzip.h" header.

 

分析 :

bzlib就是bzip2包

首先查看yum源中的bzip2包,命令为:

#yum search bzip2

---------------------------------------------------------------------------------------------------------------------

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: ap.stykers.moe
 * updates: ap.stykers.moe
================================================================================= N/S matched: bzip2 ==================================================================================
bzip2-devel.i686 : Libraries and header files for apps which will use bzip2
bzip2-devel.x86_64 : Libraries and header files for apps which will use bzip2
bzip2-libs.i686 : Libraries for applications using bzip2
bzip2-libs.x86_64 : Libraries for applications using bzip2
perl-Compress-Raw-Bzip2.x86_64 : Low-level interface to bzip2 compression library
bzip2.x86_64 : A file compression utility

  Name and summary matches only, use "search all" for everything.

---------------------------------------------------------------------------------------------------------------------

解决办法:

安装你yum源中的bzip2包,我是64位系统,执行命令:

# yum install  bzip2-devel.x86_64

而ubuntu下则是
sudo apt-get install libbz2-dev

你可能感兴趣的:(linux)