在Rails上创建新项目时获取gem元数据时出错

时间:2012-03-15 09:04:08

标签: ruby-on-rails ruby gem new-operator

我遇到了一些问题,经过一天寻找答案后,我没有找到任何有用的东西。 有问题:

当我想通过键入以下内容创建一个包含rails的新项目时:

~$ rails new project

我收到一些消息,然后收到错误消息:

Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!

你有解决方案吗? 谢谢你的答案!

编辑:使用rails 3.2.2,rubygems 1.8.19和bundler 1.1.1

巴斯蒂安

3 个答案:

答案 0 :(得分:2)

我找到了答案。我把它放在这里只是在有人遇到同样问题的情况下。 事实上,这是一个问题,openssl女巫使整个事情失败。

 cannot load such file -- openssl (LoadError)

经过多次研究,我在这里找到了答案:

http://www.dinduks.com/rails-cannot-load-such-file-openssl

谢谢大家的帮助!

答案 1 :(得分:0)

尝试更新rubygems和bundler gem。

答案 2 :(得分:0)

只需安装jruby-openssl:

jruby -S gem install jruby-openssl

只是一个建议:阅读所有的控制台日志,答案就在那里。