Bug 21088 - rails приложения падают при установленном rubygems
Summary: rails приложения падают при установленном rubygems
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ruby-rails (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-16 18:49 MSD by Igor Zubkov
Modified: 2009-10-14 19:59 MSD (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Zubkov 2009-08-16 18:49:20 MSD
[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]$
Comment 1 Igor Zubkov 2009-08-16 18:54:29 MSD
Забыл добавить, что из самих гемов ничего не стоит.
Comment 2 Vitaly Kuznetsov 2009-09-26 23:10:38 MSD
Есть ли продвижение по данной баге?
Comment 3 Sir Raorn 2009-09-27 00:44:43 MSD
А надо срочно-срочно чинить?  Workaround exists, export RUBYOPT='--enable gems'.  Всё равно у rails на 1.9 очень большие проблемы с non-latin даными.
Comment 4 Vitaly Kuznetsov 2009-09-27 17:14:34 MSD
Хм, 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.
Comment 5 Repository Robot 2009-10-13 21:11:23 MSD
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)