list of installed gems

hi
i have installed ruby 1.9.0
now when i type 'gem list', it shows:

*** LOCAL GEMS ***

how can i get the list of installed gems??
nd how can i check rails version?
after installing ruby 1.9.0 my webrick server is not starting for any of
my rails apps which i had developed using ruby 1.8.7.
If i have to made any changes in my rails application after installing
ruby 1.9.0 ???
i am using ubuntu 9.04 and i have installed ruby 1.9.0 in /usr/local/bin

thanx.

In a fresh ruby install you usually have no installed gems.

First you might update the gem utility itself to the latest:

gem update --system

Then install the gems you need with 'gem install ’

You can get a list of what gems are available for install with:

gem list --remote rails

regards,
Janos

I think your gem program points to gem1.9, and therefore output is empty. If you do “gem1.8 list” you will get all the gems installed with rubu1.8.

Also if “ruby -v” outputs ruby 1.9, and you still want to use ruby1.8 then perhaps you need to symlink ruby1.8 to ruby.

First of all, I hope you are linux/mac. If yes, google “symlink” or “ln -s howto”. In short, what you need is this:

ln -s file_you_want_to_symlink new_path

or in your case most probably, it will be

Abhinav Saxena wrote:

First of all, I hope you are linux/mac. If yes, google "symlink" or "ln
-s
howto". In short, what you need is this:

ln -s file_you_want_to_symlink new_path

or in your case most probably, it will be

sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby

yes.. i have fix that..
thanx a lot.

-abhishek