0

我正在使用 rails 2.3.8 ...我安装了以下 gem

abstract (1.0.0)
actionmailer (2.3.8)
actionpack (2.3.8)
activemodel (3.2.8)
activerecord (2.3.8)
activeresource (3.2.8, 2.3.8)
activesupport (2.3.18, 2.3.8)
ar-extensions (0.9.5)
arel (3.0.2)
athlite-actionwebservice (2.3.8)
aws-s3 (0.6.2)
aws-ses (0.4.4)
builder (3.0.0)
bundler (1.3.5)
cgi_multipart_eof_fix (2.5.0)
cmdparse (2.0.2)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
columnize (0.3.1)
daemons (1.1.0)
dbi (0.4.5)
deprecated (2.0.1)
erubis (2.7.0)
execjs (2.0.2, 1.4.0)
fastthread (1.0.7)
ffi (0.6.3)
gem_plugin (0.2.3)
gmail (0.4.0)
gmail_xoauth (0.4.1)
hike (1.2.1)
hpricot (0.8.6)
httparty (0.8.3)
httpclient (2.3.4.1)
i18n (0.6.0)
journey (1.0.4)
jquery-rails (2.1.3)
json (1.8.1, 1.7.3)
linecache (0.43)
mail (2.4.4)
memcached (1.7.0)
mime (0.1)
mime-types (1.19)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
multi_json (1.3.6)
multi_xml (0.5.5)
nokogiri (1.5.5)
oauth (0.4.7)
open4 (1.3.0)
polyglot (0.3.3)
rack (1.4.1, 1.1.6)
rack-cache (1.2)
rack-mount (0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.8)
railties (3.2.8)
rake (10.1.0, 0.9.2.2)
rbx-require-relative (0.0.9)
rdoc (3.12)
ref (1.0.5)
rmagick (2.13.2)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubygems-update (1.3.7)
sass (3.1.20)
sass-rails (3.2.5)
soap4r (1.5.8)
sprockets (2.1.3)
svn_wc (0.0.6)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
uglifier (1.2.7)
will_paginate (2.3.14)
xml-simple (1.1.2, 1.1.1)

但是在重新启动杂种服务器时,我在日志中收到以下错误

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- svn/core (MissingSourceFile)
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
    from /usr/lib/ruby/gems/1.8/gems/svn_wc-0.0.6/lib/svn_wc.rb:20
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
    from /usr/local/sokrati/.deployments/tasteIt.11132013143834/tasteIt/app/models/chuknu/svnHandler.rb:3
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
    from /usr/local/sokrati/.deployments/tasteIt.11132013143834/tasteIt/app/models/chuknu/generatorScript.rb:5
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:265:in `require_or_load'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:224:in `depend_on'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:136:in `require_dependency'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:414:in `load_application_classes'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:413:in `each'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:413:in `load_application_classes'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:411:in `each'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:411:in `load_application_classes'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:197:in `process'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
    from /usr/local/sokrati/tasteIt/config/environment.rb:17

我安装了 svn_wc 这到底是什么原因?我是 RoR 的新手 ..en 详细的回答肯定会有所帮助!

4

3 回答 3

0

I guess SVN library of ruby is not installed. Just try:

apt get install libsvn-ruby 

it works most of the time.

if it doesnt work, I guess you have to follow what Holger just mentioned.

于 2013-11-13T11:28:14.530 回答
0

我用这个解决了这些问题:

sudo apt-get install libsvn-ruby

于 2014-05-02T16:23:43.933 回答
0

引用svn_wc gem的自述文件:

需要安装 Subversion (SWIG) Ruby 绑定。

(这可能很简单)

  • Linux
    • 红帽和 Fedora:yum install subversion-ruby
    • Ubuntu 和 Debian:apt-get install libsvn-ruby
  • 操作系统
    • sudo port install subversion-rubybindings
  • 视窗
    • 未知,...

因此,您需要首先为您的 subversion 客户端安装 ruby​​ 绑定。它们不是 gem 的一部分,并且随 subversion 一起提供。根据您安装 Ruby 的方式,获得正确的绑定可能非常容易(见上文)或相当困难(使用 rbenv 或 rvm 时)。

于 2013-11-13T11:16:47.180 回答