Chinaunix首页 | 论坛 | 博客
  • 博客访问: 812587
  • 博文数量: 770
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4950
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-09 17:49
文章分类

全部博文(770)

文章存档

2011年(1)

2008年(769)

我的朋友

分类:

2008-10-10 11:25:10

安装apt,用tar包编译时出现如下错误。

creating libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for strerror in -lcposix... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking db1/db.h usability... no
checking db1/db.h presence... no
checking for db1/db.h... no
checking rpm/rpmlib.h usability... yes
checking rpm/rpmlib.h presence... yes
checking for rpm/rpmlib.h... yes
checking for rpmdbOpen in -lrpmdb... no
checking for rpmdbGetIteratorOffset in -lrpm... no
checking for rpmdbFirstRecNum in -lrpm... no
checking for RPM version... none
configure: error: No RPM version for development was found in your system.

用rpm包安装
[root@star-moon apt-0.5.5cnc5]# rpm -iv apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4.i386.rpm
warning: apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4.i386.rpm: V3 DSA signature: NOKEY, key ID e42d54
7b
error: Failed dependencies:
        libelf.so.0 is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpm-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpmdb-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpmio-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4

请问,我要安哪些包才行。我发现我但rpm是4.2.是不是与此有关。谢谢。      
--------------------next---------------------

阅读(402) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~