Re: help:error while running postgres after installing postgresql server from source code - Mailing list pgsql-general

From Shulgin, Oleksandr
Subject Re: help:error while running postgres after installing postgresql server from source code
Date
Msg-id CACACo5Q9TYqZF1sLCWpoKsTDF0q9fs7+2b+erExz55kqCw+AcQ@mail.gmail.com
Whole thread Raw
In response to help:error while running postgres after installing postgresql server from source code  (Shubham Barai <shubhambaraiss@gmail.com>)
List pgsql-general
On Sat, Jan 23, 2016 at 6:42 PM, Shubham Barai <shubhambaraiss@gmail.com> wrote:
>
> I was trying to install postgresql from source code on ubuntu.I followed all the instructions and installed all the packages.I was also able to create database cluster but when I executed this command 'postgres -D /usr/local/pgsql/data' I got this
>
>  $ postgres -D /usr/local/pgsql/data
> > The program 'postgres' is currently not installed. You can install it by
> > typing:
> > sudo apt-get install postgres-xc

That really depends on where you did install the binary files.  Did you specify a --prefix option when running configure script?  If so, you might need a command like the following:

$ /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data

Actually, assuming you've created the database by using the newly installed initdb command, you just need to replace "initdb" with "postgres" in that command.

--
Alex

pgsql-general by date:

Previous
From: Shubham Barai
Date:
Subject: help:error while running postgres after installing postgresql server from source code
Next
From: Tom Smith
Date:
Subject: Re: TABLESAMPLE usage