Rails on OS X 10.3.9 not working


#1

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:inrequire’
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:inrequire’
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:inactivate’
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:inactivate’
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:inrequire_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


#2

`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


#3

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


#4

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


#5

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


#6

Ha! It works :slight_smile: I changed attr_reamder into attr_reader.
Hm, I’m wondering why this bug only happens to me :wink:

Greetings,
Marc

Am 15.03.2006 um 13:11 schrieb Marc Hanisch:


#7

Marc Hanisch wrote:

Ha! It works :slight_smile: I changed attr_reamder into attr_reader.
Hm, I’m wondering why this bug only happens to me :wink:

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


#8

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: