浏览 2131 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2007-10-17
突然之间,用NETBEANS 6 BETA 1 的generate命令报错如下: Pathname's realpath method was not properly handling drive letters in Windows, causing Rails initialization to fail in Edge (1.2.3.x) with errors like: C:/jruby/jruby-1.0.1/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or directory - C:/railstest/C: (Errno::ENOENT) from C:/jruby/jruby-1.0.1/lib/ruby/1.8/pathname.rb:453:in `realpath' from C:/jruby/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3.7605/lib/initializer.rb:494:in `set_root_path!' from C:/jruby/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3.7605/lib/initializer.rb:459:in `initialize' from ./script/../config/boot.rb:44:in `new' from ./script/../config/boot.rb:44:in `run' from ./script/../config/boot.rb:44 from :1:in `require' from :1 attached test shows failure in windows, patch fixes. 分析: 经分析是因为工具使用的jruby对rails的新版本兼容错误,详细见:http://jira.codehaus.org/browse/JRUBY-1401 解决方案: 卸载NETBEANS工具,并重装,让它恢复到RAILS的1.2.23版本。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |