Solved

trying to install rails 2.3.11

Posted on 2011-09-05
9
909 Views
Last Modified: 2012-05-12
dont understand what i'm doing wrong here

[20:21:28]kevin[ndthub]$ sudo gem install rails -v 2.3.11 --no-ri --no-rdoc
Successfully installed rails-2.3.11
1 gem installed
[20:22:49]kevin[ndthub]$ ruby script/server
Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 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.
[20:23:49]kevin[ndthub]$ rails -v
Rails 2.3.5

0
Comment
Question by:depassion
  • 5
  • 2
  • 2
9 Comments
 
LVL 10

Expert Comment

by:Andrew Doades
ID: 36485261
I've seen this before with a newer version of Rack

Can you post the output of "gem list"

Andrew
0
 

Author Comment

by:depassion
ID: 36485386
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activemodel (3.1.0)
activerecord (3.1.0, 2.3.5)
activeresource (3.1.0, 2.3.5)
activesupport (3.1.0, 2.3.5)
arel (2.2.1)
bcrypt-ruby (3.0.0)
builder (3.0.0)
bundler (1.0.18)
capistrano (2.8.0)
erubis (2.7.0)
highline (1.6.2)
hike (1.2.1)
hoptoad_notifier (2.4.11)
i18n (0.6.0)
mail (2.3.0)
mime-types (1.16)
multi_json (1.0.3)
mysql2 (0.3.7, 0.3.6)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
polyglot (0.3.2)
rack (1.3.2, 1.0.1)
rack-cache (1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.5)
railties (3.1.0)
rake (0.9.2 ruby)
rdoc (3.9.4)
rubygems-update (1.8.10)
sprockets (2.0.0)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.29)
xml-simple (1.1.0)
0
 
LVL 10

Expert Comment

by:Andrew Doades
ID: 36485398
I think its rack 1.3.2 that's causing the problem.

try running the following:

gem uninstall -v=1.3.2 rack

Then boot rails again.

Andrew
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:depassion
ID: 36485483
[21:03:52]kevin[ndthub]$ sudo gem uninstall -v=1.3.2 rack
Password:
INFO:  gem "rack" is not installed
[21:30:10]kevin[ndthub]$ ruby script/server
Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 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.
0
 
LVL 12

Expert Comment

by:JESii
ID: 36486499
You're getting the error message because the rails server can't find Rails 2.3.11.

I see from your gem list that you have Rails 2.3.5 installed, along with parts of rails 3.1.0.

First thing I'd do is uninstall all the 3.1.0 gems (activemodel, activerecord, ...) with
   gem uninstall activemodel -v=3.1.0  # do the same for all the others)

Then I'd try the gem install again:
   gem install rails -v=2.3.11

Then do another gem list to see what you have.
0
 

Author Comment

by:depassion
ID: 36488532
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activemodel (3.1.0)
activerecord (3.1.0, 2.3.5)
activeresource (3.1.0, 2.3.5)
activesupport (3.1.0, 2.3.5)
arel (2.2.1)
bcrypt-ruby (3.0.0)
builder (3.0.0)
bundler (1.0.18)
capistrano (2.8.0)
erubis (2.7.0)
highline (1.6.2)
hike (1.2.1)
hoptoad_notifier (2.4.11)
i18n (0.6.0)
mail (2.3.0)
mime-types (1.16)
multi_json (1.0.3)
mysql2 (0.3.7, 0.3.6)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
polyglot (0.3.2)
rack (1.3.2, 1.0.1)
rack-cache (1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.5)
railties (3.1.0)
rake (0.9.2 ruby)
rdoc (3.9.4)
rubygems-update (1.8.10)
sprockets (2.0.0)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.29)
xml-simple (1.1.0)
[15:06:03]kevin[ndthub]$ sudo gem uninstall actionmailer -v=2.3.5
INFO:  gem "actionmailer" is not installed
[15:06:20]kevin[ndthub]$ sudo gem uninstall activemodel -v=2.3.5
Password:
INFO:  gem "activemodel" is not installed

this is crazy. how can i just start over and remove all gems from the ruby version. If i install a new patch version of 1.8.7 that will allow me to start from scratch right?
0
 

Author Comment

by:depassion
ID: 36488551
rvm rubies

=> ruby-1.8.7-p352 [ x86_64 ]
   ruby-1.9.2-p290 [ x86_64 ]
0
 

Author Comment

by:depassion
ID: 36490986
ok, i was using rvm so i created a new gemset and installed a fresh 2.3.11 version of rails.
0
 
LVL 12

Accepted Solution

by:
JESii earned 500 total points
ID: 36495497
rvm can be really confusing at times, as it picks up the gems it thinks are right.

What I've found works for me is that I explicitly set a default ruby (an explicit patch level, not head; otherwise the patch-level can change) and a default gemset so that everything is locked down.

rvm --default <ruby>
rvm gemset <gemsetname> --default

You also have to create the gemset the first time around (see http://beginrescueend.com/gemsets/basics/)

Once this is working correctly, rvm will display the ruby/gemset combination whenever you cd into your project.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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