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