Installation problem

Hi all,

I’m a newbies for ruby and need some help for installation blocker.

I have my ruby installed “ruby 1.9.2dev (2010-07-11 revision 28613)
[i686-linux]”

And then I install the rails
sudo gem install rails --pre

but when I do rails -v, it shows
Rails 2.3.8

[ Note: I’ve installed 2.3.8 few days ago. And today I tried to
install the latest version. ]

So how I can use the latest version instead of the version I installed
few days ago??

On Jul 12, 4:45 pm, Roy Yu [email protected] wrote:

but when I do rails -v, it shows
Rails 2.3.8

[ Note: I’ve installed 2.3.8 few days ago. And today I tried to
install the latest version. ]

So how I can use the latest version instead of the version I installed
few days ago??

First check to see what versions of Rails you have installed on your
computer
sudo gem list --local rails

Then you can choose what version of Rails you want to use
rails 2.3.8 --version

Note: 2.3.8 is just an example. Put whatever version it is you want in
there.

You can also delete previous versions of rails
sudo gem cleanup

Hoped that helped.
Anon_comp

Thanks,

so if I do not delete previous version, will that cause a problem??

Oops, this is what I got.

[email protected]:~$ sudo rails 3.0.0.beta4 --version
/usr/local/lib/site_ruby/1.8/rubygems.rb:779:in
report_activate_error': RubyGem version error: rails(2.3.8 not = 3.0.0.beta4) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:inactivate’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem’
from /usr/bin/rails:18
[email protected]:~$ rails -v
Rails 2.3.8

On Jul 13, 11:57 am, Roy Yu [email protected] wrote:

Rails 2.3.8
Try without .beta4?

I haven’t upgraded to Rails 3.0 so I don’t know exactly how to fix
this issue. I’d probably try removing all versions of Rails and
install just 3.0
sudo gem uninstall rails

If that doesn’t work, well, I don’t know what to tell ya. Hope someone
around here can help you.

-Anon_comp

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs