nativeInstallerruby

Install gems

If you want to install a gem in the Bitnami Ruby Stack, run the gem install command. Note that this command should be run only after loading the Bitnami console. For example, use this sequence of commands to install Rake:

$ ./rubyconsole
$ ruby -S gem install rake

If you are installing a gem that requires compilation, you will need compilation tools like make, g++ and others. On native installers, these compilation tools can be installed separately as discussed below.

Linux

If you are using Ubuntu, install the build-essential package via apt as shown below:

$ sudo apt-get install build-essential

If you are using a different Linux distribution, install g++ and build packages separately following the instructions provided by your distribution.

Windows

The Bitnami Ruby Stack already includes a Development Kit for Windows users. It is a MSYS/MinGW-based toolkit that enables you to build many of the native C/C++ extensions available for Ruby.

Mac OS X

On Mac OS X, either install Xcode 4.1 (preferred), use the osx-gcc-installer from Kenneth Reitz, or use Xcode 4.2+.

NOTE: The osx-gcc-installer is a stripped-down version of Xcode 4.1, which only includes GCC and the required libraries. The limitation of this solution is that it does not include certain headers (such as the Carbon/Cocoa headers found in the main Xcode installation) because of licensing restrictions. This means that some native gems will fail to compile. Registered Apple developers can get the necessary header packs from Apple.


NOTE: Xcode 4.2+ versions use a non-compatible version of GCC. To use these, first install Xcode 4.1 and then upgrade to your desired version, answering “no” when asked to remove prior versions. Once the upgrade is complete, compile using the binary at /usr/bin/gcc-4.2.

Last modification September 4, 2018