我正在使用CentOS 6,在执行bundle install时,出现了以下错误。
An error occurred while installing pg (1.2.1), and Bundler cannot continue.
Make sure that `gem install pg -v '1.2.1' --source 'https://rubygems.org/'` succeeds before bundling.
我尝试过这个
gem install pg -v '1.2.1' --source 'https://rubygems.org/'
并且
sudo yum install libpq-dev