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
> 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.
Multiple `ruby` executables -- maybe multiple `gem` executables too?
What does `gem env` say?
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Hmmm, I think you're on the right path. It says:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/dave/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
Looks like I need to get more familiar with the intricacies of the
Ruby "ecosystem", such as how to tell *gem*, not (just) OSX, that my
Ruby "stuff" is over in /opt. (Unless of course gem is simply
reporting what OSX tells it.) I'll google, and check manpages, and
see what I can figure out... but in the meantime, if anybody's
inclined to speak up.... :-)
> RubyGems Environment:
> - RUBYGEMS VERSION: 1.3.7
> - RUBY VERSION: 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
> - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
> - RUBY EXECUTABLE:
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> - EXECUTABLE DIRECTORY: /usr/bin
Yep, look around to see if you have another `gem`; you may be using
/usr/bin/gem by default, but your ports ruby has another one at e.g.
/usr/local/bin/gem or /opt/local/bin/gem.
If so, you just need to change your PATH to pick that up first.
HTH,