This project is archived and is in readonly mode.

#1538 ✓invalid
Conrad Taylor

Missing the Rails 2.2.2 gem

Reported by Conrad Taylor | December 9th, 2008 @ 02:19 PM | in 2.x

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.

Comments and changes to this ticket

  • Frederick Cheung

    Frederick Cheung December 9th, 2008 @ 03:33 PM

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

  • Conrad Taylor

    Conrad Taylor December 9th, 2008 @ 11:46 PM

    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

    Frederick Cheung December 9th, 2008 @ 11:57 PM

    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

    Conrad Taylor December 10th, 2008 @ 12:05 AM

    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

    Frederick Cheung December 10th, 2008 @ 10:12 AM

    How about the rake binary itself?

  • Conrad Taylor

    Conrad Taylor December 10th, 2008 @ 10:31 AM

    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'

  • Pratik

    Pratik January 18th, 2009 @ 05:53 AM

    • State changed from “new” to “invalid”

    Please reopen if still an issue.

  • bingbing
  • af001

    af001 May 5th, 2011 @ 03:00 AM

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages