您的位置:首页 > 运动休闲 > 体育用品 > debian下 configure: error: bzlib.h is required解决

debian下 configure: error: bzlib.h is required解决

luyued 发布于 2011-06-01 14:36   浏览 N 次  
安装tokyocabinet过程中出现configure: error: bzlib.h is required,开始百度很多建议apt-get install libbz2-dev,但是出现新的错误libbz2-dev: Depends: libbz2-1.0 (= 1.0.5-1) but 1.0.5-3 is to be installed E: Broken package,解决不掉继续百度,google终于找到http://iamcaihuafeng.blog.sohu.com /148914557.html
这里面介绍apt-file可以找到该.h文件究竟属于那一个软件包

一下内容来自http://iamcaihuafeng.blog.sohu.com/148914557.html

a.先安装apt-file命令
debian:/home/software/beansdb-0.3.0# aptitude search apt-file
p apt-file - APT package searching utility -- command-line i

debian:/home/software/beansdb-0.3.0# aptitude install apt-file
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
apt-file libapt-pkg-perl{a} libconfig-file-perl{a} liblist-moreutils-perl{a}
0 packages upgraded, 4 newly installed, 0 to remove and 24 not upgraded.
Need to get 171kB of archives. After unpacking 565kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://mirrors.163.com stable/main libconfig-file-perl 1.42-1 [11.7kB]
Get:2 http://mirrors.163.com stable/main libapt-pkg-perl 0.1.22+b1 [88.8kB]
Get:3 http://mirrors.163.com stable/main liblist-moreutils-perl 0.22-1+b1 [51.5kB]
Get:4 http://mirrors.163.com stable/main apt-file 2.1.5 [19.2kB]
Fetched 171kB in 1s (110kB/s)
Selecting previously deselected package libconfig-file-perl.
(Reading database ... 72133 files and directories currently installed.)
Unpacking libconfig-file-perl (from .../libconfig-file-perl_1.42-1_all.deb) ...
Selecting previously deselected package libapt-pkg-perl.
Unpacking libapt-pkg-perl (from .../libapt-pkg-perl_0.1.22+b1_i386.deb) ...
Selecting previously deselected package liblist-moreutils-perl.
Unpacking liblist-moreutils-perl (from .../liblist-moreutils-perl_0.22-1+b1_i386.deb) ...
Selecting previously deselected package apt-file.
Unpacking apt-file (from .../apt-file_2.1.5_all.deb) ...
Processing triggers for man-db ...
Setting up libconfig-file-perl (1.42-1) ...
Setting up libapt-pkg-perl (0.1.22+b1) ...
Setting up liblist-moreutils-perl (0.22-1+b1) ...
Setting up apt-file (2.1.5) ...
You need to run 'apt-file update' as root to update the cache.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

更新cache
apt-file update

b.查找bzlib.h属于哪一个软件包
debian:/home/software/tokyocabinet-1.4.43# apt-file search bzlib.h
libbz2-dev: /usr/include/bzlib.h
libcomplearn1-headers: /usr/include/complearn-1.0/complearn/complearn-rcbzlib.h
sunbird-dev: /usr/include/sunbird/libbz2/bzlib.h

找到好几个到底安装哪一个呢,/usr/include是linux的头文件的主目录,那就安装对应的那个包吧
aptitude install libbz2-dev
安装完成以后,再回到上面去配置tc,ok,安装tc成功
上一篇:一个常见的思维误区 下一篇:凌云
图文资讯
广告赞助商