我正在使用installrails.com在带有OS X El Capitan的新机器上安装Rails。安装Rails 4.2.5寻找过时的宝石,无法完成安装
在通过命令行安装导轨时,系统正在寻找过期的下载的宝石,现在我收到了很多错误。因为宝石不可用,所以安装无法完成。
我该如何继续?如果需要的话,我很安全。
谢谢!
首先一些错误,我收到 -
Could not find CFPropertyList-2.3.2 in any of the sources
Run `bundle install` to install missing gems.
运行捆绑安装
Could not find fog-aliyun-0.0.10 in any of the sources
跑了雾,阿里云宝石包更新,并得到
Installing pg 0.18.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/supertext/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151228-30240-pkfnrw.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
需要配置选项之后。
还有各种过时的宝石和许可问题。
注意:有人建议这是重复的。但是,我在几十个宝石上收到了宝石错误,而不仅仅是pg/postgresql。所以,尽管我发现上游问题,但这个说明很有帮助,但并不是问题的唯一答案。
以防万一,尝试更新Xcode和接受开放的条件>接受和关闭之后,它给了我一些头痛之前。如果您正在使用自制软件,Brew医生也可以提供帮助。 – cassioscabral
[试图安装pg gem时找不到'libpq-fe.h头文件]的可能重复(http://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header -when-trying-install-pg-gem) –
我现在已经将问题缩小到了以下内容 - >运行新应用程序时,Rails已安装并运行良好。当运行带有几个月的代码和许多宝石的应用程序时,我会遇到这些许多宝石错误。所以这实际上不是一个看起来似乎是安装问题。 – supertext