12
二月

Rails 2.3 rc 1 command error under windows using cmd  

Posted by Mindlern in

测试rails 2.3  rc1
使用ruby 1.9.1

在cmd
执行rails -v
得到 The filename,directory name or volume label syntax is incorrect.

解决办法(solution)

打开ruby.bat
会看到
@"ruby.exe"" "D:/ruby/ruby 1.9.1/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9

@"ruby.exe"" "%~dpn0" %*


这里有两个双引号

改为

@"ruby.exe" "D:/ruby/ruby 1.9.1/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9

@"ruby.exe" "%~dpn0" %*


cmd rails -v

就正常了

This entry was posted on 2009年2月12日星期四 at 星期四, 二月 12, 2009 and is filed under . You can follow any responses to this entry through the comments feed .

0 评论

发表评论