Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Missing the Rails 2.2.2 gem

#1538

Hi, the following error is generated when 'rake -T' executed in the root of a rails 2.2.2 application:

Missing the Rails 2.2.2 gem. Please gem install -v=2.2.2 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

Next, I performed the install and inspected the environment.rb as the message instructs one and the error still persists. Lastly, I have installed RubyGems 1.3.1 and ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9] on Mac OS 10.5.5.

Reported by Conrad Taylor · December 9th, 2008 @ 02:19 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung

    do you have multiple installs of ruby that are getting confused (i.e. what do which gem and which ruby say?)

    December 9th, 2008 @ 03:33 PM

  2. Conrad Taylor
    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.

    December 9th, 2008 @ 11:46 PM

  3. Frederick Cheung
    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 ?

    December 9th, 2008 @ 11:57 PM

  4. Conrad Taylor
    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

    December 10th, 2008 @ 12:05 AM

  5. Frederick Cheung
    Frederick Cheung

    How about the rake binary itself?

    December 10th, 2008 @ 10:12 AM

  6. Conrad Taylor
    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'

    December 10th, 2008 @ 10:31 AM

  7. Pratik
    Pratik
    • State changed from new to invalid

    Please reopen if still an issue.

    January 18th, 2009 @ 05:53 AM

  8. bingbing
  9. af001
    af001

    私の中で、総合評価のとっても低いアバアバクロホリスタークロ銀座店。アバクロは大好きなんですけどね。一昨日の東京駅付近での打ち合わせの後、散歩がてら久々に行ってきました。そしたらビックリ!相変わらアバクロず、踊っているだけの店員さんとかもいましたが、

    May 5th, 2011 @ 03:00 AM