2017-03-24 98 views
0

我想在我的Raspberry Pi2上安裝Redmine。當我試圖運行命令sudo bundle install --without development test rmagic我得到這個作爲輸出:Redmine:安裝錯誤

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java . The dependency activerecord-jdbc-adapter (~> 1.3.2) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run bundle lock --add-platform java . The dependency activerecord-jdbcmysql-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run bundle lock --add-platform java . Fetching gem metadata from https://rubygems.org/ .. Retrying dependency api due to error (2/4): Bundler::HTTPError Network error while fetching https://index.rubygems.org/api/v1/dependencies?gems=actionpack-xml_parser%2Cactiverecord-jdbc-adapter%2Cactiverecord-jdbcmysql-adapter%2Ccapybara%2Ccoderay%2Ci18n%2Cjquery-rails%2Cmime-types%2Cmimemagic%2Cminitest%2Cmocha%2Cmysql2%2Cnet-ldap%2Cnokogiri%2Cprotected_attributes%2Crack-openid%2Crails%2Crails-dom-testing%2Crails-html-sanitizer%2Crbpdf%2Crdoc%2Credcarpet%2Crequest_store%2Crmagick%2Croadie-rails%2Cruby-openid%2Cselenium-webdriver%2Csimplecov%2Ctzinfo-data%2Cyard .......... Fetching version metadata from https://rubygems.org/ ... Fetching dependency metadata from https://rubygems.org/ .. Resolving dependencies........................... Using erubis 2.7.0 Using bundler 1.14.6 Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/rake-12.0.0.gem) An error occurred while installing rake (12.0.0), and Bundler cannot continue. Make sure that gem install rake -v '12.0.0' succeeds before bundling.

Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/i18n-0.7.0.gem) An error occurred while installing i18n (0.7.0), and Bundler cannot continue. Make sure that gem install i18n -v '0.7.0' succeeds before bundling.

當我想跑gem install rake -v '12.0.0'gem install i18n -v '0.7.0'命令沒有開始,我在該行的開始,就像當只拿到了>符號我想通過CLI編輯mySQL上的內容。

我錯過了什麼?我沒有在文檔中找到它。我之後安裝了these steps

+0

您的覆盆子是否可以訪問互聯網? – Uzbekjon

+0

是的,我克隆了官方倉庫的Redmine目錄 – Feralheart

+0

你是如何在你的pi上安裝ruby的?從頭編譯? RVM?還要別的嗎? – Jeremie

回答

0

我的Rasperry沒有足夠的可用空間。在清理了一些不需要的文件後,它的安裝很容易安裝

0

在shell中按Enter後出現>的新行通常表示引用不平衡。你確定你輸入了gem install命令嗎?

運行時出現錯誤bundler看起來像網絡問題。很可能在你身邊,但rubygems.org在過去幾次遇到連接問題,所以問題出現在他們身邊或兩者之間不是完全不可能的。幾個小時後重試,它應該簡單地工作。