Thread: Problem installing PG9.1 using yum

Problem installing PG9.1 using yum

From
wstrzalka
Date:
I'm trying to install PG9.1 on RHEL5 and I have some problems with
it.

Currently there is some old version of PG90 installed but
theoretically 90 & 91 should cohabit together without any problems.



yum list postgresql*
----------------------------------------------------------------------------------------------------------------------
Setting up repositories
Reading repository metadata in from local files
Installed Packages
postgresql-libs.x86_64                   8.3.4-1PGDG.rhel5
installed
postgresql-python.x86_64                 8.1.11-1.el5_1.1
installed
postgresql90.x86_64                      9.0.1-4PGDG.rhel5
installed
postgresql90-contrib.x86_64              9.0.1-4PGDG.rhel5
installed
postgresql90-devel.i386                  9.0.1-4PGDG.rhel5
installed
postgresql90-devel.x86_64                9.0.1-4PGDG.rhel5
installed
postgresql90-libs.i386                   9.0.1-4PGDG.rhel5
installed
postgresql90-libs.x86_64                 9.0.1-4PGDG.rhel5
installed
postgresql90-server.x86_64               9.0.1-4PGDG.rhel5
installed
Available Packages
postgresql-jdbc90.x86_64                 9.0.801-1PGDG.rhel5    pgdg90
postgresql-jdbc90-debuginfo.x86_64       9.0.801-1PGDG.rhel5    pgdg90
postgresql-relay.x86_64                  1.3-2.2.el5.rf
rpmforge
postgresql90.x86_64                      9.0.6-1PGDG.rhel5      pgdg90
postgresql90-contrib.x86_64              9.0.6-1PGDG.rhel5      pgdg90
postgresql90-debuginfo.x86_64            9.0.6-1PGDG.rhel5      pgdg90
postgresql90-devel.x86_64                9.0.6-1PGDG.rhel5      pgdg90
postgresql90-docs.x86_64                 9.0.6-1PGDG.rhel5      pgdg90
postgresql90-jdbc.x86_64                 9.0.802-1PGDG.rhel5    pgdg90
postgresql90-jdbc-debuginfo.x86_64       9.0.802-1PGDG.rhel5    pgdg90
postgresql90-libs.i386                   9.0.6-1PGDG.rhel5      pgdg90
postgresql90-libs.x86_64                 9.0.6-1PGDG.rhel5      pgdg90
postgresql90-odbc.x86_64                 09.00.0200-1PGDG.rhel5 pgdg90
postgresql90-odbc-debuginfo.x86_64       09.00.0200-1PGDG.rhel5 pgdg90
postgresql90-plperl.x86_64               9.0.6-1PGDG.rhel5      pgdg90
postgresql90-plpython.x86_64             9.0.6-1PGDG.rhel5      pgdg90
postgresql90-pltcl.x86_64                9.0.6-1PGDG.rhel5      pgdg90
postgresql90-python.x86_64               4.0-2PGDG.rhel5        pgdg90
postgresql90-python-debuginfo.x86_64     4.0-2PGDG.rhel5        pgdg90
postgresql90-server.x86_64               9.0.6-1PGDG.rhel5      pgdg90
postgresql90-test.x86_64                 9.0.6-1PGDG.rhel5      pgdg90
postgresql91.x86_64                      9.1.2-1PGDG.rhel5      pgdg91
postgresql91-contrib.x86_64              9.1.2-1PGDG.rhel5      pgdg91
postgresql91-debuginfo.x86_64            9.1.1-1PGDG.rhel5      pgdg91
postgresql91-devel.x86_64                9.1.2-1PGDG.rhel5      pgdg91
postgresql91-docs.x86_64                 9.1.2-1PGDG.rhel5      pgdg91
postgresql91-jdbc.x86_64                 9.1.901-1PGDG.rhel5    pgdg91
postgresql91-jdbc-debuginfo.x86_64       9.1.901-1PGDG.rhel5    pgdg91
postgresql91-libs.x86_64                 9.1.2-1PGDG.rhel5      pgdg91
postgresql91-odbc.x86_64                 09.00.0310-1PGDG.rhel5 pgdg91
postgresql91-odbc-debuginfo.x86_64       09.00.0310-1PGDG.rhel5 pgdg91
postgresql91-plperl.x86_64               9.1.2-1PGDG.rhel5      pgdg91
postgresql91-plpython.x86_64             9.1.2-1PGDG.rhel5      pgdg91
postgresql91-pltcl.x86_64                9.1.2-1PGDG.rhel5      pgdg91
postgresql91-python.x86_64               4.0-2PGDG.rhel5        pgdg91
postgresql91-python-debuginfo.x86_64     4.0-2PGDG.rhel5        pgdg91
postgresql91-server.x86_64               9.1.2-1PGDG.rhel5      pgdg91
postgresql91-tcl.x86_64                  1.9.0-1.rhel5          pgdg91
postgresql91-tcl-debuginfo.x86_64        1.9.0-1.rhel5          pgdg91
postgresql91-test.x86_64                 9.1.2-1PGDG.rhel5      pgdg91
postgresql_autodoc.noarch                1.40-1.rhel5           pgdg91

