list of installed gems

119 views
Skip to first unread message

Abhishek Singh

unread,
Aug 31, 2009, 3:05:17 AM8/31/09
to rubyonra...@googlegroups.com
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.
--
Posted via http://www.ruby-forum.com/.

Janos Sebok

unread,
Aug 31, 2009, 4:19:35 AM8/31/09
to rubyonra...@googlegroups.com
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 <gem-name>'

You can get a list of what gems are available for install with:
> gem list --remote rails

regards,
Janos
--
Üdv,
Sebi

Abhinav Saxena

unread,
Aug 31, 2009, 6:31:39 AM8/31/09
to rubyonra...@googlegroups.com
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

Abhishek Singh

unread,
Aug 31, 2009, 6:44:01 AM8/31/09
to rubyonra...@googlegroups.com
Abhinav Saxena 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?

Abhinav Saxena

unread,
Aug 31, 2009, 6:52:48 AM8/31/09
to rubyonra...@googlegroups.com
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



Abhishek Singh

unread,
Aug 31, 2009, 8:31:31 AM8/31/09
to rubyonra...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages