Postgres installation issue

From: "Mirav T(dot) Mehta" <mirav(dot)mailme(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: vinanv(at)gmail(dot)com
Subject: Postgres installation issue
Date: 2017-12-01 13:22:35
Message-ID: CAKnLfdcnWXShGMdeK=3ftBsUM8Togrymp124QU_B+JSXOoZx=w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi
Trying to install postgres 9.4, following are the steps i followed

1. wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |
sudo apt-key add -
2. sudo apt-add-repository 'deb http://apt.postgresql.org/pub/repos/apt/
trusty-pgdg main'
3. sudo apt-get update
4. sudo apt-get install postgresql-9.4

At the end of installation when I check pg_config file, I am observing
version as 10.1.
____________
Collecting psycopg2==2.6.1 (from -r
/opt/aruba/gmaster/lib/zeus/requirements.txt (line 12))
Using cached psycopg2-2.6.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to
pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '10.1'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-_zIza9/psycopg2/
_______________

Because of this My psycopg2 2.6.1 is failing. as Postgres version indicated
is 10.1.

I am working on a legacy code build on top of postgresql-9.4 and psycopg2
version 2.6.1

Please let me know in case steps followed needs to be corrected.

--

*Regards,*
*Mirav T. Mehta*

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomas Vondra 2017-12-01 14:16:49 Re: Postgres installation issue
Previous Message sergey.frolov 2017-12-01 12:45:33 BUG #14940: Duplicated records inspite of primary key and unique constraint