Ruby newbie installation steps, windows environment

Time:2024-1-17

I. Installing ruby

Download Address:

If you’re about to start using Ruby but don’t know which version to install, we recommend using theRuby+Devkit 3.2.X (x64)Installer. It provides the largest number of Gem that can be compatible and willMSYS2 DevkitInstalled with Ruby so that Gem with C extensions can be compiled immediately. The 32-bit (x86) version is recommended only if you have a need to have to use custom 32-bit DLLs or COM libraries (binary object files).
Ruby newbie installation steps, windows environment

 Ruby newbie installation steps, windows environment

 Ruby newbie installation steps, windows environment

1. Download the resource and double-click to run it (as above)

2. Install as follows

Ruby newbie installation steps, windows environment

Ruby newbie installation steps, windows environment

 Ruby newbie installation steps, windows environment

 Ruby newbie installation steps, windows environment

Ruby newbie installation steps, windows environment

3. The window automatically pops up as follows, and then enter 3.

Ruby newbie installation steps, windows environment

4. After the installation is complete, open the command line and run ruby -v on the command line to display the version number. If the Ruby version number is displayed normally, the installation was successful.

Ruby newbie installation steps, windows environment

II. Installing RubyGems

RubyGems (gems) is a Ruby packaging system for packaging Rails components. It provides a standard format for distributing Ruby programs and libraries, as well as a tool for managing the installation of programs. It provides a standard format for distributing Ruby programs and libraries, as well as a tool for managing package installations. the gem system is similar to the yum utility in redhat, or the apt-get utility in debian. To install the gem system, continue typing the command in the console: gem update –system

fromDownload RubyGems | RubyGems.org | Ruby community Gem hosting Download the latest version of rubygems

  1. Download from above
  2. Unpack into a directory and cd there
  3. Install with: ruby setup.rb

Ruby newbie installation steps, windows environment

4. After the installation is complete, open the command line and run gem -v from the command line to display the version number. If the gem version number is displayed normally, the installation is successful.

 Ruby newbie installation steps, windows environment

Recommended Today

DML statements in SQL

preamble Previously we have explained DDL statements in SQL statements. Today we will continue with the DML statement of SQL. DML is the Data Manipulation Language.Used to add, delete, and change data operations on the tables in the library.。 1. Add data to the specified field(INSERT) 2. Modify data(UPDATE) 3. Delete data(DELETE) catalogs preamble I. […]