13 C
Texas

Easily install ruby on Windows 10 with RubyInstaller

Hey, what’s up? In this post, we’ll talk a little bit about Ruby. This is an interpreted, reflexive and object-oriented programming language created by Japanese programmer Yukihiro “Matz” Matsumoto. On the other hand, Ruby is designed for the developer’s productivity and fun, following the principles of a good User Interface. In addition, it combines Python and Perl inspired syntax with Smalltalk-like object-oriented programming features. It is a general-purpose language, meaning that with Ruby you can develop all kinds of different applications. Also, it is an interpreted language, that is, it is not compiled. On the other hand, it is high-level, dynamic and flexible. Finally, it is a multiplatform, free and open source. All these features, making it very interesting to use. So, let’s see how to install Ruby on Windows 10.

Downloading RubyInstaller

As mentioned in the title, we’ll be using RubyInstaller to install Ruby on Windows 10. In the first place, go to the RubyInstaller page. In the download section, please choose the version corresponding to your computer’s architecture. At the time of writing this post, the most recent version is 2.6.5.-1.

The download section of the RubyInstaller website
The download section of the RubyInstaller website

Once the installer is downloaded, simply run it to start the installation.

Accept the license
Accept the license

The following box shows various configuration options. It’s a good idea to check all of them since this adds Ruby to the PATH, as well as associates the .rb and .rbw files with the Ruby installation. It is also possible to choose UTF-8 as the external encoding parameter.

Set Ruby installation options
Set Ruby installation options
- Advertisement -

However, some gems or packages require compiling in C, so select the option to install MSYS2.

Install MSYS2 development toolchain.
Install MSYS2 development toolchain.

Once all the preparations have been made, the wizard will start the installation.

The wizard running the Ruby installation
The wizard running the Ruby installation

Wait a few seconds while the assistant does his job. Finally, select the option to run the ridk install. This will install the MSYS2 and the development toolchain.

Complete the installation and install MSYS2
Complete the installation and install MSYS2

A new window will be displayed immediately to continue the installation. Please leave everything by default to execute a full installation. Press enter to start the process.

Start the installation of MSYS2
Start the installation of MSYS2

After a few minutes, the word success will appear in the window. This means that the installation was completed. Please close the window.

MSYS2 installation successfully completed.
MSYS2 installation successfully completed.

Runs the interactive mode in Ruby

To check the performance of the Ruby interpreter, simply open a CMD and run the following command:

irb
Starting Ruby's interactive mode.
Starting Ruby’s interactive mode.

To exit, simply type the following command:

exit

Ultimately we have seen how to install Ruby on Windows 10. From now on you can use this powerful programming language. Before I say goodbye, I invite you to check out our post about Django on Windows 10.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article