繁体   English   中英

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

[英]Error while fetching gem metadata when creating a new project on Rails

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

当我想通过键入以下内容创建一个带有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

巴斯蒂安

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

 cannot load such file -- openssl (LoadError)

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

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

谢谢大家的帮助!

尝试更新rubygems和bundler gem。

只需安装jruby-openssl:

jruby -S gem install jruby-openssl

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

暂无
暂无

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

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