rails install pg - Can't find the 'libpq-fe.h header
Solution 1:
Just make this
$ sudo apt-get install libpq-dev
Solution 2:
This is answered in Can't find the 'libpq-fe.h header when trying to install pg gem
Depending on your environment:
-
Mac:
brew install postgresql
-
Ubuntu:
sudo apt-get install libpq-dev
-
RHEL:
yum install postgresql-devel
Then run gem install pg
again
Solution 3:
Try this:
- brew install postgresql
- gem install pg
- bundle install