This project is archived and is in readonly mode.
Missing the Rails 2.2.2 gem
-
Frederick Cheung
do you have multiple installs of ruby that are getting confused (i.e. what do which gem and which ruby say?)
-
Conrad Taylor
The system is complaining about missing the rails 2.2.2 gem. This is installed on the system. For example,
request> rails -v
response> Rails 2.2.2
Also, I do have multiple installs of ruby but the correct version of ruby is being referenced. For example,
request> which ruby
response> /opt/local/bin/ruby
Next, this is the exact path at the top of the rake script. Also, I can use both passenger or mongrel to run the rails application successfully.
-
Frederick Cheung
The important thing is the output of which gem
To put things another way, does gem install foo install gems for one of the other installs of ruby ? Are the rails 2.2.2 gems in /opt/local/lib/ruby/gems ?
-
Conrad Taylor
Yes, this has been checked and verified. For example, the command
gem -> installs for /opt/local/bin/ruby
gem1.9 -> installs for /opt/local/bin/ruby1.9
-
Frederick Cheung
How about the rake binary itself?
-
Conrad Taylor
Hi, here's the rake script:
!/opt/local/bin/ruby
#
This file was generated by RubyGems.
#
The application 'rake' is installed as part of a gem, and
this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^(.*)$/ and Gem::Version.correct? $1 then version = $1 ARGV.shift end
gem 'rake', version load 'rake'