Ruby &amp; RubyGems

From MEPIS Documentation Wiki

Ruby is a popular object-orientated dynamically typed programming language allowing for quick development and flowing syntax. The RubyGems addition is a Ruby specific package management system that allows developers to install a variety of extensions and libraries to the Ruby language.

Contents

Requirements

Installation

Both packages and their dependencies are in the reposk for M8 and M8.5, and can be installed in the usual manner.

Configuration

Common Problems

no such file to load -- mkmf

This error message is often displayed when you try to install gems that build native extensions. What the installer is complaining about is a lack of the mkmf.rb script but this problem is easy to solve. All you need to do is install the Ruby dev libraries ruby1.8-dev OR ruby1.9-dev

no such file to load -- zlib (LoadError)

Siimilar to the error above this is Ruby complaining about missing libraries. In this case its the zlib libraries and to install those you need to:

apt-get install zlib1g zlib1g-dev

This will install the required libraries. You may need to re-install RubyGems after this step - see above for the instructions on this.