如何从github安装此源?

时间:2010-10-23 13:11:54

标签: ruby-on-rails web-services

我尝试安装dalecook actionwebservice(这是更新的datanoise的版本2.3.2到2.3.5),命令:

sudo gem install actionwebservice --source gems.github.com

我也试过了:dalecook-actionwebservice而不是actionwebservice或http://github.com/dalecook/actionwebservice而不是gem.github.com

和resut是相同的

ERROR: github.com/dalecook/actionwebservice.git/ does not appear to be a repository
ERROR:  Could not find a valid gem 'actionwebservice' (>= 0) in any repository

如何在我的OSX上安装此源?

github.com/dalecook/actionwebservice

谢谢!

1 个答案:

答案 0 :(得分:3)

gems.github.com已不再运行。这就像Bundler这样的东西派上用场了。使用Bundler,您只需添加

gem 'actionwebservice', :git => "git://github.com/dalecook/actionwebservice.git"

给你Gemfile并运行bundle install来使用gem的特定分支。