[MacRuby-devel] (Mac)?Gems in the same place

Laurent Sansonetti lsansonetti at apple.com
Wed Sep 15 22:17:28 PDT 2010


Hi Ryan,

On Sep 15, 2010, at 2:43 PM, Ryan Davis wrote:
> On Sep 15, 2010, at 10:56 , Iain Barnett wrote:
>> On 15 Sep 2010, at 18:48, Thibault Martin-Lagardette wrote:
>>> 
>>> By default, macgem installs gems in /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems
>> 
>> Thanks. I'd ran `macgem env` and got the same output as `gem env` and got a bit worried, but if you're sure it'll ignore that then I can put away the diazepams :)
> 
> yeah. this is probably a problem. I'm guessing you have GEM_PATH set in your environment like I do. I've got:
> 
> GEM_PATH=/Library/Ruby/Gems/1.8
> 
> and right now I can't even run `macgem env` because it is freakin' out on me and taking up 450+ MB of ram. I'm chasing that down as it is prolly a tangent.

As we talked I suspect one of your gems is making MacRuby sick here, but it may be hard to find which one...

If you don't want to bother with that, feel free to open a ticket and paste your gems list there, we will have a look :)

> rubygems and/or macruby should probably be patched to include RUBY_ENGINE somewhere in the gem path.
> 
> Eric... having a GEM_PATH like variable where I can specify it non-versioned would be great too. One variable to rule them all.

I am not sure yet if there is a good solution for this problem, but it does not seem to be specific to MacRuby.

For example, GEM_PATH=/Library/Ruby/Gems/1.8 may not work with Ruby 1.9's gem too (because of binary incompatibility in C extensions).

In any case let me know if you find a good solution and if macruby has to be patched.

Laurent


More information about the MacRuby-devel mailing list