简体   繁体   English

安装pg(0.18.4)时发生错误

[英]an error occurred while installing pg (0.18.4)

I'm new to ruby on rails and installing bundle after all required configurations like rvm,ruby,rails etc. But Error on bundle install 我是Ruby的新手,在所有必需的配置(如rvm,ruby,rails等)之后都安装了bundle。

an error occurred while installing pg (0.18.4), and bundler cannot continue.

with this another problem after this Please suggest me how to update my old rails application to latest rails. 在此之后出现另一个问题,请建议我如何将旧的Rails应用程序更新为最新的Rails。

Please is there any suggestion ??? 请问有什么建议吗?

如果您使用的是Ubuntu ,则很可能会丢失隐藏的依赖项

sudo apt-get install libpq-dev

You can install missing a hidden dependency by running this command into your terminal. 您可以通过在终端中运行此命令来安装缺少隐藏依赖性的文件。

sudo apt-get install libpq-dev

You can update your old project of rails to the latest one go through the steps mention on this link 您可以通过此链接上提到的步骤将旧的rails项目更新为最新的

http://dev.mensfeld.pl/2015/12/upgrading-to-ruby-on-rails-5-0-from-rails-4-2-application-use-case/ http://dev.mensfeld.pl/2015/12/upgrading-to-ruby-on-rails-5-0-from-rails-4-2-application-use-case/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM