我試圖讓Rails在Rackspace服務器上運行,不幸的是,他們不支持Rails。我在Ubuntu上使用Apache和Passenger(無RVM)。當我打的服務器,我得到了以下錯誤:no such file to load - bundler/setup
no such file to load -- bundler/setup
回溯如下:肯定是安裝
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
require' /rails/gradebook-attendance/config/boot.rb 6
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 ingem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
require' /rails/gradebook-attendance/config/application.rb 1
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 ingem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
require' /rails/gradebook-attendance/config/environment.rb 2
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 ingem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
require' config.ru 3
/usr/lib/ruby/1.8/rack/builder.rb 46 ininstance_eval' /usr/lib/ruby/1.8/rack/builder.rb 46 in
initialize' config.ru 1 in `new' config.ru 1
捆紮機。當我執行gem list -d bundler時,我回來
* LOCAL GEMS *
bundler (1.0.17) Authors: André Arko, Terence Lee, Carl Lerche, Yehuda Katz Rubyforge: http://rubyforge.org/projects/bundler Homepage: http://gembundler.com Installed at: /opt/ruby/lib/ruby/gems/1.8 The best way to manage your application's dependencies
此外,運行irb並輸入「require'bundler'」返回true。
$ GEM_HOME指向一個包含bundler-1.0.17 gem的路徑。
我還設置RUBYOPT = RubyGems的
任何幫助表示讚賞!
我在用戶空間中,在我的.bashrc中做過。感謝你的支持。 我剛剛安裝了RVM和Ruby 1.9.2,並以某種方式解決了我所有的問題。 –