我正在尝试使用以下命令安装paperclip插件:
ruby script/plugin install git://github.com/thoughtbot/paperclip.git
但是我遇到了一些错误:
ruby script/plugin install git://github.com/thoughtbot/paperclip.git --force
svn: '/home/app/vendor/plugins' is not a working copy
/usr/lib/ruby/1.8/open-uri.rb:32:in `initialize': No such file or directory - git://github.com/thoughtbot/paperclip.git (Errno::ENOENT)
from /usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open'
from /usr/lib/ruby/1.8/open-uri.rb:32:in `open'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:863:in `fetch_dir'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:857:in `fetch'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:856:in `each'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:856:in `fetch'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:219:in `install_using_http'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:169:in `send'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:169:in `install'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:734:in `parse!'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:732:in `each'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:732:in `parse!'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:447:in `parse!'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:463:in `parse!'
from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:871
from script/plugin:3:in `require'
from script/plugin:3
是因为我使用旧的rails版本吗?
答案 0 :(得分:2)
我担心版本1.1.2的rails不支持git插件。该版本支持Subversion和HTTP。
虽然github当然有合理的subversion支持,但你可以尝试使用他们的subversion url http://svn.github.com/thoughtbot/paperclip来检查。虽然我觉得你可能会遇到一些兼容性问题。