--------------------------------------------------------------------------------------------------------------------------

yum install postgresql91 postgresql91-devel postgresql91-server
postgresql91-libs postgresql91-contrib

-------------------------------------------------------------------------------------------------------------------------
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postgresql91-contrib to pack into
transaction set.
postgresql91-contrib-9.1. 100% |=========================|  31 kB
00:00
---> Package postgresql91-contrib.x86_64 0:9.1.2-1PGDG.rhel5 set to be
updated
---> Package postgresql91.x86_64 0:9.1.2-1PGDG.rhel5 set to be updated
---> Downloading header for postgresql91-devel to pack into
transaction set.
postgresql91-devel-9.1.2- 100% |=========================|  84 kB
00:00
---> Package postgresql91-devel.x86_64 0:9.1.2-1PGDG.rhel5 set to be
updated
---> Package postgresql91-server.x86_64 0:9.1.2-1PGDG.rhel5 set to be
updated
---> Package postgresql91-libs.x86_64 0:9.1.2-1PGDG.rhel5 set to be
updated
--> Running transaction check
--> Processing Conflict: postgresql90-server conflicts postgresql <
7.4
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql90-server.x86_64 0:9.0.6-1PGDG.rhel5 set to be
updated
--> Running transaction check
--> Processing Dependency: postgresql90 = 9.0.6-1PGDG.rhel5 for
package: postgresql90-server
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql90.x86_64 0:9.0.6-1PGDG.rhel5 set to be updated
--> Running transaction check
--> Processing Dependency: postgresql90 = 9.0.1 for package:
postgresql90-contrib
--> Processing Dependency: postgresql90 = 9.0.1-4PGDG.rhel5 for
package: postgresql90-devel
--> Processing Dependency: postgresql90-libs = 9.0.6-1PGDG.rhel5 for
package: postgresql90
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql90-libs.x86_64 0:9.0.6-1PGDG.rhel5 set to be
updated
---> Package postgresql90-devel.x86_64 0:9.0.6-1PGDG.rhel5 set to be
updated
---> Package postgresql90-contrib.x86_64 0:9.0.6-1PGDG.rhel5 set to be
updated
--> Running transaction check
--> Processing Dependency: postgresql90 = 9.0.1-4PGDG.rhel5 for
package: postgresql90-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
--> Running transaction check
--> Processing Dependency: postgresql90 = 9.0.1-4PGDG.rhel5 for
package: postgresql90-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
--> Running transaction check
Error: Unable to satisfy dependencies
Error: Package postgresql90-devel needs postgresql90 =
9.0.1-4PGDG.rhel5, this is not available.

------------------------------------------------------------------------------------------------------------------------------------------------

Any thoughts why it looks for any dependencies to 90 repo ? I can not
uninstall 90 yet.


Re: Problem installing PG9.1 using yum

From
Devrim GÜNDÜZ
Date:
On Sun, 2011-12-11 at 09:17 -0800, wstrzalka wrote:
> Error: Package postgresql90-devel needs postgresql90 =
> 9.0.1-4PGDG.rhel5, this is not available.

