JRuby语言内部报道:Rails框架版本2.0在JRuby版本1.0.2及其以下兼容错误

Posted by cnruby Wed, 14 Nov 2007 23:00:00 GMT

Rails框架版本2.0在JRuby版本1.0.2版本以下兼容错误

  • 相关错误报告
    http://jira.codehaus.org/browse/JRUBY-1520
  • 问题说明
    这个错误报告说明了JRuby语言1.1beta版本升级RubyGems的问题。其实这个问题在JRuby版本1.0.2就已经存在了,请看下面的命令。Rails框架2.0版本需要RubyGems版本0.9.4,而JRuby语言版本1.0.2及其以下安装的RubyGems版本是0.9.2。要是想在这些JRuby语言版本更新就会出现错误。但是JRuby语言1.1beta版本开始已经是0.9.4版本。要是还想更新就会出现下面类似的错误。
  • 稳定版安装命令(执行环境为JRuby语言版本1.0.2)
    jruby -S gem update --system
  • 错误信息
    Updating RubyGems...
    Attempting remote update of rubygems-update
    Successfully installed rubygems-update-0.9.4
    Updating version of RubyGems to 0.9.4
    Installing RubyGems 0.9.4
    Error opening script file: setup.rb (系统找不到指定的文件。)
    RubyGems system software updated
  • 测试版本安装命令
    jruby -S gem update --system --source http://segment7.net/
  • 相关网站



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags , , ,

JRuby语言内部报道:Rails框架版本1.2.5在JRuby版本1.0.1版本以下兼容错误

Posted by cnruby Thu, 01 Nov 2007 09:58:00 GMT

JRuby语言内部报道:Rails框架版本1.2.5在JRuby版本1.0.1版本以下兼容错误

  • JRuby错误报告
    http://jira.codehaus.org/browse/JRUBY-1401
  • JRuby错误信息
    “...lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or directory...”
  • 错误原因
    在Windows系统下没有处理好驱动器名称。这个也是软件开发的常见错误。
  • 说明:
    这个问题将在JRuby版本1.0.2被解决。JRuby版本1.0.2已经发行。



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags , ,

Ruby语言:错误信息说明to_date

Posted by cnruby Sat, 20 Oct 2007 09:56:00 GMT

Ruby语言:错误信息to_date说明

  • 系统环境:
    Debian Sarge(3.1)
    Ruby 1.8.6
  • 错误信息:
    NoMethodError (private method `to_date' called for...)
  • 使用Rails框架应用软件:
    Mehisto
  • 解决方案:在Rails框架软件配置文件your environment.rb最前面增加如下代码:
       class Time; public :to_date ;end #use the ruby-1.8.6 version
  • 参考资料:
    http://groups.google.de/group/ruby-talk-google/browse_thread/thread/7fba3bd6c9f07a51



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags , , , , ,

Ruby语言:错误信息说明

Posted by cnruby Fri, 19 Oct 2007 12:28:00 GMT

系统环境:Debian Sarge 3.1
安装软件:RubyGems
错误信息:
< — lib
/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:4:in `require’: no such file to load — zlib (LoadError)
解决方案:
# cd /usr/local/src
# wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
# tar zxf rubygems-0.9.4.tgz
# cd /usr/local/src/ruby-1.8.6/ext/zlib/
# ruby extconf.rb –with-zlib-include=/usr/include –with-zlib-lib=/usr/lib
# make && make install
# cd /usr/local/src/rubygems-0.9.4/
# ruby setup.rb config
# ruby setup.rb setup
# ruby setup.rb install
参考资料:
http://www.pirateworks.de/archives/43


________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Tags , ,

Older Posts

Older Posts: 1 2