我正在尝试安装s3nuke。从具有最新红宝石和宝石的最新Mac OS。
首先,我将git存储库克隆到我的/var/src/
(现在为/var/src/s3nuke
)。
README上的安装很简单:
gem install s3nuke
回应:
ERROR: Could not find a valid gem 's3nuke' (>= 0) in any repository
对此错误的大多数帮助都假设我支持某些代理。我不是。我可以ping rubygems或rubyforge就好了。我可以成功更新甚至安装其他宝石。以下是一些例子:
$ gem -v
1.8.24
$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
$ gem install rubygems-update
Successfully installed rubygems-update-1.8.24
1 gem installed
Installing ri documentation for rubygems-update-1.8.24...
Installing RDoc documentation for rubygems-update-1.8.24...
$ update_rubygems
RubyGems 1.8.24 installed
$ sudo gem update --system
Latest version currently installed. Aborting.
让我们试试其他一些宝石:
$ gem install eventmachine
Fetching: eventmachine-1.0.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed eventmachine-1.0.0
1 gem installed
Installing ri documentation for eventmachine-1.0.0...
Installing RDoc documentation for eventmachine-1.0.0...
$ gem install clamp
Fetching: clamp-0.5.0.gem (100%)
Successfully installed clamp-0.5.0
1 gem installed
Installing ri documentation for clamp-0.5.0...
Installing RDoc documentation for clamp-0.5.0...
所以我最新,可以安装其他宝石。但s3nuke仍然不会让步。
$ gem install s3nuke
ERROR: Could not find a valid gem 's3nuke' (>= 0) in any repository
我甚至添加了另一个宝石源(http://gems.rubyforge.org/),但仍然没有运气。
你能帮忙吗?
这是我的环境:
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.a
- RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-12
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/my_username/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/", "http://gems.rubyforge.org/"]
- REMOTE SOURCES:
- http://rubygems.org/
- http://gems.rubyforge.org/
我尝试手动安装,但s3nuke git repository不包含s3nuke.gem。
你推荐什么?
答案 0 :(得分:3)
如果使用bundler,可以在下一行添加到Gemfile:
gem "s3nuke", :git => "git://github.com/SFEley/s3nuke.git"
或者您可以使用specific_install gem
进行安装gem install specific_install
gem specific_install -l http://github.com/SFEley/s3nuke.git
答案 1 :(得分:1)
您可以直接将以下行添加到您的Gemfile中:
gem 's3nuke', :git => 'git://github.com/SFEley/s3nuke.git'
下次执行bundle install
时(假设您正在使用Bundler)将安装gem