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,810 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
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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Suggested Solutions

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…
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

943 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now