A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

In Ruby, everything is an object. Every bit of information and code can be given their own properties and actions. Object-oriented programming calls properties by the name instance variables and actions are known as methods. Ruby’s pure object-oriented approach is most commonly demonstrated by a bit of code which applies an action to a number.

Ruby 1.9.2 is mostly compatible with 1.9.1, except the following changes:

  • Many new methods
  • New socket API (enhanced IPv6 support)
  • New encodings
  • Random class that supports various random number generators
  • Time is reimplemented. There is no longer the year 2038 problem.
  • some regexp enhancements
  • $: no longer includes the current directory.
  • dl is reimplemented on top of libffi.
  • new psych library that wraps libyaml. You can use the library instead of syck.

Ruby 1.9 has four support levels.

We verified that Ruby 1.9.2 works fine on it. And we can keep the 1.9.2 maintained on it.

  • Debian GNU/Linux 5.0 on IA32.
We verified that Ruby 1.9.2 works mostly fine on them. And I believe we can keep the 1.9.2 maintained on it.

  • mswin32, x64-mswin64, mingw32
  • MacOS X 10.5 (Intel) and 10.6
  • FreeBSD 6 and later (amd64, IA32)
  • Solaris 10
  • Symbian OS
I think Ruby 1.9.2 works fine on them with small modification, however, it is not verified. Patch is welcome.

  • Other Linux distributions
  • Other versions of MacOS X.
  • cygwin
  • AIX 5
  • Other POSIX-compatible systems
  • BeOS (Haiku)
I do not think Ruby 1.9.2 works on them. Porting is welcome.

  • Any other systems

Installing from the source code is a great solution for when you are comfortable enough with your platform and perhaps need specific settings for your environment. It’s also a good solution in the event that there are no other premade packages for your platform.

  • Ruby 1.9.2-p0 (md5:  755aba44607c580fddc25e7c89260460) Stable Version (recommended)
  • Stable Snapshot This is tar’ed and gzip’ed file of the latest stable SVN. It should be better than the last stable release.
  • Nightly Snapshot This is tar’ed and gzip’ed file of the latestSVN. It may contain unfixed problems.

The Windows platform has several options to install Ruby. The first option is to use the RubyInstaller, an installer that contains compiled binaries. The second option is usage of packaged executables and binaries. If you’re unsure about how to install Ruby, the first option might be the best for you.

Depending on the distribution you are using, there are several ways to install Ruby. The first option is simply to download the source code above and compile by hand. However, on some platforms, there are package management solutions that make installing Ruby extremely easy.

For example, on Debian or Ubuntu apt-get provides an easy and elegant solution:

% sudo apt-get install ruby1.9.1-full

The above command installs the current stable version of Ruby 1.9.1. If you prefer to install a Ruby 1.8 version, you can use:

% sudo apt-get install ruby-full

For irb and rdoc you will need to enable the universe repository.

Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive

Connect