top of page

Ruby : Programming Language- How to install Ruby

Typing discipline: Duck, dynamic, strong

Ruby framework :- Ruby on Rails,Rinatra,Padrino,Ramaze Merb,Cake PHP,WT, Fat-Free Framework,TurboGears,Dancer,Lift,CloudFlusion on Wheels


Ruby is an interpreted, high-level, general-purpose programming language. Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan. Ruby is dynamically typed and uses garbage collection.Ruby is a pure Object-Oriented language . Everything in Ruby is an object except the blocks but there are replacements too for it i.e procs and lambda. The objective of Ruby’s development was to make it act as a sensible buffer between human programmers and the underlying computing machinery.


Installing Ruby

You may already have Ruby installed on your computer. You can check inside terminal using by this command:

ruby -v

Output showing some information on the installed Ruby version.


Installation Method

There are some ways to install Ruby:

  • On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one.

  • Installers can be used to install a specific or multiple Ruby versions. There is also an installer for Windows.

  • Managers help you to switch between multiple Ruby versions on your system.

  • Finally, you can also build Ruby from source.

apt (Debian or Ubuntu)

$ sudo apt-get install ruby-full


yum -CentOS, Fedora, or RHEL

$ sudo yum install ruby


snap (Ubuntu or other Linux

$ sudo snap install ruby --classic


Homebrew - for macOS

Homebrew is a commonly used package manager on macOS. Installing Ruby using Homebrew is easy:

$ brew install ruby



Comments


© 2019 by Techy Bande Official.

Developed By : RK JAMERIA

bottom of page