2017-03-24 79 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在过去几次遇到连接问题,所以问题出现在他们身边或两者之间不是完全不可能的。几个小时后重试,它应该简单地工作。