Rubygems manual download




















Now that RubyGems 1. First, download the proper version of RubyGems for your installation eg. Note : To find the version of RubyGems you're using, please run gem --version in the command line.

You can find download links at GitHub under Releases. Now, locate rubygems-update-X. Z will be the matching version for the version of RubyGems you need to update:. Please download the file in a directory that you can later point to eg. After last step, it should respond with Latest version currently installed. If you've read the previous sections, you will know what this means and shame on you if you have not.

Browsers like Chrome will try to save it as plain text file. Ensure you change the filename to have. Take for example the default installation of Ruby 2. Now, let's locate that directory. From within the same window, enter the path part up to the file extension, but using backslashes instead:. There is actually no step 4. You should be able to install Ruby gems without issues now. Skip to content. Sign in Sign up. Instantly share code, notes, and snippets.

Last active Oct 5, Code Revisions 4. If you are currently operate a server running Ubuntu Reason: Ubuntu This guide is no longer maintained. See Instead: This guide might still be useful as a reference, but may not work on other Ubuntu releases. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. You can use the search functionality at the top of the page to find a more recent version.

Ruby on Rails is an application stack that provides developers with a framework to quickly create a variety of web applications. Rails can be installed on a virtual private server with a variety of packages, but it can also be download manually, from source. This tutorial will go over the manual installation. The steps in this tutorial require the user to have root privileges. You can see how to set that up in the Initial Server Setup with Ubuntu in steps 3 and 4.

Once you have downloaded ruby, download the dependancies to your virtual server. These will help later to make the installation as smooth as possible. Run gem --version to verify that you are using the latest version of RubyGems. If your system clock is set to a time in the past or future, your machine will not be able to establish a secure connection to RubyGems.

To resolve the issue, you will need to set your system clock to the current time. In Linux, you can update the system clock by running sudo ntpdate ntp. If you have a version of RubyGems new enough version 2.

Warning : These instructions will only add new certs; Ruby will be left untouched. To ensure your Ruby version can use TLSv1. If not, follow a different set of instructions in this guide for upgrading Ruby as well.

Download the. Then, find the downloaded file, and check to make sure the filename ends in. Note : Some browsers will change the extension to. To open a window showing the directory we need to find, enter the path part up to the file extension in the same window but using backslashes instead.

For example, based on the output above, you would run this command:. Find other. Visit the Update RubyGems section for step-by-step instructions. Sometimes, uninstalling everything and starting again from scratch is enough to fix things. Using --force ensures that you remove all versions of OpenSSL you might have :.

Unfortunately, this will take longer, but it will hopefully fix the SSL problem. This command will install Ruby 2. Adjust the command to install the version s of Ruby that you need:. Follow the instructions outlined in the Updating and Troubleshooting ruby-build guide by rbenv.

Note : To install a newer version of Ruby with Homebrew, first make sure Homebrew is installed. To uninstall, follow the directions listed here. These instructions work for both Ubuntu and Debian. Note : The newest versions of Fedora use dnf as its package manager, but older versions use yum instead. If you see the error message dnf: command not found , replace the dnf in these instructions with yum.



0コメント

  • 1000 / 1000