Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gem Command not found

I have installed gem on Ubuntu 10.10 32 bit with

apt-get install gem -y 

But when I try to run

gem install something.gem 

I get the error of the command not being found.

bash: gem: command not found 

I installed gem, is there any reason it is saying it can't find the command?

These files were install by gem package

http://pastie.org/3483416

like image 457
awmusic12635 Avatar asked Feb 28 '12 15:02

awmusic12635


People also ask

What is the gem command?

The gem command allows you to interact with RubyGems. Ruby 1.9 and newer ships with RubyGems built-in but you may need to upgrade for bug fixes or new features. To upgrade RubyGems, visit the download page. If you want to see how to require files from a gem, skip ahead to What is a gem. Finding Gems.

How do you install gem?

To install a gem, use gem install [gem] . Browsing installed gems is done with gem list . For more information about the gem command, see below or head to RubyGems' docs. There are other sources of libraries though.


1 Answers

Try the following:

sudo apt-get install rubygems 
like image 140
Thomas Avatar answered Sep 22 '22 11:09

Thomas