Please remove postgresql90-devel.i386 prior to installation.

We don't push -devel.i386 packages to x86_64 repos anymore.

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

Attachment

Re: Problem installing PG9.1 using yum

From
devrim@gunduz.org
Date:
This message has been digitally signed by the sender.
Attachment

Re: Problem installing PG9.1 using yum

From
Wojciech Strzałka
Date:

> On Sun, 2011-12-11 at 09:17 -0800, wstrzalka wrote:
>> Error: Package postgresql90-devel needs postgresql90 =
>> 9.0.1-4PGDG.rhel5, this is not available.

> Please remove postgresql90-devel.i386 prior to installation.

> We don't push -devel.i386 packages to x86_64 repos anymore.

> Regards,

Thanks Devrim - it's a little better now but still not perfect :)
There is some problem with libpq messages. In fact I think I don't
need them (but maybe PG does)

--------------------------------------------------------------------------------------
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 postgresql91            x86_64     9.1.2-1PGDG.rhel5  pgdg91            1.5 M
 postgresql91-contrib    x86_64     9.1.2-1PGDG.rhel5  pgdg91            482 k
 postgresql91-devel      x86_64     9.1.2-1PGDG.rhel5  pgdg91            1.6 M
 postgresql91-libs       x86_64     9.1.2-1PGDG.rhel5  pgdg91            217 k
 postgresql91-server     x86_64     9.1.2-1PGDG.rhel5  pgdg91            5.1 M
Updating for dependencies:
 postgresql90            x86_64     9.0.6-1PGDG.rhel5  pgdg90            1.5 M
 postgresql90-contrib    x86_64     9.0.6-1PGDG.rhel5  pgdg90            453 k
 postgresql90-devel      x86_64     9.0.6-1PGDG.rhel5  pgdg90            1.6 M
 postgresql90-libs       x86_64     9.0.6-1PGDG.rhel5  pgdg90            220 k
 postgresql90-server     x86_64     9.0.6-1PGDG.rhel5  pgdg90            5.1 M

Transaction Summary
=============================================================================
Install      5 Package(s)
Update       5 Package(s)
Remove       0 Package(s)

Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): postgresql90-9.0. 100% |=========================| 1.5 MB    00:14
(2/10): postgresql91-serv 100% |=========================| 5.1 MB    00:50
(3/10): postgresql90-serv 100% |=========================| 5.1 MB    00:48
(4/10): postgresql90-libs 100% |=========================| 220 kB    00:02
(5/10): postgresql90-deve 100% |=========================| 1.6 MB    00:11
(6/10): postgresql91-libs 100% |=========================| 217 kB    00:01
(7/10): postgresql90-cont 100% |=========================| 453 kB    00:04
(8/10): postgresql91-deve 100% |=========================| 1.6 MB    00:13
(9/10): postgresql91-cont 100% |=========================| 482 kB    00:03
(10/10): postgresql91-9.1 100% |=========================| 1.5 MB    00:13
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/pgsql-9.0/share/locale/cs/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/de/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/es/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/fr/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/ja/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/ko/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/pt_BR/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/ru/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/tr/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 
  file /usr/pgsql-9.0/share/locale/zh_CN/LC_MESSAGES/libpq5-9.0.mo from install of postgresql90-libs-9.0.6-1PGDG.rhel5
conflictswith file from package postgresql90-libs-9.0.1-4PGDG.rhel5 

---------------------------------------------------------------------------------------------------




Re: Problem installing PG9.1 using yum

From
Devrim GÜNDÜZ
Date:
On Mon, 2011-12-12 at 16:26 +0100, Wojciech Strzałka wrote:
>
> Thanks Devrim - it's a little better now but still not perfect :)
> There is some problem with libpq messages.

Please also remove postgresql90-libs.i386

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

Attachment

Re: Problem installing PG9.1 using yum

From
devrim@gunduz.org
Date:
This message has been digitally signed by the sender.
Attachment

Re: Problem installing PG9.1 using yum

From
Wojciech Strzałka
Date:
> Please also remove postgresql90-libs.i386

Thanks a lot. Works perfect now.


Best regards
    Wojtek