[MacRuby-devel] Fwd: How do I get gems into XCode/MacRuby environment?

Joe West mrjoewest+macruby-devel at gmail.com
Tue Apr 19 14:26:54 PDT 2011

On Tue, Apr 19, 2011 at 4:30 PM, Paul Davis <peedeemail at gmail.com> wrote:
> Ah. Thanks Morgan. That indeed has things working. I had thought MacRuby was
> running on 1.9.x - probably because the first line on http://www.macruby.org
> is "MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X
> core technologies...".
> In fact, when I run "puts system('ruby -v')" from inside a MacRuby/XCode
> process I get:
> "ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]"
> Setting the GEM_HOME and GEM_PATH in the Scheme to point to my 1.8.7 gems
> has them loading and running.

If you want the version / patchlevel info for the current Ruby process
you want to run this:


instead of "system('ruby -v')".

Also, using your 1.8.7 gems in MacRuby probably won't work very well
since some probably aren't compatible with 1.9.2.


More information about the MacRuby-devel mailing list