# List of installed gems

**URL:** <https://www.ruby-forum.com/t/list-of-installed-gems/174665>\
**Category:** Rails\
**Created:** [August 31, 2009, 9:05am UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665 "2009-08-31T09:05:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 9:05am UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/1 "2009-08-31T09:05:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/2 "2009-08-31T12:26:14Z")

</div>

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

On Mon, Aug 31, 2009 at 9:05 AM, Abhishek S. \<  
removed\_email\_address@domain.invalid\> wrote:

> 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.
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ãœdv,  
Sebi

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/3 "2009-08-31T12:32:41Z")

</div>

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.

–  
à¤…à¤­à¤¿à¤¨à¤µ  
[http://twitter.com/abhinav](http://twitter.com/abhinav)

On Mon, Aug 31, 2009 at 12:35 PM, Abhishek S. \<

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 12:44pm UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/4 "2009-08-31T12:44:01Z")

</div>

Abhinav S. wrote:

> I think your gem program points to gem1.9, and therefore output is  
> empty.

thanx i got that.

> 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.

how can i create a symlink to ruby1.8?

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/5 "2009-08-31T12:53:46Z")

</div>

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

–  
à¤…à¤­à¤¿à¤¨à¤µ  
[http://twitter.com/abhinav](http://twitter.com/abhinav)

On Mon, Aug 31, 2009 at 4:14 PM, Abhishek S. \<

---

<div class="post-metadata">

**Author:** ![abhishek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Post date:** [August 31, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/list-of-installed-gems/174665/6 "2009-08-31T14:31:31Z")

</div>

Abhinav S. 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
