Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpq-fe.h: No such file or directory #4

Open
goris opened this issue Aug 2, 2015 · 2 comments
Open

libpq-fe.h: No such file or directory #4

goris opened this issue Aug 2, 2015 · 2 comments

Comments

@goris
Copy link

goris commented Aug 2, 2015

go get github.com/jgallagher/go-libpq

github.com/jgallagher/go-libpq

../../../github.com/jgallagher/go-libpq/driver.go:5:22: fatal error: libpq-fe.h: No such file or directory
#include <libpq-fe.h>
^
compilation terminated.

@rabbitear
Copy link

There's currently three places where libpq-fe.h is needed. On debian system for one example after installing libpq-dev, the header file is in /usr/include/postgresql/libpq-fe.h. So you must change the:
#include <libpq-fe.h>
to:
#include <postgresql/libpq-fe.h>
in every of the go files.

@iodaniel
Copy link

iodaniel commented Jul 3, 2019

Hello
I have a problem with this gem :::
please help

this is the terminal report:::

gem install pg -v '0.20.0' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

current directory: /Users/nutriente/.rvm/gems/ruby-2.6.3/gems/pg-0.20.0/ext

/Users/nutriente/.rvm/rubies/ruby-2.6.3/bin/ruby -I /Users/nutriente/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0 -r ./siteconf20190703-2317-1oappj4.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants