尝试使用Rails安装插件时出现问题

时间:2009-09-29 12:10:06

标签: ruby-on-rails

我正按照说明尝试安装YouTube插件:

./script/plugin install git://github.com/vibha/youtube-model.git

但我一直收到这个错误

svn: '/Users/tammam56/rubydev/war/vendor/plugins' is not a working copy
Plugin not found: ["git://github.com/vibha/youtube-model.git"]

我确定我有git

which git
/usr/local/bin/git

并确保它在路径中:

$PATH
-bash: /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory

我正在使用Ruby 1.9.1和Mac OSX Leopard。

任何想法?

谢谢,

2 个答案:

答案 0 :(得分:2)

script\plugin install http://github.com/vibha/youtube-model.git/

注意到最后的“/”!

答案 1 :(得分:1)

在Windows上,您可能还需要替换

stream.reopen(RUBY_PLATFORM =〜/ mswin /?'NUL:':'/ dev / null')

使用:

stream.reopen( 'NUL:')

在文件C:\ Ruby19 \ lib \ ruby​​ \ gems \ 1.9.1 \ gems \ activesupport-2.3.5 \ lib \ active_support \ core_ext \ kernel \ reporting.rb