Problem while deleting few ruby gems.

It may happen that at time while deleting the ruby gem the error can be :

ERROR: While executing gem ... (Gem::InstallError)
Unknown gem rake >= 0

This generally happens when there are multiple gem paths.

type ‘gem env’

RubyGems Environment:
– RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-darwin10.7.1]
– INSTALLATION DIRECTORY: /Users/hrastogi/.rvm/gems/ruby-1.9.2-p290
– RUBY EXECUTABLE: /Users/hrastogi/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
– EXECUTABLE DIRECTORY: /Users/hrastogi/.rvm/gems/ruby-1.9.2-p290/bin
– ruby
– x86-darwin-10
– /Users/xxxx/.rvm/gems/ruby-1.9.2-p290
– /Users/xxxx/.rvm/gems/ruby-1.9.2-p290@global
– :update_sources => true
– :verbose => true
– :benchmark => false
– :backtrace => false
– :bulk_threshold => 1000

Gem is installed in multiple paths. Try deleting manually from one of the path

gem uninstall rake -i /Users/xxxx/.rvm/gems/ruby-1.9.2-p290@global

6 thoughts on “Problem while deleting few ruby gems.

  1. thanks for sharing this ioornmatifn .it is my great pleasure to visit your website i found by music search and to enjoy your excellent post here. god bless you!!!

    1. Hi Ben, I am tying to do a simple pgorram written in Ruby. Here is what I want to accomplish.1. user input the extension and get that input, assigned it to a variable myvar 2. check to see if myvar is a valid extension.I have created 2 extension on FreePBX (200 and 201), my problem is that I don’t know what variable name is holding the 200 and 201 or Are all the extension that I created on FreePBX goes to a database if so, What is the name of the database and how can I access it. That is why I can’t validate if myvar is a valid extension. Pardon me for bothering you again and I don’t know if I can ask question like this on your blog. Thanks.

  2. Interesting article. Scottish Blogs (wot I run) died last month and I want to recsurert it but do it much better! Great ideas in here.And the registering thing is bad, there are a few blogs that I still read but never comment on for precisely that reason.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s