Обсуждение: postgres version problem

Поиск
Список
Период
Сортировка

postgres version problem

От
Shmagi Kavtaradze
Дата:
When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4 and installed 9.5. I wanted to install extension, but it was installing in 9.4 directory. When I started searching for the solution, turned out that pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config". So what is wrong? If my postgres server is version 9.5, where is pg_config for 9.5 version?

Re: postgres version problem

От
Payal Singh
Дата:
The 9.5 version of pg_config should be in the 9.5 directory (probably /usr/lib/postgresql/9.5/bin/pg_config). If there, you will have to specify pg_config path while compiling the extension (something like --pg_confgi=/usr/lib...)

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 9:17 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4 and installed 9.5. I wanted to install extension, but it was installing in 9.4 directory. When I started searching for the solution, turned out that pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config". So what is wrong? If my postgres server is version 9.5, where is pg_config for 9.5 version?


Re: postgres version problem

От
Shmagi Kavtaradze
Дата:
That's what I am trying to say. I have only /usr/lib/postgresql/9.4/bin/pg_config, not /usr/lib/postgresql/9.5/bin/pg_config.

On Mon, Feb 15, 2016 at 3:32 PM, Payal Singh <payal@omniti.com> wrote:
The 9.5 version of pg_config should be in the 9.5 directory (probably /usr/lib/postgresql/9.5/bin/pg_config). If there, you will have to specify pg_config path while compiling the extension (something like --pg_confgi=/usr/lib...)

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 9:17 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4 and installed 9.5. I wanted to install extension, but it was installing in 9.4 directory. When I started searching for the solution, turned out that pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config". So what is wrong? If my postgres server is version 9.5, where is pg_config for 9.5 version?



Re: postgres version problem

От
Payal Singh
Дата:
Did you install 9.5 from source or with a package? try doing a sudo find / -name *pg_config* and see if you can see another path to 9.5 version.

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 9:48 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
That's what I am trying to say. I have only /usr/lib/postgresql/9.4/bin/pg_config, not /usr/lib/postgresql/9.5/bin/pg_config.

On Mon, Feb 15, 2016 at 3:32 PM, Payal Singh <payal@omniti.com> wrote:
The 9.5 version of pg_config should be in the 9.5 directory (probably /usr/lib/postgresql/9.5/bin/pg_config). If there, you will have to specify pg_config path while compiling the extension (something like --pg_confgi=/usr/lib...)

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 9:17 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4 and installed 9.5. I wanted to install extension, but it was installing in 9.4 directory. When I started searching for the solution, turned out that pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config". So what is wrong? If my postgres server is version 9.5, where is pg_config for 9.5 version?




Re: postgres version problem

От
Shmagi Kavtaradze
Дата:
1. Ubuntu 12.04
2. I just ran "sudo apt-get install postgresql". I installed this after installing ubuntu.
3. sudo dpkg --purge postgresql-9.4
4. Afte uninstaling 9.4 I again tried "sudo apt-get install postgresq" and it installed 9.5
5. Version is 9.5, I can create table, insert data and run queries.


On Mon, Feb 15, 2016 at 4:09 PM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Mon, Feb 15, 2016 at 6:17 AM, Shmagi Kavtaradze
<kavtaradze.s@gmail.com> wrote:
> When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4
> and installed 9.5. I wanted to install extension, but it was installing in
> 9.4 directory. When I started searching for the solution, turned out that
> pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config".

What OS?

How did you install 9.4?
How did you (attempt to) uninstall 9.4?
How did you (attempt to) install 9.5?
What makes you think 9.5 is currently successfully installed?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Re: postgres version problem

От
Payal Singh
Дата:
What's the output of sudo find / -name pg_config? Also, can you check the pg_config in 9.4 directory is version 9.4 and not 9.5? (pg_config --version)

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 10:21 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
1. Ubuntu 12.04
2. I just ran "sudo apt-get install postgresql". I installed this after installing ubuntu.
3. sudo dpkg --purge postgresql-9.4
4. Afte uninstaling 9.4 I again tried "sudo apt-get install postgresq" and it installed 9.5
5. Version is 9.5, I can create table, insert data and run queries.


On Mon, Feb 15, 2016 at 4:09 PM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Mon, Feb 15, 2016 at 6:17 AM, Shmagi Kavtaradze
<kavtaradze.s@gmail.com> wrote:
> When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4
> and installed 9.5. I wanted to install extension, but it was installing in
> 9.4 directory. When I started searching for the solution, turned out that
> pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config".

What OS?

How did you install 9.4?
How did you (attempt to) uninstall 9.4?
How did you (attempt to) install 9.5?
What makes you think 9.5 is currently successfully installed?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote


Re: postgres version problem

От
Shmagi Kavtaradze
Дата:
It was my mistake from the beginning. I installed postgresql-server-dev-9.5 and it fixed my problem. After this I ran " sudo find / -name pg_config?" and it showed both 9.4 and 9.5

On Mon, Feb 15, 2016 at 5:13 PM, Payal Singh <payal@omniti.com> wrote:
What's the output of sudo find / -name pg_config? Also, can you check the pg_config in 9.4 directory is version 9.4 and not 9.5? (pg_config --version)

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Mon, Feb 15, 2016 at 10:21 AM, Shmagi Kavtaradze <kavtaradze.s@gmail.com> wrote:
1. Ubuntu 12.04
2. I just ran "sudo apt-get install postgresql". I installed this after installing ubuntu.
3. sudo dpkg --purge postgresql-9.4
4. Afte uninstaling 9.4 I again tried "sudo apt-get install postgresq" and it installed 9.5
5. Version is 9.5, I can create table, insert data and run queries.


On Mon, Feb 15, 2016 at 4:09 PM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Mon, Feb 15, 2016 at 6:17 AM, Shmagi Kavtaradze
<kavtaradze.s@gmail.com> wrote:
> When I first installed postgres it was 9.4 vesrion. Then I uninstalled 9.4
> and installed 9.5. I wanted to install extension, but it was installing in
> 9.4 directory. When I started searching for the solution, turned out that
> pg_config I have is in "/usr/lib/postgresql/9.4/bin/pg_config".

What OS?

How did you install 9.4?
How did you (attempt to) uninstall 9.4?
How did you (attempt to) install 9.5?
What makes you think 9.5 is currently successfully installed?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote