Forum: Ruby on Rails rails on OS X 10.3.9 not working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cae4cc751f3e3e1615df28866d55851c?d=identicon&s=25 Marc Hanisch (Guest)
on 2006-03-15 09:17
(Received via mailing list)
Hello,

I've installed Ruby 1.8.4 via Darwinports, installed gem 0.8.11 too and
then installed Rails via gem. I'm using OS X 10.3.9.
When I now type rails in the terminal, the following lines appear:

# rails
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/values/time_zone.rb:12: undefined method `attr_reamer'
for TimeZone:Class (NoMethodError)
         from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
         from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:214:in `require'
         from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support.rb:36
         from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
         from
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/
active_record.rb:30
         from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:182:in
`activate'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:181:in
`activate'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:167:in
`activate'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:166:in
`activate'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options'
         from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:31:in
`require_gem'
         from /opt/local/bin/rails:17

Something seems to be broken. I've deinstalled and installed rails
again, but nothing happens.

Thanks for any help,
Marc
B8d11b4c89cfc6e34d6c9fb121c9acac?d=identicon&s=25 Claus Guttesen (Guest)
on 2006-03-15 11:26
(Received via mailing list)
> `require'
> ...
> Something seems to be broken. I've deinstalled and installed rails
> again, but nothing happens.

I installed ruby the same way on OS X 10.4 (tiger) and it works fine.
You can try to move ruby that came with OS X and softlink the newly
installed ruby.

1. sudo mv /usr/bin/ruby /usr/bin/ruby.org
2. sudo ln -s /usr/local/bin/ruby /usb/bin/ruby

If you installed darwinports with default values /usr/local will
become /opt/bin (as I recall it) in item 2.

regards
Claus
Cae4cc751f3e3e1615df28866d55851c?d=identicon&s=25 Marc Hanisch (Guest)
on 2006-03-15 11:39
(Received via mailing list)
Thank you,

but I put /opt/local/bin to my path-variable in /etc/profile, so the
ruby-verison from /opt/local/bin/ (darwinports directory) will allready
be used.
When  I type

# ruby --version

I get

ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]

So it allready uses the darwinports-ruby.
Any ideas?!

Marc


Am 15.03.2006 um 11:25 schrieb Claus Guttesen:
B8d11b4c89cfc6e34d6c9fb121c9acac?d=identicon&s=25 Claus Guttesen (Guest)
on 2006-03-15 12:38
(Received via mailing list)
>
> So it allready uses the darwinports-ruby.
> Any ideas?!

When I do a 'gem list' I get:

actionmailer (1.1.5)
actionpack (1.11.2)
actionwebservice (1.0.0)
activerecord (1.13.2)
activesupport (1.2.5)
rails (1.0.0)
rake (0.7.0)
sources (0.0.1)

Do you have the same gems?

regards
Claus
Cae4cc751f3e3e1615df28866d55851c?d=identicon&s=25 Marc Hanisch (Guest)
on 2006-03-15 12:45
(Received via mailing list)
# gem list
gives me the following:

actionmailer (1.1.5)
     Service layer for easy email delivery and testing.

actionpack (1.11.2)
     Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.0.0)
     Web service support for Action Pack.

activerecord (1.13.2)
     Implements the ActiveRecord pattern for ORM.

activesupport (1.2.5)
     Support and utility classes used by the Rails framework.

fcgi (0.8.6.1)
     FastCGI ruby binding.

rails (1.0.0)
     Web-application framework with template engine, control-flow layer,
     and ORM.

rake (0.7.0)
     Ruby based make-like utility.

sources (0.0.1)
     This package provides download sources for remote gem installation

This are the same packages and versions (except fcgi).
Hm...

Greetings,
Marc

Am 15.03.2006 um 12:35 schrieb Claus Guttesen:
Cae4cc751f3e3e1615df28866d55851c?d=identicon&s=25 Marc Hanisch (Guest)
on 2006-03-15 13:12
(Received via mailing list)
Is it possible, that there is no method attr_reamer...
I googled for it and only found a method called attr_reader.

Should I try to change this in
opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/values/time_zone.rb ?!

Best regards,
Marc


Am 15.03.2006 um 11:36 schrieb Marc Hanisch:
Cae4cc751f3e3e1615df28866d55851c?d=identicon&s=25 Marc Hanisch (Guest)
on 2006-03-15 13:16
(Received via mailing list)
Ha! It works :-) I changed  attr_reamder into attr_reader.
Hm, I'm wondering why this bug only happens to me ;-)

Greetings,
Marc

Am 15.03.2006 um 13:11 schrieb Marc Hanisch:
Eea7ad39737b0dbf3de38874e0a6c7d8?d=identicon&s=25 Justin Forder (Guest)
on 2006-03-18 03:38
(Received via mailing list)
Marc Hanisch wrote:

> Ha! It works :-) I changed  attr_reamder into attr_reader.
> Hm, I'm wondering why this bug only happens to me ;-)

I think your gem was corrupted. Line 12 of my copy of that file is:

   attr_reader :name, :utc_offset

Perhaps you should reinstall the gems, to be safe.

regards

   Justin
This topic is locked and can not be replied to.