The disappearance of ruby ​​stones

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.

+3
source share
2 answers

Have you installed rubygems from apt-get? If so, maybe you should try to remove it and install it from the source.

Rails Ubuntu:

http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html

, Ruby apt-get source, rubygems .

+3

, :

/usr/bin/gem1.8

, symlink/usr/bin/gem:

sudo ln -s/usr/bin/gem1.8/usr/bin/gem

, Ubuntu 8.10:

http://articles.slicehost.com/2009/1/6/ubuntu-intrepid-ruby-on-rails

+3

Source: https://habr.com/ru/post/1704017/


All Articles