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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is the advantage of using node.js 8 140
ssl on cdn 2 110
responsive rollover mega menu for bootstrap? 1 39
Bootstrap 1 101
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: --------------------------- …
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

19 Experts available now in Live!

Get 1:1 Help Now