0

我成功克隆了一个 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

我感谢您的帮助!

4

1 回答 1

0

利用

gem build twurl.gemspec

代替

rake gem

错误消息清楚地指出,Rakefile没有名为 的任务gem

gem构建完成后,使用gem install.

于 2013-08-28T09:25:38.783 回答