[英]JRuby rails server
I installed jruby and rails. 我安装了jruby和rails。 I chek It works.
我che它的作品。
jruby -v
jruby 1.7.12 (1.9.3p392) 2014-04-15 643e292 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_05-b13 +indy [Windows 7-amd64]
I created new app without error. 我没有错误地创建了新应用。 But when I tried to run "rails server" I got error:
但是,当我尝试运行“ rails server”时,出现错误:
"jruby.exe" -S "D:\Program Files\Java\jruby-1.7.12\bin\rails" server
Errno::ENOENT: No such file or directory - "D:/Program Files/Java/jruby- 1.7.12/bin/jruby.exe"
_exec_internal at org/jruby/RubyKernel.java:1774
exec at file:/D:/Program Files/Java/jruby- 1.7.12/lib/jruby.jar!/jruby/kernel19/kernel.rb:25
exec_app_rails at D:/Program Files/Java/jruby-1.7.12/lib/ruby/gems/shared/gems/railties-4.1.0/lib/rails/app_rails_loader.rb:37
loop at org/jruby/RubyKernel.java:1501
exec_app_rails at D:/Program Files/Java/jruby-1.7.12/lib/ruby/gems/shared/gems/railties-4.1.0/lib/rails/app_rails_loader.rb:32
(root) at D:/Program Files/Java/jruby-1.7.12/lib/ruby/gems/shared/gems/railties-4.1.0/lib/rails/cli.rb:5
require at org/jruby/RubyKernel.java:1065
(root) at D:/Program Files/Java/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
require at D:/Program Files/Java/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:73
load at org/jruby/RubyKernel.java:1081
(root) at D:\Program Files\Java\jruby-1.7.12\bin\rails:23
I changed path to the jruby from D:/Program Files/Java/jruby-1.7.12 to D:\\JRuby 我将Jruby的路径从D:/ Program Files / Java / jruby-1.7.12更改为D:\\ JRuby
Error was gone. 错误消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.