[MacRuby-devel] How do people deal with macgem overwriting MRI gem binaries?

isaac kearse isaackearse at gmail.com
Thu Jun 30 20:38:58 PDT 2011


--format-executable doesn't seem to work.  In fact its worse - it just
overwrites the MRI gem binary without giving a warning at all.  Thanks
for the idea though.

On Fri, Jul 1, 2011 at 3:12 PM, Caio Chassot <lists at caiochassot.com> wrote:
> --format-executable may help, as it should prefix everything with mac-, then.
>
> You may even want to put that in your .gemrc for the install and
> update commands.
>
> On Fri, Jul 1, 2011 at 04:07, isaac kearse <isaackearse at gmail.com> wrote:
>> At the moment macgem will prompt the user with this warning when
>> trying to install nokogiri (if you have already installed it with
>> MRI):
>>
>> WARNING:  You are installing a new version of /usr/bin/nokogiri.
>> This file already exists with a different shebang, possibly from a different
>> ruby implementation or version. This operation may break the script.
>> Do you still wish to continue?
>>
>> Ideally I would like to install macgem binaries in /usr/local/bin -
>> does that mean I always have to specify --bindir when installing and
>> uninstalling gems with MacRuby?
>>
>> I guess it is possible to put the --bindir option in the ~/.gemrc
>> file, but then it will be picked up by MRI as well as MacRuby I think.
>>
>> How are other people dealing with this issue?
>>
>> Cheers,
>> Isaac
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>


More information about the MacRuby-devel mailing list