1 = Installation guide for Rubinius as of 10/2007
3 If you are having trouble with installation, the #rubinius IRC channel on
4 irc://irc.freenode.net will help.
7 == Getting the software and required libraries
9 There are a few things that you need in order to be able to build and run
10 Rubinius. Once you have installed the general requirements, install the Gems
11 needed and then any platform-specific requirements.
14 === General requirements
16 * "GCC version 4.x":http://gcc.gnu.org/
17 * "GNU Bison":http://www.gnu.org/software/bison/
18 * "gmake (GNU Make)":http://savannah.gnu.org/projects/make/
19 * "Ruby version >= 1.8.4 (the Ruby language)":http://www.ruby-lang.org/
20 * "RubyGems (Ruby package manager)":http://www.rubygems.org/
21 * "Git (source control used by rubinius)":http://git.or.cz/
23 Each package may have requirements of its own, of course.
25 If you want to avoid overriding your existing environment, you may want to
26 install everything under its own prefix (such as /usr/local) and to name
27 programs so they don't collide with your existing installation (such as naming
28 gmake 'gmake'). You can then adjust your PATH environment variable as needed
29 for rubinius development.
32 === Requirements through RubyGems
36 Rake may be obtained with the `gem install` command. See `gem help` and
37 http://www.rubygems.org for more information.
42 You need to check Rubinius out through Git (which we just installed). The
43 invocation looks like this:
45 git clone http://git.rubini.us/code rubinius
47 For more information on rubinius' best practices for git, see "using
48 git":http://rubinius.lighthouseapp.com/projects/5089/using-git
50 Rubinius can also be cloned via github:
52 git clone git://github.com/evanphx/rubinius.git rubinius
56 Once you have all the prerequisites installed, building rubinius is as simple
62 This will give you a binary, @./shotgun/rubinius@ which can then be invoked to
63 run scripts. If your system compiler is not GCC 4.x, you can set the CC environment variable:
65 CC=/path/to/gcc rake build
67 If you want a development version (no optimisations, extra debug info), set the DEV environment variable:
72 == Installing Rubinius
74 To install @rbx@ as a shortcut for @./shotgun/rubinius@:
79 == Troubleshooting and platform-specific notes
81 Right now, the very best thing to do is to join the #rubinius IRC channel on
82 irc://irc.freenode.net. The forums here are an alternative method though the
83 response is probably not going to be as swift. We will try to collect tips
89 Currently mostly works on amd64 and Opteron. Other 64-bit platforms have not
93 === Mac OS X with Fink
95 See http://42squared.com/posts/how_to_install_rubinius_on_mac_os_x
97 If you are getting an error like this one:
99 glibtool: link: cannot build libtool library `librubinius.la' from non-libtool objects: ...
101 This is probably because you are using an old glibtool (1.3.5 or similar) that
102 came with Fink. This is the case when `which glibtool` returns
103 /sw/bin/glibtool. You want to use /usr/bin/glibtool (1.5) instead. If you are
104 radical you can just `sudo rm /sw/bin/glibtool` to fix this mess.
109 For the build to succeed you will need these packages: