我正在关注 Ruby on Rails 教程,我在第 2 章。当我输入命令时
rails new demo_app
这个错误溢出了。我试过寻找解决方案,但没有一个答案匹配。我尝试卸载/重新安装 railties 和 rails 但仍然遇到相同的错误。
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>'
有什么建议么?谢谢你。