I'm having trouble installing Rails 3 (on a Mac Powerbook G4 running
OSX 10.5.8).  Specifically, when I try "gem install rails --pre" it
says:

ERROR:  Error installing rails:
        activesupport requires Ruby version >= 1.8.7.

But, if I do "ruby --version", it says "ruby 1.8.7 (2010-06-23
patchlevel 299) [powerpc-darwin9]".

???  Maybe I'm not counting on enough fingers, but it seems to me like
1.8.7 (what I have) is indeed >= (greater than *or equal to*) 1.8.7
(what activesupport wants).

I thought it might have been getting confused because I got 1.8.7 via
ports (which BTW required in turn an upgrade of XCode, AND took hours
to download and build), so that was in /opt/local/bin, while
/usr/bin/ruby was a symlink to
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby.
 So I moved /usr/bin/ruby to ruby.old, and pointed a new ruby link to
the one in /opt/local/bin.  Still no go.

I suspect that gem is looking directly into
/System/Library/Frameworks/blah/blah/blah, so I tried to google how to
move the ports one into place and the structure of a correct Mac
framework, and Ruby in particular, but didn't get anything useful
(i.e., that I felt I could grok in sufficient fullness).

I thought it might be looking at lib files, so I tried moving
/usr/local/lib/ruby to ruby.old and making a symlink named ruby, to
/opt/local/lib/ruby.  Same result.

Next step was to download (svn co), build, and install MacRuby 0.6,
leapfrogging up to Ruby 1.9.  Or at least try to -- rake says:

You appear to be using a PowerPC machine. MacRuby's primary
architectures are Intel 32-bit and 64-bit (i386 and x86_64).
Consequently, PowerPC support may be lacking some features.
The llvm-config executable was not located as
/usr/local/bin/llvm-config. Please make sure LLVM is correctly
installed on your machine and pass the llvm_config option to rake if
necessary.

I was about to try installing llvm, but I'm sick of shaving yaks, and
starting to get the impression I'm doin' it wrong.

Is there indeed an easier way to get Rails 3 onto a non-Intel Mac?
Could the problems maybe have something to do with the fact that I
already have a prior version of Rails (2.3.8) installed?  (Or does
someone have an Intel-based Mac they'd like to donate?)

Thanks,
Dave

-- 
Specialization is for insects. -RAH  | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog:  http://dare2xl.com | Play: http://davearonson.net

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to