나는 루비 온 레일즈 튜토리얼을 다음 그리고 난이 오류가 밖으로 유출 명령레일을 새로 실행할 때 오류가 발생합니다. 난간 문제?
rails new demo_app
를 입력하면 나는 제 2 장에있어. 솔루션 검색을 시도했지만 답이 일치하지 않습니다. 레일 티와 레일을 제거하고 다시 설치했지만 여전히 동일한 오류가 발생했습니다.
run bundle install
Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.
6/lib/rails/generators/app_base.rb:254:in ``': No such file or directory - ""Z:/
Program Files/RailsInstaller/Ruby1.9.3/bin/ruby.exe"" -rubygems "Z:/Program File
s/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/bin/bundle" i
nstall (Errno::ENOENT)
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
railties-3.2.6/lib/rails/generators/app_base.rb:254:in `bundle_command'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
railties-3.2.6/lib/rails/generators/app_base.rb:258:in `run_bundle'
from (eval):1:in `run_bundle'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/task.rb:27:in `run'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/invocation.rb:120:in `invoke_task'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/invocation.rb:126:in `block in invoke_all'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/invocation.rb:126:in `each'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/invocation.rb:126:in `map'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/invocation.rb:126:in `invoke_all'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/group.rb:238:in `dispatch'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
thor-0.15.2/lib/thor/base.rb:408:in `start'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
railties-3.2.6/lib/rails/commands/application.rb:38:in `<top (required)>'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:55:in `require'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:55:in `require'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
railties-3.2.6/lib/rails/cli.rb:15:in `<top (required)>'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:55:in `require'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:55:in `require'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
railties-3.2.6/bin/rails:7:in `<top (required)>'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/bin/rails:19:in `load'
from Z:/Program Files/RailsInstaller/Ruby1.9.3/bin/rails:19:in `<main>'
의견이 있으십니까? 고맙습니다.
해당 명령을 실행중인 디렉토리의 경로는 무엇입니까? (예 : 생성하려는 디렉토리) – iHiD
Z : \ rails_projects> rails new demo_app Z : \ Program Files \ RailsInstaller에 Rails가 설치되어 있으므로 Program Files의 공백이 문제가 될 수 있습니다. –