Rails + Gettext problem

Hello,
I had to format my pc, and now i can´t get Rails + Gettext to work…
Any ideas?
Tnx for the help,
Guilherme

NameError

uninitialized constant System

RAILS_ROOT: ./script/…/config/…
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:123:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ locale_win32.rb:17 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
locale.rb:38
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext.rb:19 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
cgi.rb:13
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ rails.rb:12 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
#{RAILS_ROOT}/app/controllers/application.rb:5
-e:4:in `load’
-e:4

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:123:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ locale_win32.rb:17 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
locale.rb:38
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext.rb:19 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
cgi.rb:13
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ rails.rb:12 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:140:in load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:140:inload’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:56:in rails_pre_engines_require_or_load' #{RAILS_ROOT}/vendor/plugins/engines/lib/engines/ dependencies_extensions.rb:60:inrails_1_1_require_or_load’
#{RAILS_ROOT}/vendor/plugins/engines/lib/engines/
dependencies_extensions.rb:14:in require_or_load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:30:independ_on’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:85:in require_dependency' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:69:inprepare_application’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:37:in
dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb: 115:inhandle_dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in
service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:ineach’
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in start' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:indispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/
webrick.rb:59
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
script/server:3

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:123:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ locale_win32.rb:17 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
locale.rb:38
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext.rb:19 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
cgi.rb:13
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/ rails.rb:12 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
#{RAILS_ROOT}/app/controllers/application.rb:5
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:140:in load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:140:inload’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:56:in rails_pre_engines_require_or_load' #{RAILS_ROOT}/vendor/plugins/engines/lib/engines/ dependencies_extensions.rb:60:inrails_1_1_require_or_load’
#{RAILS_ROOT}/vendor/plugins/engines/lib/engines/
dependencies_extensions.rb:14:in require_or_load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:30:independ_on’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:85:in require_dependency' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:69:inprepare_application’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:37:in
dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb: 115:inhandle_dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in
service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:ineach’
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in start' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:indispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/
webrick.rb:59
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:147:in require' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:147:inrequire’
script/server:3
-e:4:in `load’
-e:4

This error occured while loading the following files:
application.rb
gettext/rails
gettext/cgi
gettext
gettext/locale
gettext/locale_win32
locale/system.rb

Hi,

Did you install gettext gem of win32 version?

On Tue, 03 Jul 2007 15:53:28 -0700

Hi,

I work with Guilherme. Yes, we did install gettext gem for win32
(1.8.0). We have it for granted that is an installation issue cus the
very same code works in my computer but not in his. Any tip else?

Thank you
Ricardo

On 7/3/07, Masao M. [email protected] wrote:

I had to format my pc, and now i can t get Rails + Gettext to work…

c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.8.0-mswin32/lib/gettext/
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
dependencies.rb:147:in require' -e:4 dependencies.rb:147:inrequire’
gem_original_require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:140:inload’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/ c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' dependencies_extensions.rb:60:inrails_1_1_require_or_load’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
-e:4


Ricardo A.
[email protected]
Acras Desenvolvimento de Sistemas
+55+41-3232-6404
www.acras.net

Hi,

On Tue, 3 Jul 2007 23:58:42 -0300
“Ricardo A.” [email protected] wrote:

Hi,

I work with Guilherme. Yes, we did install gettext gem for win32
(1.8.0). We have it for granted that is an installation issue cus the
very same code works in my computer but not in his. Any tip else?

Hmm.
I suspect his machine has other versions of ruby-gettext anywhere.
If so, remove them first.
For example, old Ruby-GNOME2 binary package included gettext
and it’s installed to site_ruby directory.

I’ve done some further tests and seems to me that since gettext1.8 it
is not necessary to have gnu gettext installed. Massao, is that
correct?

Ricardo

Hi,

On Wed, 04 Jul 2007 06:43:48 -0700
Guilherme [email protected] wrote:

gem (require ‘gettext/rails’) it do not locate gnu gettext.
Ruby-GetText doesn’t use GNU Gettext on runtime.
(It is used when you execute “rake updatepo” only)

You said “reinstall gettext gems”… I think you have OTHER versions of
Ruby-GetText which don’t depend on rubygems.
Did you check it?

Anyway, it may be better to uninstall and remove all of ruby
files(c:\ruby)
then reinstall ruby and gems.

HTH,

Hi Massao,

We’ve made some new tests and realized that this error message
(uninitialized constant System) occurs even when GNU GetText is not
installed. The System variable MSGMERGE_PATH is correctly setted.
We’ve tried to reinstall gnu gettext, reinstall gettext gems with no
results. Furthermore we tried to locate another installation of
gettext and did not get any results.
I think that in application.rb when we try to require the gettext
gem (require ‘gettext/rails’) it do not locate gnu gettext.

Hope you can point us to solve this issue.
Thank you for your help.

Hello Masao,

We finally found the solution. There was some problem with
msvcr71.dll.
It was in Aptana’s folder… We moved it to system32 and now it works
fine.

Thanks a lot for your help. Have a nice day :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs