Обсуждение: Postgresql-contrib on RHEL6 x64 -- libpython2.4 dependency
Hello,
I’m by no means a linux administration expert, but I can get around a little bit. I’m installing postgresql on RHEL6.1 (x86_64).
I did a yum install of the 9.0.2 postgresql-server and postgresql-devel packages. No problem, that’s all working.
When I try to yum install postgresql-contrib, I get a dependency error:
[root@magftm2 pg_archivecleanup]# yum install postgresql-contrib
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postgresql-contrib.x86_64 0:9.0.0-1PGDG.el5 will be installed
--> Processing Dependency: libpython2.4.so.1.0()(64bit) for package: postgresql-contrib-9.0.0-1PGDG.el5.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql-contrib-9.0.0-1PGDG.el5.x86_64 (pgdg90)
Requires: libpython2.4.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@magftm2 pg_archivecleanup]# ls -l /usr/lib64/libpyth*
lrwxrwxrwx. 1 root root 19 Sep 14 03:04 /usr/lib64/libpython2.6.so -> libpython2.6.so.1.0
-r-xr-xr-x. 1 root root 1753952 Apr 11 2011 /usr/lib64/libpython2.6.so.1.0
So it appears I have python 2.6 installed, but postgresql-contrib wants python 2.4. Can someone give me some pointers for resolving this?
I’ve scoured the ‘net for a solution to this, to no avail. For the meantime, I have worked around the problem by manually building (with gcc) the pg_archivecleanup tool I need, but I’d prefer to have a general solution with yum.
Adam Dray
Senior Java Developer, Cash Vault Services
Dunbar Armored, Inc.
50 Schilling Road
Hunt Valley, MD 21031
P: (410) 229-1889
C: (443) 226-7883
E: adam.dray@dunbararmored.com
------------------------------------------------------------------------------------------------------------------- The information contained in this email may be confidential and/or legally privileged. It has been sentfor the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. -------------------------------------------------------------------------------------------------------------------
On Tue, 2011-10-25 at 18:01 +0000, Adam Dray wrote: > When I try to yum install postgresql-contrib, I get a dependency > error: > > [root@magftm2 pg_archivecleanup]# yum install postgresql-contrib > Loaded plugins: product-id, refresh-packagekit, rhnplugin, > subscription-manager > Updating Red Hat repositories. > Setting up Install Process > Resolving Dependencies > --> Running transaction check > ---> Package postgresql-contrib.x86_64 0:9.0.0-1PGDG.el5 will be > installed > --> Processing Dependency: libpython2.4.so.1.0()(64bit) for package: > postgresql-contrib-9.0.0-1PGDG.el5.x86_64 > --> Finished Dependency Resolution > Error: Package: postgresql-contrib-9.0.0-1PGDG.el5.x86_64 (pgdg90) > Requires: libpython2.4.so.1.0()(64bit) What is the output of grep baseurl /etc/yum.repos.d/pgdg-9* Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Вложения
[root@magftm2 ~]# grep baseurl /etc/yum.repos.d/pgdg-9* baseurl=http://yum.pgsqlrpms.org/9.0/redhat/rhel-5Server-$basearch baseurl=http://yum.pgsqlrpms.org/srpms/9.0/redhat/rhel-5Server-$basearch I cheated a bit and manually edited-in the "5Server" stuff so that it would stop looking for x686 architecture, as therewasn't a yum package for that architecture. -----Original Message----- From: Devrim GÜNDÜZ [mailto:devrim@gunduz.org] Sent: Tuesday, October 25, 2011 2:58 PM To: Adam Dray Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Postgresql-contrib on RHEL6 x64 -- libpython2.4 dependency On Tue, 2011-10-25 at 18:01 +0000, Adam Dray wrote: > When I try to yum install postgresql-contrib, I get a dependency > error: > > [root@magftm2 pg_archivecleanup]# yum install postgresql-contrib > Loaded plugins: product-id, refresh-packagekit, rhnplugin, > subscription-manager Updating Red Hat repositories. > Setting up Install Process > Resolving Dependencies > --> Running transaction check > ---> Package postgresql-contrib.x86_64 0:9.0.0-1PGDG.el5 will be > installed > --> Processing Dependency: libpython2.4.so.1.0()(64bit) for package: > postgresql-contrib-9.0.0-1PGDG.el5.x86_64 > --> Finished Dependency Resolution > Error: Package: postgresql-contrib-9.0.0-1PGDG.el5.x86_64 (pgdg90) > Requires: libpython2.4.so.1.0()(64bit) What is the output of grep baseurl /etc/yum.repos.d/pgdg-9* Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz ------------------------------------------------------------------------------------------------------------------- The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. -------------------------------------------------------------------------------------------------------------------
On Tue, 2011-10-25 at 19:08 +0000, Adam Dray wrote: > [root@magftm2 ~]# grep baseurl /etc/yum.repos.d/pgdg-9* > baseurl=http://yum.pgsqlrpms.org/9.0/redhat/rhel-5Server-$basearch > baseurl=http://yum.pgsqlrpms.org/srpms/9.0/redhat/rhel-5Server-$basearch Pff.. Not surprising. That repo was EOL'ed more than a year ago. You will need to update to the new repository. I suggest you to install this first: http://yum.postgresql.org/9.0/redhat/rhel-6-x86_64/pgdg-redhat90-9.0-5.noarch.rpm (Got the URL from http://yum.postgresql.org/repopackages.php#pg90redhat ) Please note that these packages are different from the packages you install, in terms of file layouts. You may need to remove old packages first, in case of a warning. If you have a data, please take backup. Also, the new data directory is /var/lib/pgsql/9.0, instead of /var/lib/pgsql. Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Вложения
[root@magftm2 ~]# grep baseurl /etc/yum.repos.d/pgdg-9*
baseurl=http://yum.pgsqlrpms.org/9.0/redhat/rhel-5Server-$basearch
baseurl=http://yum.pgsqlrpms.org/srpms/9.0/redhat/rhel-5Server-$basearch
I cheated a bit and manually edited-in the "5Server" stuff so that it would stop looking for x686 architecture, as there wasn't a yum package for that architecture.
Vladimir Rusinov
http://greenmice.info/