Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:34:31+00:00 2026-06-11T22:34:31+00:00

Background: I get errors whenever I run rake in an older project. (uninitialized constant

  • 0

Background:

  • I get errors whenever I run rake in an older project. (uninitialized constant Rake::DSL).
  • The rails project in question is an old project that was started with Rails 2.1 (I think), and since then I’ve updated the OS on my laptop a couple of times, and made updates along the way to make it run.
  • Right now, the rails app works fine, provided I have RAILS_GEM_VERSION set to 2.3.5. I’m not sure if the app was completely updated to Rails 2.3.5.
  • There is no Gemfile in my older project.
  • If I create a brand-new rails project (and unset RAILS_GEM_VERSION), rake runs fine.

My question: To troubleshoot, I’d like to try newer versions of rake. I’d like to know how to force one specific version to be used, since it appears I have multiple versions installed.

Info on my environment:

$ gem list rake

*** LOCAL GEMS ***

rake (0.9.2.2, 0.9.2, 0.8.7, 0.8.3)


$ rake --version
rake, version 0.8.7

So it looks like it’s picking up the 0.8.7 version.

All the help files online seem to tell me to specify the rake version in the Gemfile, but there isn’t one in this project. (Maybe it predates gemfiles?)

If I unset the RAILS_GEM_ENVIRONMENT variable altogether, and try to run rake, I get:

rake aborted!
can't activate rails (= 2.3.5, runtime) for [], already activated rails-3.2.8 for []

None of the environment config files in my older project set that variable either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:34:33+00:00Added an answer on June 11, 2026 at 10:34 pm

    This may be of help. Have you tried the underscore solution?

    Example:

    rake _0.9.2_
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a background thread that get's data and returns it to the main
Background: As I'm developing an app that needs to be run on a device,
Background: I'm writing a data provider that SSAS will use to get data from
I get the error shown below (73TypeError) on a small background animation script when
I'm trying to get background worker functioning in the most basic way with a
I'm trying to get background music going for my XNA game, but the options
Background - I can get HttpListener working fine for HTTP traffic. I'm having trouble
I cannot get the background to stretch behind the contentbox. The strange thing is,
I'm trying to get the background colors of the strips to change (it is
I am using this code to get the background image of a div .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.