Update gems on ubuntu

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.