You can build and run Rubinius from the source directory. You do not need to install Rubinius to run it. The directions below describe both installing Rubinius and running it from the source directory.
The Rubinius source code is available as a tarball and as a project on Github. You can download the tarball here.
To use Git:
git clone git://github.com/rubinius/rubinius.git
Rubinius uses LLVM for the JIT compiler and depends on LLVM 3.x. The
configure script will automatically check whether a version is already
available or will download one if not. If you do have LLVM installed and
Rubinius fails to link with it for any reason, pass
--skip-system to the
configure script in the directions below.
If the configure script does not have
--skip-system then you can use
–llvm-config=/path/to/bin/llvm-config to specify the correct llvm-config to
use. E.g. on Ubuntu 12.04,
apt-get install llvm-3.4 installs
/usr/bin/llvm-config-3.4, so you would use
If you are planning on using Rubinius to run your application, this is a good option. However, you can also run Rubinius directly from the source directory. See the next section for more details on that.
We recommend installing Rubinius to a location that does not require
superuser privileges. To install Rubinius:
If you plan to work on Rubinius itself, you should use this option.
If you are just trying out Rubinius, add the bin directory to your PATH.
However, if you are developing Rubinius, you should NOT add the bin
directory to your PATH because the Rubinius build system will pick up the
rake links to the Rubinius executable. Rubinius needs a separate
Ruby executable to bootstrap itself during the build process.
If you are trying to debug the VM and want to attach a debugger, such as GDB, then you will want to compile Rubinius without optimizations. You can do this as following: