I am using Ubuntu 8.10 and I have installed Ruby and Ruby on Rails as directed on this site. The exact directions that I have followed no longer exist, as wiki rubyonrails.org seems to have changed lately. But I set it a long way. Installed Ruby, then Gems, and then installed Rails using "gem install rails". I didn't really mess up Rails for a while, and I tried using the Gem command today and ...
The program 'gem' can be found in the following packages:
* rubygems1.8
* rubygems1.9
Try: sudo apt-get install <selected package>
bash: gem: command not found
This is just weird for me because I set the rails using the gem command. I use my computer for the binary gem system, so I can create a link to it in the bin directory, but I can not find it. I know that it is installed when I run "script / server" and switch to localhost: 3000 in the browser. I get the following version information:
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.1
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Does anyone know how I can get the gem command to work again? Thanks for any help.
Note. I am new to Rails and quite new to Ubuntu and Linux in general.
source
share