1

我正在尝试在 Dreamhost 上安装 Rails。我遵循了以下教程指南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,并且 bundler 正在搜索系统 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 回答