2014-02-13 3 views
0

저는 아직 개발을 처음 받았고 rvm이 설치되어있는 동안 rbenv를 설치하지 않았 음을 알지 못했습니다. git 지침에 따라 rbenv를 설치했는데 이제는 레일이 전혀 작동하지 않습니다 ... 모든 종류의 이상한 오류가 발생하고이를 해결하려고합니다. rvm 및 rbenv를 제거한 다음 rbenv를 다시 설치하려고 시도했지만 아무 것도 도움이되지 않습니다. 여기에 내 최신 오류가 있습니다 :엉망인 rbenv 설치를 어떻게 수정합니까?

Ryans-MacBook-Pro:raffler Ryan$ bin/rails s 
=> Booting WEBrick 
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
Rails Error: Unable to access log file. Please ensure that /Users/Ryan/code/raffler/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. 
Exiting 
/Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:332:in `initialize': Permission denied - /Users/Ryan/code/raffler/tmp/pids/server.pid (Errno::EACCES) 
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:332:in `open' 
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:332:in `write_pid' 
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:254:in `start' 
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands/server.rb:84:in `start' 
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top (required)>' 
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap' 
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>' 
from bin/rails:4:in `require' 
from bin/rails:4:in `<main>' 
Ryans-MacBook-Pro:raffler Ryan$ 

난장판 문제를 해결할 수있는 방법에 대한 의견을 말씀드립니다. 감사!

답변

0

오류 메시지를 보면 실제로 레일 문제가 아니라 권한 문제가 있습니다. chmod -R 666 /Users/Ryan/code/raffler/을 시도하고 사용자가 해당 디렉토리의 소유자인지 확인하십시오.