| From: | "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de> |
|---|---|
| To: | Shubham Barai <shubhambaraiss(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: help:error while running postgres after installing postgresql server from source code |
| Date: | 2016-01-25 16:16:35 |
| Message-ID: | CACACo5Q9TYqZF1sLCWpoKsTDF0q9fs7+2b+erExz55kqCw+AcQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, Jan 23, 2016 at 6:42 PM, Shubham Barai <shubhambaraiss(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Smith | 2016-01-25 16:33:31 | Re: TABLESAMPLE usage |
| Previous Message | Charles Clavadetscher | 2016-01-25 13:50:12 | Re: ERROR: check constraint - PostgreSQL 9.2 |