2012-11-30 2 views
1

나는 dreamhost에 레일을 설치하려고합니다. 나는 다음 튜토리얼 가이드 http://wiki.dreamhost.com/Getting_Started_with_Ruby_on_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에서 레일을 사용해 보았습니다, ** 악몽 **입니다. 대신 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