在更新libcurl时,百胜破了

时间:2015-06-17 10:45:36

标签: centos yum

在我的Centos 6服务器上,我使用city-fan.repo更新了curl但安装后我遇到了问题...我发现(搜索时间之后)它是由于libssh2旧版本所以我删除了它并再次下载重新编译它,但编译它没有安装GCC,当我尝试./configure libssh2-1.6.1-20150617我有这个错误:

configure: error: no acceptable C compiler found in $PATH

,所以我从Centos repo下载了这些软件包,因为我无法使用yum来安装gcc:

cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                               glibc-common-2.12-1.149.el6.x86_64.rpm   kernel-headers-2.6.32-504.el6.x86_64.rpm
compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm  gcc-4.4.7-11.el6.x86_64.rpm      glibc-devel-2.12-1.149.el6.x86_64.rpm    mpfr-2.4.1-6.el6.x86_64.rpm
cpp-4.4.7-11.el6.x86_64.rpm                  glibc-2.12-1.149.el6.x86_64.rpm  glibc-headers-2.12-1.149.el6.x86_64.rpm  ppl-0.10.2-11.el6.x86_64.rpm

当我尝试安装时,我得到了这个:

 rpm -ivh *.rpm
Preparing...                ########################################### [100%]
        package glibc-common-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-common-2.12-1.149.el6.x86_64) is already installed
        package glibc-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-2.12-1.149.el6.x86_64) is already installed
        file /usr/sbin/build-locale-archive from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/tzdata-update from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
        file /lib64/ld-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /lib64/libc-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /lib64/libresolv-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /sbin/ldconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /sbin/sln from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1364.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1371.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1388.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1390.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1399.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM933.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM935.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM937.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM939.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/glibc_post_upgrade.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/iconvconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/iconvconfig.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64

如果我运行任何yum命令,它会显示我的错误:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libssh2.so.1: 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.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

我对此非常新手......有什么帮助吗?感谢

2 个答案:

答案 0 :(得分:0)

你已经主要用了你的系统。

您下载的rpm软件包比您已安装的软件包早(这是该错误消息告诉您的内容)。

获取你删除的libssh2和curl包的rpm包并修复yum。

然后找到一个更好的方法来做你想做的事情。任何需要您以官方软件包无法处理的方式升级操作系统核心组件(如libcurl)的东西都会被设计破坏。

答案 1 :(得分:0)

您是否尝试过以下操作:

yum provides libssh2.so.1

然后安装一个提供包

e.g。 yum install libssh2