solve "An error occurred while installing pg"

警告:An error occurred while installing pg (0.17.0), and Bundler cannot continue.Make sure that `gem inall pg -v '0.17.0'` succeeds before bundling.
解决办法:
$sudo apt-get install postgresql
$sudo apt-get install libpq-dev
$gem install pg
$cd myapp
$bundle install
over!

你可能感兴趣的:(error,Bundle,Rails,pg)