簡體   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