Install gem: sudoapt-getinstallrubygems on Ubuntu. However, the gem version in the apt-get Library is too low to install rails. Trial gem self-upgrade gemupdate -- system prompt: www.2cto. comERROR: Whileexecuting... install gem on Ubuntu:
Sudo apt-get install rubygems
This is okay, but the gem version in the apt-get Library is too low to install rails.
Trial gem self-upgrade
Gem update -- system
Tip: www.2cto.com
ERROR: While executing gem... (RuntimeError)
Gem update-system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
Yes, gem update-system is disabled in the apt-get system (Debian or Ubuntu.
2. only manual installation is available.
Apt-get remove rubygems # remove the gem managed by apt-get
Wget http://rubyforge.org/frs/download.php/76032/rubygems-1.8.23.tgz # Find the latest gem package address on rubyforge
Tar xzf rubygems-1.8.23.tgz
Cd rubygems-1.8.23
Sudo ruby setup. rb
Gem-v
3. then, the subsequent installation will be normal.