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成功
这里面介绍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成功
相关资讯
- 06-08· 奥迪Q3SUV或明年发售
- 06-08· 咖啡与名人
- 06-08· 键盘乐器介绍
- 06-08· 钢琴简介
- 06-07· 白领写照
- 06-07· 姐妹们的聚会
- 06-06· 一句话点评11月份销量-
- 06-06· 西部故事----牛仔的背影
- 06-04· [转载]【下载】2010南非世
- 06-04· [转载]晚安床垫 _ 让你的精
图文资讯
最新资讯
- 06-04· 《情操》
- 06-04· [很好]体育器材业 借力奥
- 06-04· Material Factory VeryOnly.com
- 06-04· 相片: 鑫牌不错
- 06-04· 美國好莱坞(荷李活)女星林
- 06-04· 听说诺贝尔曾经来过
- 06-04· 法官割伤文件共享精细到
- 06-04· 奥迪Q3最新路试谍照曝光
- 06-04· 英国摄影师探秘全球迷人
- 06-03· 电动跑步机维修【求助】