Tuesday, May 8, 2012

RubyStack now with RVM and DevKit support

We are happy to announce that we added support for RVM in BitNami RubyStack for OS X and Linux. RubyStack is a popular all-in-one package for everything that you need to get started with Ruby development in general and Rails in particular. It includes Apache, MySQL, SQLite, ImageMagick, Passenger, etc. RubyStack is free and can be downloaded as native installers, VMWare images or launched as Amazon Machine Images.

This new release of RubyStack includes RVM, a command-line tool which allows you to easily install, manage, and work with multiple Ruby environments from interpreters to sets of gems. This is convenient if you need to maintain multiple projects, dependent on different Ruby versions.

To install different Ruby versions it is necessary to have already installed the main compilation tools. These tools are already included inside our RubyStack Virtual Machines and Amazon Cloud Images. If you are using the native installer, you can check the RVM requirements running the following command:

$ rvm requirements

You can list the installed Ruby versions and use one of them. RubyStack 3.2.3-0 installs and configures Ruby 1.9.3-p194.

$ rvm use system

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

You can install another Ruby version, for example:

$ rvm install ruby-1.8.7-p358

You can find more info at BitNami RVM wiki and at the official RVM site.

For Windows users, RubyStack now ships DevKit. It is a toolkit that makes it easy to build and use native C/C++ extensions for Ruby on Windows like JSON, Thin and others.