# Pgsql-9.1 No such file or directory

**URL:** <https://meta.discourse.org/t/pgsql-9-1-no-such-file-or-directory/53132>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [19 نوفمبر 2016، 11:38م UTC](https://meta.discourse.org/t/pgsql-9-1-no-such-file-or-directory/53132 "2016-11-19T23:38:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ehsan\_Gholami](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Ehsan\_Gholami](https://meta.discourse.org/u/Ehsan_Gholami)\
**Post date:** [19 نوفمبر 2016، 11:38م UTC](https://meta.discourse.org/t/pgsql-9-1-no-such-file-or-directory/53132/1 "2016-11-19T23:38:20Z")

</div>

hi i use

CentOS release 6.8 (Final)

i use [THIS](https://www.digitalocean.com/community/tutorials/how-to-install-discourse-on-a-centos-6-4-x64-vps#step-5-install-and-configure-discourse) 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
--with-pg-config=/usr/pgsql-9.1/bin/pg_config
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:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/home/discourse/.rvm/rubies/ruby-2.0.0-p648/bin/ruby
	--with-pg
	--without-pg
	--enable-windows-cross
	--disable-windows-cross
	--with-pg-config
	--with-pg-dir
	--without-pg-dir
	--with-pg-include
	--without-pg-include=${pg-dir}/include
	--with-pg-lib
	--without-pg-lib=${pg-dir}/

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.

```

---

_[View the full topic](https://meta.discourse.org/t/pgsql-9-1-no-such-file-or-directory/53132)._
