Solved

Can't activate rails (=  2.3.5, runtime) for [], already activated rails-3.0.0 for [] (Gem::LoadError)

Posted on 2010-09-21
2
1,819 Views
Last Modified: 2012-05-10
I have an application which was built on a 2.3.5 rails platform.

Runs through normally with 2.3.8 as well.

I have a new Windows server which I've installed ruby 1.9.2p0 and then did a gem install rails.

It installed the rails v3.0. I then went to install rails -v=2.3.5 so that I can run the application.

However, when I ran rake db:migrate, it gave the error saying that 3.0 is already activated therefore it can't run.

I'd like to ensure that my application runs.

Can someone help me on what I need to do. I can't run ruby script/server nor any rake commands...

I need this to run on Windows due to some constraints that I have.

Thanks
0
Comment
Question by:binele
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Expert Comment

by:JESii
ID: 33728600
I'd try  a
   gem uninstall rails
and/or explicitly uninstalling all the piece-parts:
   gem uninstall activerecord
   gem uninstall active support
   ...
and then a gem install rails --version '=2.3.5'
0
 
LVL 2

Accepted Solution

by:
narshlob earned 500 total points
ID: 33755237
It looks like you might have a gem or another part of your application requiring rails v3.0.
If I were you, I'd look into using RVM. You can split up your ruby versions and use gemsets to test out different versions of gems / ruby.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
WHY MVC is the future technology... As many of you know, MVC is Model,View,Controller pattern. Model View Controller pattern was invented in a Smalltalk context at Xerox in late 1970s. Why is this buzz about MVC: --------------------------- …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question