Pgsql-9.1 No such file or directory

hi i use

CentOS release 6.8 (Final)

i use THIS guide from digitalocean to install discourse

in installation i install pgsql-9.6 and now when i want to run
bundle install --deployment
show me this error

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/home/discourse/.rvm/rubies/ruby-2.0.0-p648/bin/ruby -r ./siteconf20161119-10988-nqqoxr.rb extconf.rb --with-pgsql-lib=/usr/pgsql-9.1/lib
Using config values from /usr/pgsql-9.1/bin/pg_config
sh: /usr/pgsql-9.1/bin/pg_config: No such file or directory
sh: /usr/pgsql-9.1/bin/pg_config: No such file or directory
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:

extconf failed, exit code 1

Gem files will remain installed in /var/discourse/vendor/bundle/ruby/2.0.0/gems/pg-0.19.0 for inspection.
Results logged to /var/discourse/vendor/bundle/ruby/2.0.0/extensions/x86_64-linux/2.0.0/pg-0.19.0/gem_make.out

An error occurred while installing pg (0.19.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.19.0'` succeeds before bundling.

That method does not use docker. You must use docker to have a supported install of Discourse. As a benefit the docker install is much simpler to install and upgrade.

Take a look at these instructions:

The process of getting Docker installed on CentOS might differ, but once you get past that part it should be pretty smooth sailing using those instructions.


Posted September 11, 2013

Might be time to ask Digital Ocean to upgrade their documentation…


Of course someone had to beat us to the punch: