Wednesday, August 14, 2013

ERROR: Error installing pg (Failed to build gem native extension.)

When you face problem to install Postgresql(pg) gem during bundle install for Ruby on rails project, then you need to install first the following gem:

sudo apt-get install postgresql
sudo apt-get install libpq-dev

then gem pg install will be successful when you attempt again by bundle install.

No comments:

Post a Comment