我成功地将git存储库克隆到我的本地机器但是我无法安装gem。 (我安装了rake 10.1.0),还安装了依赖gem oauth
git clone git://github.com/marcel/twurl.git
rake gem --trace
错误讯息:
rake aborted!
Don't know how to build task 'gem'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/task_manager.rb:49:in `[]'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:148:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:106:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:78:in `run'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Library/Ruby/Gems/1.8/gems/rake-10.1.0/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
感谢您的帮助!
答案 0 :(得分:0)
使用
gem build twurl.gemspec
而不是
rake gem
错误消息明确指出,Rakefile
没有名为gem
的任务。
构建gem
后,请使用gem install
安装。