我使用的是 CentOS 6,在捆绑安装过程中,出现此错误。
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.
Run Code Online (Sandbox Code Playgroud)
我试过这个
gem install pg -v '1.2.1' --source 'https://rubygems.org/'
Run Code Online (Sandbox Code Playgroud)
和
sudo yum install libpq-dev
Run Code Online (Sandbox Code Playgroud)