On Mon, Oct 19, 2009 at 2:17 PM, Aaron Patterson
<aaron / tenderlovemaking.com> wrote:
> Joshua ben Jore wrote:
>> Today, I found this points to a nonsensical location.
>>
>> =A0 =A0 require 'rbconfig'
>> =A0 =A0 ruby =3D File.join(
>> =A0 =A0 =A0 =A0 RbConfig::CONFIG['prefix'],
>> =A0 =A0 =A0 =A0 RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG=
['EXEEXT'] )
>> =A0 =A0 system "#{ruby} -e 1"
>>
>> prefix is /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr
>> but should be /usr/bin. The interpreter needs a way to find itself
>> without trusting $PATH because there are multiple interpreters on the
>> same machine.
>>
>> Or... is it sensible to stash the original C argv[0] somewhere? Right
>> now we seem to ignore it.
>
> I think the "prefix" is correct. =A0Did you mean "bindir":

Oh, right. D'oh! I'd gotten this right before but um, apparently not
this time. :-( Sorry!

Josh