[icesik@iceberg ~]$ rpm -q ruby-rails ruby-rails-2.3.3.1-alt3 [icesik@iceberg ~]$ cd tmp [icesik@iceberg tmp]$ rails demo1 [выхлоп поскипан] [icesik@iceberg tmp]$ cd demo1 [icesik@iceberg demo1]$ ./script/server => Booting WEBrick => Rails 2.3.3 application starting on http://0.0.0.0:3000 /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:440:in `rescue in load_missing_constant': uninitialized constant Rails::GemDependency (NameError) from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:436:in `load_missing_constant' from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:80:in `const_missing_with_dependencies' from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:299:in `add_gem_load_paths' from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:131:in `process' from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:112:in `run' from /home/icesik/tmp/demo1/config/environment.rb:9:in `<top (required)>' from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `require' from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `block in require' from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:521:in `new_constants_in' from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `require' from /usr/share/ruby/vendor_ruby/1.9/commands/server.rb:84:in `<top (required)>' from ./script/server:3:in `require' from ./script/server:3:in `<main>' [icesik@iceberg demo1]$ export RUBYOPT='--enable gems' [icesik@iceberg demo1]$ ./script/server => Booting WEBrick => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2009-08-16 17:48:17] INFO WEBrick 1.3.1 [2009-08-16 17:48:17] INFO ruby 1.9.1 (2009-07-27) [i586-linux-gnu] [2009-08-16 17:48:17] INFO WEBrick::HTTPServer#start: pid=8348 port=3000 ^C[2009-08-16 17:48:21] INFO going to shutdown ... [2009-08-16 17:48:21] INFO WEBrick::HTTPServer#start done. Exiting [icesik@iceberg demo1]$
Забыл добавить, что из самих гемов ничего не стоит.
Есть ли продвижение по данной баге?
А надо срочно-срочно чинить? Workaround exists, export RUBYOPT='--enable gems'. Всё равно у rails на 1.9 очень большие проблемы с non-latin даными.
Хм, works for me Да и в релизноутсах 2.3: Rails 2.3 should pass all of its own tests whether you are running on Ruby 1.8 or the now-released Ruby 1.9.1. You should be aware, though, that moving to 1.9.1 entails checking all of the data adapters, plugins, and other code that you depend on for Ruby 1.9.1 compatibility, as well as Rails core.
ruby-rails-2.3.4-alt1 -> sisyphus: * Tue Oct 13 2009 Alexey I. Froloff <raorn@altlinux> 2.3.4-alt1 - [2.3.4-68-g7454d18] - Do not throw errors if rubygems installed and loaded in the middle of initiliazation process (closes: #21088)