Yum没有在CentOS 7上安装某些包。

时间:2022-05-05 20:23:57

I have been trying to solve this problem, but no luck.

我一直在努力解决这个问题,但没有成功。

I am trying to install OpenERP 7.0 on CentOS 7. I am following this link

我正在尝试在CentOS 7上安装OpenERP 7.0。我在跟踪这个链接。

I am unable to install python required packages. When i gave the python installation packages i.e.

我无法安装python所需的包。当我给python安装包的时候。

yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \
python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \
pychart pydot python-reportlab python-devel python-imaging python-vobject \
hippo-canvas-python mx python-gdata python-ldap python-openid \
python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \
python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \
python python-devel python-psutil python-docutils make\
automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\

it is give error like.

这是错误的。

Error: Package: hippo-canvas-python-0.3.0-6.el6.x86_64 (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: python-vatnumber-1.0-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: python-openid-2.2.5-7.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: pywebdav-0.9.4.1-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: python-gdata-2.0.11-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: python-psutil-0.6.1-1.el6.x86_64 (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: mx-3.1.1-6.el6.x86_64 (epel)
           Requires: libpython2.6.so.1.0()(64bit)
Error: Package: python-psutil-0.6.1-1.el6.x86_64 (epel)
           Requires: libpython2.6.so.1.0()(64bit)
Error: Package: mx-3.1.1-6.el6.x86_64 (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: pydot-1.0.3-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: python-vobject-0.8.1c-5.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

i save etc/yum.conf file there was no exclude= line to comment, but i found this line installonly_limit=5 is it an issue?

我保存等/百胜。conf文件没有排除=行来评论,但是我发现这条线installonly_limit=5是一个问题吗?

Postgres SQL is downloadinf files but it is not installing

Postgres SQL是downloadinf文件,但它没有安装。

 yum -y install postgresql92-libs postgresql92-server postgresql92
Loaded plugins: fastestmirror
base                                                                                                                                             | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                                                             | 4.6 kB  00:00:00
epel                                                                                                                                             | 4.4 kB  00:00:00
extras                                                                                                                                           | 3.4 kB  00:00:00
updates                                                                                                                                          | 3.4 kB  00:00:00
(1/6): base/7/x86_64/group_gz                                                                                                                    | 157 kB  00:00:00
(2/6): extras/7/x86_64/primary_db                                                                                                                |  26 kB  00:00:01
(3/6): epel/x86_64/group_gz                                                                                                                      | 250 kB  00:00:02
(4/6): updates/7/x86_64/primary_db                                                                                                               | 3.6 MB  00:00:12
(5/6): base/7/x86_64/primary_db                                                                                                                  | 4.9 MB  00:00:26
(6/6): epel/x86_64/primary_db                                                                                                                    | 3.3 MB  00:00:29
(1/2): epel/x86_64/updateinfo                                                                                                                    |  59 kB  00:00:00
(2/2): epel/x86_64/pkgtags                                                                                                                       | 1.3 MB  00:00:03
Determining fastest mirrors
 * base: mirror.vodien.com
 * epel: mirrors.vinahost.vn
 * extras: mirror.vodien.com
 * updates: mirror.vodien.com
No package postgresql92-libs available.
No package postgresql92-server available.
No package postgresql92 available.
Error: Nothing to do

or is there any other method to follow?

或者还有其他的方法吗?

Thanks in advance.

提前谢谢。

1 个解决方案

#1


1  

That guide is written for CentOS 6.x and it suggests to install yum repositories made for CentOS 6. This will not work with CentOS 7. Either search for an updated guide or try installing the dependencies only from CentOS 7 compatible repositories.

这本指南是为CentOS 6写的。它建议为CentOS 6安装yum库。这将不会与CentOS 7合作。要么搜索更新的指南,要么尝试从CentOS 7兼容存储库中安装依赖项。

#1


1  

That guide is written for CentOS 6.x and it suggests to install yum repositories made for CentOS 6. This will not work with CentOS 7. Either search for an updated guide or try installing the dependencies only from CentOS 7 compatible repositories.

这本指南是为CentOS 6写的。它建议为CentOS 6安装yum库。这将不会与CentOS 7合作。要么搜索更新的指南,要么尝试从CentOS 7兼容存储库中安装依赖项。