1

ドリームホストにレールをインストールしようとしています。次のチュートリアル ガイドhttp://wiki.dreamhost.com/Getting_Started_with_Ruby_on_Railsに従いました。ただし、サイトをアクティブにしてアクセスすると、次のエラーが表示されます

Ruby (Rack) application could not be started
These are the possible causes:

There may be a syntax error in the application's code. Please check for such errors and fix them.

A required library may not installed. Please install all libraries that this application requires.

The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.

Error message:
Could not find activesupport-3.2.8 in any of the sources (Bundler::GemNotFound)

どんな助けでも大歓迎です!

4

1 に答える 1

2

このエラーが表示される理由は、bundler が activesupport gem を見つけられないためです。ほとんどの場合、Rails 3.2.8 がローカルにインストールされていて、バンドラーがシステム gem を検索し、それを見つけることができません。

でこれを解決できるはずですbundle install --deployment

実行する前にまず環境変数を設定し、それらが正しいことを確認します。

gem env現在の設定が表示されます。

export GEM_PATH=/usr/lib/ruby/gems/1.8
export GEM_HOME=~/.gems
export PATH=~/.gems/bin:/usr/lib/ruby/gems/1.8/bin:$PATH

bundle exec rails consoleまた、何が失敗したかを知らせるのにも役立ちます。

于 2012-11-30T22:25:24.247 に答える