2
我有一個關於Rails 2.3.10的應用程序,當我嘗試啓動ruby script/server -p 3017 -e production -d
它拋出我下面的錯誤:運行rails的問題2.3.10 bundler`require':沒有這樣的文件要加載 - rubygems(LoadError)
Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org
try installing passenger to start the project with but it generates another error:
/home/gmcms/.rvm/gems/[email protected]_backend/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2:in `require': no such file to load -- rubygems (LoadError)
from /home/gmcms/.rvm/gems/[email protected]_backend/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2
from /home/gmcms/.rvm/gems/[email protected]_backend/gems/bundler-1.3.5/lib/bundler/setup.rb:1:in `require'
from /home/gmcms/.rvm/gems/[email protected]_backend/gems/bundler-1.3.5/lib/bundler/setup.rb:1
我從另一個開發這個項目,他總是項目的開工這種方式;它沒有一個Gemfile中過,所以我創建了一個Gemfile中,我定義的寶石的項目使用,然後用打捆添加參數--deployment
安裝的一切:
bundle install --deployment
我也跟着那些步驟在捆綁器的官方網站上: http://bundler.io/v1.3/rails23.html
但是,當我嘗試以相同的方式使用ruby腳本/服務器運行項目時,它有我同樣的錯誤。我跟着這個線程,但他們沒有工作對我來說:
- http://docs.rubygems.org/read/chapter/15#page66
- Rails "no such file to load -- rubygems (LoadError)"
- no such file to load -- rubygems (LoadError)
我能做些什麼?提前致謝。
Juan Trejo。