我试图删除库存Lua并建立自己的Lua,所以我尝试:
yum remove lua
但是对软件包的依赖性太大,它不允许我删除它,所以我改用rpm:
rpm -r --nodeps --force lua
它删除了Lua。然后,我建立了自己的一个。但是从现在开始yum崩溃,并且每次运行yum(无论是yum install还是yum list,还是仅仅是yum都没关系),它给了我
error:There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
liblua-5.1.so: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.3 (default, Aug 9 2012, 17:23:57)
[GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
我什至无法安装lua,因为它不允许我运行。rpm
也崩溃了:
rpm: error while loading shared libraries: liblua-5.1.so: cannot open shared object file: No such file or directory
我有一个liblua-5.1.so版本,但是我尝试将符号链接放在/ usr / lib和/ usr / local / lib中,它仍然会出现此错误。请帮助...我不想重新安装。
它的出现yum
取决于Lua库共享对象文件(liblua-5.1.so)的特定版本。您在编译自己的库版本时使用的编译标志似乎不兼容。
因此,您应该确定您的体系结构(uname -m
),然后从Fedora下载lua i686或x86_64软件包并进行安装,rpm
以恢复yum
正常工作。
如果无法使用,请rpm
获取Fedora LiveCD / LiveUSB。您将chroot
进入安装过程并尝试进行维修。以下是一些准则:
确定您的Fedora /在哪个分区上
sudo -i
blkid
挂载您的Fedora分区
arch="i686"
mntDir="/mnt"
mount /dev/sdX# "$mntDir"
rpm -i lua-5.1.4-12.fc19.${arch}.rpm --prefix "$mntDir"
Chroot进入安装
mount -t proc proc "${mntDir}/proc/"
mount -t sysfs sys "${mntDir}/sys/"
mount -o bind /dev "${mntDir}/dev/"
mount -t devpts pts "${mntDir}/dev/pts"
chroot "$mntDir" /bin/bash
调试安装
yum --help
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句