如何安装Ruby

In this tutorial we will learn how to install Ruby on our local system. We will be covering the installation steps for the following two operating systems:

在本教程中,我们将学习如何在本地系统上安装Ruby。 我们将介绍以下两个操作系统的安装步骤:

  1. Installation on Windows

    在Windows上安装

  2. Installation on Mac

    在Mac上安装

Ruby:在Windows上安装 (Ruby: Installation on Windows)

To download ruby, go to http://rubyinstaller.org/downloads

要下载Ruby,请访问http://rubyinstaller.org/downloads

如何安装Ruby_第1张图片

Download the latest version of Ruby. The one which is in the top most is the latest. You can download either Installers or Archive file. But it is good to download the Installer.

下载最新版本的Ruby。 最靠前的是最新的。 您可以下载安装程序或存档文件。 但是最好下载安装程序。

For 64 bit operating systems, download installer that end with (x64). After downloading the exe file, double click to open the file.

对于64位操作系统,请下载以(x64)结尾的安装程序。 下载exe文件后,双击以打开文件。

Choose the Language.

选择语言

如何安装Ruby_第2张图片

Click "I accept the License".

单击“我接受许可证”

如何安装Ruby_第3张图片

Browse and select the desired installation path you want. But it is recommended to install on the default directory. And Check the 3 options below :

浏览并选择所需的所需安装路径。 但是建议安装在默认目录上。 并检查以下3个选项:

  • Install Td/k support

    安装Td / k支持

  • Add Ruby executables to your PATH

    将Ruby可执行文件添加到PATH

  • Associate .rb and .rbw files with Ruby installation

    .rb.rbw文件与Ruby安装相关联

And click Install.

然后点击安装

如何安装Ruby_第4张图片

You will see the installation progress bar. Once it is complete, click Finish.

您将看到安装进度栏。 完成后,单击“完成”。

如何安装Ruby_第5张图片

Ruby:在Mac上安装 (Ruby: Installation on Mac)

Ruby is pre-installed on Macintosh. So don't need to go through installation procedures.

Ruby已预先安装在Macintosh上。 因此,无需执行安装过程。

翻译自: https://www.studytonight.com/ruby/installing-ruby

你可能感兴趣的:(python,linux,java,windows,mac)