1
我有几个红宝石类,这需要'rdf'宝石 - 当从原始项目运行它们时,一切正常。
我将这些类复制到我的Rails项目文件夹供应商/ lfm并将路径添加到environment.rb。
文件加载,但在这些复制的类中使用的'rdf'gem不加载。 我得到:no such file to load -- rdf
Rails - 没有这样的文件加载 - rdf
和
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `block in require'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `block in load_dependency'
activesupport (3.0.6) lib/active_support/dependencies.rb:596:in `new_constants_in'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `load_dependency'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
vendor/lfm/rdf_transform.rb:14:in `<class:RdfTransform>'
vendor/lfm/rdf_transform.rb:13:in `<top (required)>'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `require'
activesupport (3.0.6) lib/active_support/dependencies.rb:239:in `block in require'
activesupport (3.0.6) lib/active_support/dependencies.rb:225:in `block in load_dependency'
的RubyPlatform设置相同的,我可以看到在Rails项目库中所列的“RDF”宝石。
有什么想法?
谢谢
Thans this,运作良好。我必须运行bundle install(也许有办法指定已经在系统中的gem路径),然后它开始工作。 – kvgr 2011-05-25 12:28:48
你做了正确的事情 - “捆绑安装”使bundler使用系统宝石,如果它已经在那里。您只需在更改Gemfile时运行该命令。 – Bira 2011-06-08 20:05:44