# Rails on OS X 10.3.9 not working

**URL:** <https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927>\
**Category:** Rails\
**Created:** [March 15, 2006, 9:17am UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927 "2006-03-15T09:17:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 9:17am UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/1 "2006-03-15T09:17:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 11:26am UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/2 "2006-03-15T11:26:44Z")

</div>

> `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

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 12:38pm UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/3 "2006-03-15T12:38:32Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 11:39am UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/4 "2006-03-15T11:39:03Z")

</div>

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 G.:

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 12:45pm UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/5 "2006-03-15T12:45:27Z")

</div>

# 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 G.:

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/6 "2006-03-15T13:16:49Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 18, 2006, 3:38am UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/7 "2006-03-18T03:38:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Marc\_Hanisch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Marc\_Hanisch](https://www.ruby-forum.com/u/Marc_Hanisch)\
**Post date:** [March 15, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/rails-on-os-x-10-3-9-not-working/54927/8 "2006-03-15T13:12:54Z")

</div>

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:
