An error occurred while installing pg (0.18.4), and Bundler cannot continue.

来源:互联网 发布:什么软件可以约会 编辑:程序博客网 时间:2024/06/06 15:00

运行bundle install的时候遇到标题所示问题,特此记录


Gem files will remain installed in /home/stormand/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.18.4 for inspection.Results logged to /home/stormand/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/pg-0.18.4/gem_make.outAn error occurred while installing pg (0.18.4), and Bundler cannot continue.Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.


解决办法:

ubuntu 需要安装 package libpq-dev

执行语句:sudo apt-get install libpq-dev

安装后解决

0 0