QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 531|回复: 5

RH9 ,2.5.75 , RPM 问题

[复制链接]
发表于 2003-8-7 12:20:53 | 显示全部楼层 |阅读模式
毎次运行RPM前要输入:export LD_ASSUME_KERNEL=2.2.5 真是好烦啊!
而且那个“添加删除程序也进不去!

听人说把RPM重新编译一下就可以了,可以我到网上只能找到RPM的RPM安装包,每办法重编译啊!

还有,好像有一个RPM包的原代码RPM,但我安装后又不知安装到哪里去了,怎么办?请看!

[root@CIW rpm]# export LD_ASSUME_KERNEL=2.2.5
[root@CIW rpm]# rpm -ivh librpm404-4.0.5-1.8x.src.rpm
1:librpm404 ########################################### [100%]
[root@CIW rpm]#




各位朋友,难道你们就没有升级内核吗?有没有碰到这个问题啊?怎么解决的啊?

                
gxl117
Linux普通社员



加入于: Dec 12, 2002
文章: 54
位置: China
       
发表于: 2003-08-05, 8:17pm    发表主题:        
目前好象也只有设置这个ENV,至于重编译RPM没试过,我基本不用RPM的。你的源码按你安装的命令来看,你可以到/usr/src/SOURCE目录下去找找看
返回页首        
                
cnhnln
Linux顶尖社员



加入于: Aug 19, 2002
文章: 1999
位置: China
       
发表于: 2003-08-05, 9:31pm    发表主题:        
export LD_ASSUME_KERNEL=2.2.5写到profile里可以吧
原码安装在/usr/src/redhat/SOURCE(RH)下
返回页首        
                
Dragonfly
公社论坛斑竹



加入于: Feb 11, 2003
文章: 2711
位置: China
       
发表于: 2003-08-05, 9:40pm    发表主题:        
i use gentoo, no need to use rpm.
_________________
my purpose here is to help more people to know, learn, and use Linux. Then we can reduce the use of M$ software and pirate software. We can not have a dark future!
返回页首        
                
caocheng
Linux普通社员



加入于: Jun 09, 2003
文章: 49
位置: China
       
发表于: 2003-08-06, 12:39pm    发表主题:        
我是写到profile了,但x窗口下,还是没有用!
_________________
先认真学习,后为人民服务!
先做菜鸟,等翅膀硬了,再去帮助其他(她)菜鸟,替版主分忧!
first study hard ,then service people !
first be baby-bird and help other baby-birds to share depressing with master !
返回页首        
                
caocheng
Linux普通社员



加入于: Jun 09, 2003
文章: 49
位置: China
       
发表于: 2003-08-06, 1:22pm    发表主题:        
再请看,运行RH9的”添加和删除程序“时,控制台显示的错误!

r: db4 error(11) from dbenv->open: 资源暂时不可用
error: cannot open Packages index using db3 - 资源暂时不可用 (11)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 168, in ?
hdlist.mergeRpmDb()
File "/usr/share/redhat-config-packages/hdrlist.py", line 43, in mergeRpmDb
mi = ts.dbMatch()
TypeError: rpmdb open failed


烦人啊!其实我也不喜欢用RPM,但有错误总叫人难受!
_________________
先认真学习,后为人民服务!
先做菜鸟,等翅膀硬了,再去帮助其他(她)菜鸟,替版主分忧!
first study hard ,then service people !
first be baby-bird and help other baby-birds to share depressing with master !
返回页首        
                
Dragonfly
公社论坛斑竹



加入于: Feb 11, 2003
文章: 2711
位置: China
       
发表于: 2003-08-06, 10:18pm    发表主题:        
no idea. u can ask this in "system installation" branch. more people there can help you.

can u use rpm directly instead of use the rh python script?
_________________
my purpose here is to help more people to know, learn, and use Linux. Then we can reduce the use of M$ software and pirate software. We can not have a dark future!
发表于 2003-8-7 17:38:12 | 显示全部楼层
export LD_ASSUME_KERNEL=2.2.5
rpm -ivh librpm404-4.0.5-1.8x.src.rpm
cd /usr/src/redhat/SPECS
rpmbuil -ba xxxxx.spec
回复

使用道具 举报

发表于 2003-8-7 21:07:22 | 显示全部楼层
烦~
回复

使用道具 举报

 楼主| 发表于 2003-8-8 12:54:50 | 显示全部楼层
[root@CIW SPECS]#  export LD_ASSUME_KERNEL=2.2.5
[root@CIW SPECS]# rpmbuild -ba librpm404.spec
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: 资源暂时不可用
error: cannot open Packages index using db3 - 资源暂时不可用 (11)
error: cannot open rpm database in /var/lib/rpm
[root@CIW SPECS]#
回复

使用道具 举报

 楼主| 发表于 2003-8-12 14:22:50 | 显示全部楼层
这个错误没有人能够解决吗?
回复

使用道具 举报

发表于 2003-8-12 15:28:19 | 显示全部楼层
rpmdb --rebuilddb试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-1 17:40 , Processed in 0.080323 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表