Pgsql-9.1 No such file or directory


(Ehsan Gholami) #1

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.

(Wes Osborn) #2

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: discourse/ at master · discourse/discourse · GitHub

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.

(Matt Palmer) #3

Posted September 11, 2013

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

(Wes Osborn) #4

Of course someone had to beat us to the punch: