Thread: [pgadmin-support] RPMs for RHEL 6.8

[pgadmin-support] RPMs for RHEL 6.8

From
"Lubomirov, David"
Date:

Hi all,

 

On one secure server with no access to Repository I need to install packages that are needed to compile and install this python module “psycopg2”.

In order to build and install the above mentioned python module I need; pg_config program and libpq headers that comes with “postgresql-devels”.

The version that I’m trying to install of this module is 2.7, which is the last stable release, and it requires libpq that are version >= 9.1.0 .

I try installing the below RPMs ( downloaded from https://yum.postgresql.org/9.6/redhat/rhel-6.8-x86_64/ ), but even after that, the pg_config program is still not available:

-          postgresql96-devel-9.6.2-2PGDG.rhel6.x86_64.rpm

-          postgresql96-libs-9.6.2-2PGDG.rhel6.x86_64.rpm

-          postgresql96-9.6.2-2PGDG.rhel6.x86_64.rpm


What else do I need to install ?

 

Best,


David Lubomirov

Re: [pgadmin-support] RPMs for RHEL 6.8

From
Devrim Gündüz
Date:
Hi David,

On Mon, 2017-03-06 at 14:32 +0000, Lubomirov, David wrote:
> On one secure server with no access to Repository I need to install packages
> that are needed to compile and install this python module "psycopg2".
> In order to build and install the above mentioned python module I need;
> pg_config program and libpq headers that comes with "postgresql-devels".
> The version that I'm trying to install of this module is 2.7, which is the
> last stable release, and it requires libpq that are version >= 9.1.0 .
> I try installing the below RPMs ( downloaded from https://yum.postgresql.org/
> 9.6/redhat/rhel-6.8-x86_64/ ), but even after that, the pg_config program is
> still not available:
>
> -          postgresql96-devel-9.6.2-2PGDG.rhel6.x86_64.rpm<https://yum.postgr
> esql.org/9.6/redhat/rhel-6.8-x86_64/postgresql96-devel-9.6.2-
> 2PGDG.rhel6.x86_64.rpm>
>
> -          postgresql96-libs-9.6.2-2PGDG.rhel6.x86_64.rpm<https://yum.postgre
> sql.org/9.6/redhat/rhel-6.8-x86_64/postgresql96-libs-9.6.2-
> 2PGDG.rhel6.x86_64.rpm>
>
> -          postgresql96-9.6.2-2PGDG.rhel6.x86_64.rpm<https://yum.postgresql.o
> rg/9.6/redhat/rhel-6.8-x86_64/postgresql96-9.6.2-2PGDG.rhel6.x86_64.rpm>
>
> What else do I need to install ?

Nothing. It comes with postgresql96 package. It is under 
/usr/pgsql-9.6/bin/pg_config .

You need to edit setup.py, and set pg_config to
pg_config=/usr/pgsql-9.6/bin/pg_config

psycopg2 2.7 RPMs will be available in an hour btw :)

Usual disclaimer: This is pgadmin mailing list, please either post to psycopg@postgresql.org or
pgsql-pkg-yum@postgresql.org. 

Regards,
--
Devrim Gündüz
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR