[Rubycocoa-devel 932] Re: problem with Rakefile

Back to archive index

Fujimoto Hisa hisa****@fobj*****
Sat Jun 2 08:23:26 JST 2007


On 2007/06/02, at 8:07, Laurent Sansonetti wrote:

> In fact, the problem was in a RubyCocoa application:
>
>    require 'rubygems'
>
> didn't work.

$: has what value?

> RubyGems was installed for the manually-installed version of Ruby.

was installed it by /usr/local/bin/ruby in this case?
/usr/lib/ruby/site_ruby/1.8/rubygems should exists, if true.

> Normally, /usr/bin/rake should have the #! line pointing to the
> manually-installed version (/usr/local/bin/ruby).
>
> Building RubyCocoa using /usr/local/bin/ruby install.rb {config|setup}
> worked, though.
>
> Laurent
>
> On Jun 2, 2007, at 12:50 AM, Fujimoto Hisa wrote:
>
>> Hi
>>
>> The issue may be from that the rubygem installer always make the
>> 1st line of the gem command:
>>
>>   #!/usr/bin/env ruby
>>
>> So script which call the gem command using `system' method,
>> may excute another ruby command. For example the early stage
>> of gen_bridge_doc tool had this sortof issue, so i've fixed it.
>>
>> the rake is optional in Tiger , so the install.rb should be primary
>> way to make rubycocoa.
>>
>> hisa
>>
>>
>>
>> On 2007/06/02, at 6:04, Laurent Sansonetti wrote:
>>
>>> Hi,
>>>
>>> Justin reported on the IRC channel a problem about building  
>>> RubyCocoa
>>> using a manually-installed version of Ruby, and using rake. It seems
>>> that RubyGems cannot be found then.
>>>
>>> But when using install.rb, the problem disappears.
>>>
>>> I don't know much about rake, so I just read both Rakefile and the
>>> source code of rake, and found that normally the `ruby' method  
>>> should
>>> spawn the right Ruby interpreter (in his case, /usr/local/bin/ruby).
>>>
>>> Any thoughts on this problem?
>>>
>>> Also, why was Rakefile created? Having 2 different ways of building
>>> RubyCocoa is a bit confusing. I think that we should either keep
>>> install.rb, or move everything in Rakefile.
>>>
>>> Laurent
>>>
>>> _______________________________________________
>>> Rubycocoa-devel mailing list
>>> Rubyc****@lists*****
>>> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel
>>
>> _______________________________________________
>> Rubycocoa-devel mailing list
>> Rubyc****@lists*****
>> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel
>
> _______________________________________________
> Rubycocoa-devel mailing list
> Rubyc****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel




More information about the Rubycocoa-devel mailing list
Back to archive index