【问题标题】:Installing paperclip plugin安装回形针插件
【发布时间】:2010-05-18 20:59:06
【问题描述】:

我正在尝试使用以下命令安装回形针插件:

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 吗?

【问题讨论】:

  • 你用的是什么版本的rails?

标签: ruby-on-rails plugins installation paperclip


【解决方案1】:

恐怕 1.1.2 版的 rails 不支持 git 插件。该版本支持 Subversion 和 HTTP。

当然,鉴于 github 有合理的 subversion 支持,您可以尝试使用他们的 subversion url 进行检查:http://svn.github.com/thoughtbot/paperclip。虽然我感觉你可能会遇到一些兼容性问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-10
    • 1970-01-01
    相关资源
    最近更新 更多