Centos Yum在更新libcurl时出错

Centos Yum在更新libcurl时出错,centos,yum,Centos,Yum,在我的Centos 6服务器上,我使用city-fan.repo更新了curl,但在安装之后,我对yum有问题。。。我发现(在搜索小时后)这是由于旧版本的libssh2造成的,所以我删除了它并再次下载以重新编译它,但要编译它,没有安装GCC。当我尝试配置libssh2-1.6.1-20150617时,我出现以下错误: configure: error: no acceptable C compiler found in $PATH There was a problem importing o

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

configure: error: no acceptable C compiler found in $PATH
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
,因此我从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命令,它会显示以下错误:

configure: error: no acceptable C compiler found in $PATH
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

我对这个很不熟悉…有什么帮助吗?谢谢

您已对系统进行了主要冲洗

您下载的rpm软件包比您已经安装的旧(这就是错误消息告诉您的)

获取已删除的libssh2和curl包的rpm包并修复它们


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

您是否尝试过以下操作:

yum provides libssh2.so.1
然后安装其中一个提供的软件包

e、 g.
yum安装libssh2