2013-11-01 22 views
3

我對ruby編程並不熟悉(接近零),並且試圖在運行Ubuntu 13.10的筆記本電腦上安裝Snorby,並使用Ruby 2.0.0-使用RVM與OpenSSL一起安裝p247。」太多的重定向(甚至在用OpenSSL重新安裝Ruby 2.0.0之後)「

我下面安裝Snorby該教程是在:http://everydayiszeroday.blogspot.com/2013/01/installing-snorby-on-ubuntu-1204.html?showComment=1383320783310#c6938351151419073746

當我執行sudo bundle install --no-deployment --verbose,我結束了「太多的重定向」(局部的輸出在下文提供)。另外,我想知道由捆綁器訪問的rubygem路徑對於安裝的ruby版本(2.0.0)是否正確。

有人可以告訴我接下來要做什麼嗎?

樣本輸出:

$ sudo bundle install --no-deployment --verbose 

Updating http://github.com/postmodern/dm-is-read_only.git 
Fetching from: http://rubygems.org/api/v1/dependencies 
HTTP Redirection 
. 
. 
. 

Fetching from: http://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-1.7.7-java.gemspec.rz 
HTTP Redirection 

Too many redirects 
Bundler::HTTPError: Too many redirects 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:197:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:92:in `fetch_spec' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:46:in `_remote_specification' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:51:in `method_missing' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:101:in `block in __dependencies' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:98:in `each' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:98:in `__dependencies' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:68:in . 
. 
. 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in `block in ' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors' 
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in `' 
/usr/local/bin/bundle:19:in `load' 
/usr/local/bin/bundle:19:in `' 

回答

1

看起來像一個過時的rubygems,嘗試:

$ gem update --system 

或者,如果你堅持使用sudo

$ sudo gem update --system 

如果命令失敗,試試這個:

$ sudo gem install rubygems-update 
$ sudo gem update --system