我见过其他类似的错误,但没有一个解决方案对我有用:
在Snow Leopard上,我正在使用RVM和基于项目的gemsets。我有Rails 2和Rails 3应用程序。当我使用捆绑器与Rails 2或Rails 3时,我得到:
no such file to load -- bundler
在我不使用bundler的Rails 2应用程序中,我只收到一条消息,说明Rails需要安装。
我的RVM安装有一个带有REE版Ruby的全局gemset。
$ rvm list
rvm rubies
=> ree-1.8.7-2011.03 [ x86_64 ]
ruby-1.8.7-p174 [ x86_64 ]
ruby-1.9.2-head [ x86_64 ]
$ rvm gemset list
gemsets for ree-1.8.7-2011.03 (found in /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03)
cm
duke
=> global
我的全球宝石:
$ gem list
*** LOCAL GEMS ***
bundler (1.0.14)
daemon_controller (0.2.6)
fastthread (1.0.7)
passenger (3.0.7)
rack (1.3.0)
rake (0.9.0)
rdoc (3.6.1)
Apache config中的客运专线:
LoadModule passenger_module /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7
PassengerRuby /Users/dwayne/.rvm/wrappers/ree-1.8.7-2011.03@global/ruby
“duke”项目的RubyGems环境:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.7.0]
- INSTALLATION DIRECTORY: /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@duke
- RUBY EXECUTABLE: /Users/dwayne/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby
- EXECUTABLE DIRECTORY: /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@duke/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-10
- GEM PATHS:
- /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@duke
- /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-ri --no-rdoc"
- :sources => ["http://rubygems.org/", "http://gemcutter.org/"]
- REMOTE SOURCES:
- http://rubygems.org/
- http://gemcutter.org/
.rvmrc for duke:
rvm --create use "ree@duke"
公爵目录中的'gem list':
$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
arel (2.0.10)
authlogic (2.1.3)
builder (2.1.2)
bundler (1.0.14)
daemon_controller (0.2.6)
fastthread (1.0.7)
i18n (0.5.0)
mysql (2.8.1)
passenger (3.0.7)
pdfkit (0.5.0)
rack (1.3.0, 1.0.1)
rails (2.3.5)
rake (0.9.0)
rdoc (3.6.1)
tzinfo (0.3.27)
回溯的最后几行:
0 /Users/dwayne/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require'
1 /Users/dwayne/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 36 in `require'
2 /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb 325 in `prepare_app_process'
3 /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/lib/phusion_passenger/classic_rails/application_spawner.rb 176 in `initialize_server'
4 /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb 572 in `report_app_init_status'
5 /Users/dwayne/.rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/lib/phusion_passenger/classic_rails/application_spawner.rb
我的Rails 3项目也是如此。
任何人都可以帮忙吗?这肯定是一个路径问题,但我无法弄清楚问题。
感谢。
答案 0 :(得分:0)