2012-11-30 98 views
1

我想在dreamhost上安裝rails。我遵循以下教程指南http://wiki.dreamhost.com/Getting_Started_with_Ruby_on_Rails。但是,一旦我激活網站,去它,我得到以下錯誤Rails服務器dreamhost

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) 

任何幫助,將不勝感激!

+1

錯誤信息非常明確,activesupport 3.2.8和大概Rails 3.2.8未安裝,主機是否支持Rails 3.2.8? –

+0

哦,我看到了,我需要驗證一下,我該如何降級? – Jseb

+1

我試過在dreamhost上使用rails,它是一個**噩夢**。我強烈建議使用VPS,而共享主機不像框架那樣適合快速移動。 –

回答

2

您看到此錯誤的原因是因爲bundler無法找到activesupport gem。很可能你已經在本地安裝了Rails 3.2.8,而bundler正在搜索系統寶石並且無法找到它。

您應該可以通過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還應該讓你知道什麼是失敗。

+0

我在哪裏運行我的機器或服務器上的命令? – Jseb