[前][次][番号順一覧][スレッド一覧]

rails:2414

From: hoti <hoti_jp@y...>
Date: Tue, 16 Oct 2007 16:10:21 +0900 (JST)
Subject: [rails:2414] gettext が production モードで動かない

こんにちは。報知といいます。

gettext をproduction環境で実行した時、development環境では発生しない、
「HTTP500内部サーバーエラー」が発生します。
「uninitialized constant ActiveRecord::VERSION」などのエラーログが
出ます。

エラーを解消するためには、どのあたりをチェックする必要があるでしょう
か?


(見当違いかもしれませんが、利用しているgettext は1.10.0なのに、
エラーログに「gettext-1.8.0」とある点が気になっています。
特定のgettextのバージョン(gettext-1.10.0)を利用する方法はあるのでし
ょうか?)

ご面倒ですが、アドバイスをお願いいたします。

===========================================================
$ cat ~/.gemrc
gemhome: /home/hoti/.gems
gempath:
  - /home/hoti/.gems          <= gettext-1.10.0がある
  - /usr/local/lib/ruby/gems  <= gettext-1.8.0に加えて、rails-1.2.3など主要GEMがある


============================================================
【エラーログ】
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
`load_missing_constant'
 :
 uninitialized constant ActiveRecord::VERSION
  (
 NameError
 )
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
`const_missing'
from /usr/lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/active_record.rb:49
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require'
from /usr/lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/rails.rb:435
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require'
from ./../config/environment.rb:67
from dispatch.cgi:3:in `require'
from dispatch.cgi:3
Premature end of script headers: dispatch.cgi

------------------------------
$ ./script/about
About your application's environment
Ruby version                 1.8.5 (i386-linux)
RubyGems version             0.9.2
Rails version                1.2.3
Active Record version        1.15.3
Action Pack version          1.13.3
Action Web Service version   1.2.3
Action Mailer version        1.3.3
Active Support version       1.4.2
Application root             /home/.kondrat/runeyokohama/jiritusodan1.agreege.com/app01
Environment                  development
Database adapter             mysql
Database schema version      1
GetText version              1.10.0




--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/


--
ML: rails@r...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

->    2414 2007-10-16 09:10 [hoti_jp@y...        ] gettext が production モードで動かない  
      2416 2007-10-17 08:59 ┣[zn@m...             ]                                       
      2421 2007-10-22 05:02 ┗[fuj@r...            ]                                       
      2424 2007-10-22 08:53  ┗[uchiyama.noriaki@g..]