I 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 a command error that was not found.
bash: gem: command not found
I installed gem, is there any reason why it says it cannot find the command?
These files were installed using the gem package.
http://pastie.org/3483416
Do you want ruby ββstones? If so, you need to install libgemplugin-ruby, and then the ruby ββ'gem' program will be in your path:
aptitude install libgemplugin-ruby
Try the following:
sudo apt-get install rubygems
The following command installs ruby ββgem for ubuntu:
apt-get install libgemplugin-ruby
I did this after the ruby ββwas installed.
Installing this package allows you to use the gem command on Debian 8:
gem
apt-get install rubygems-integration
To install the gem package, you may also need:
apt-get install ruby ruby-dev
FWIW, the equivalent package for RHEL / Fedora / CentOS / etc and SuSE / OpenSuSE, is apparently called "rubygems".
The following command can help you
sudo apt-get install ruby
On CentOS 7, you can:
yum -y install rubygems-devel
It worked for me.
On Debian, Ubuntu, or Linux Mint:
$ sudo apt-get install rubygems ruby-dev
On CentOS, Fedora, or RHEL:
$ sudo yum install rubygems ruby-devel
On Ubuntu 14.04,
this will install gem for you.
I know this is a bit late for an answer. But I ran into this error and I found a solution here: https://rvm.io/integration/gnome-terminal
You just need to enable the "Run the command as a login shell" command in the terminal settings.
verify that rvm is a type rvm | head -1 function type rvm | head -1 type rvm | head -1
type rvm | head -1
The following command will give you a list of files installed by the gem package:
dpkg -L gem
which will help you troubleshoot.
to try
$ /usr/bin/pd-gem
/usr/bin/pd-gem
or
$ pd-gem
pd-gem