我是Ruby on Rails的新手,我在启动一个新项目时遇到了一些问题。当我尝试在run bundle install
之后创建一个新项目时,我得到以下内容:
C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/ge nerators/app_base.rb:330:in ``': No such file or directory - ""C:/Program Files/ Ruby21-x64/bin/ruby.exe"" "C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ bundler-1.7.8/bin/bundle" install (Errno::ENOENT) from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /lib/rails/generators/app_base.rb:330:in `block in bundle_command' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/ lib/bundler.rb:236:in `block in with_clean_env' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/ lib/bundler.rb:223:in `with_original_env' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.8/ lib/bundler.rb:229:in `with_clean_env' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /lib/rails/generators/app_base.rb:329:in `bundle_command' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /lib/rails/generators/app_base.rb:344:in `run_bundle' from (eval):1:in `run_bundle' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/command.rb:27:in `run' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/invocation.rb:126:in `invoke_command' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/invocation.rb:133:in `block in invoke_all' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/invocation.rb:133:in `each' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/invocation.rb:133:in `map' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/invocation.rb:133:in `invoke_all' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/group.rb:232:in `dispatch' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thor-0.19.1/li b/thor/base.rb:440:in `start' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /lib/rails/commands/application.rb:17:in `' from C:/Program Files/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/core_ ext/kernel_require.rb:54:in `require' from C:/Program Files/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/core_ ext/kernel_require.rb:54:in `require' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /lib/rails/cli.rb:14:in `' from C:/Program Files/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/core_ ext/kernel_require.rb:54:in `require' from C:/Program Files/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/core_ ext/kernel_require.rb:54:in `require' from C:/Program Files/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.8 /bin/rails:9:in `' from C:/Program Files/Ruby21-x64/bin/rails:23:in `load' from C:/Program Files/Ruby21-x64/bin/rails:23:in `'
我的Ruby版本是2.1.5,Rails版本是4.1.8。我手动安装了Rails,但是当我使用Rails安装程序时,我遇到了同样的问题。