Fujimoto Hisa
hisa****@fobj*****
Fri Jul 20 08:07:51 JST 2007
On 2007/07/20, at 7:39, Laurent Sansonetti wrote: > I tried the package on 2 different machines, and it worked. Apparently > Satoshi-san also installed the package successfully. > > So maybe your environment is sick. The cause was found now. In my environment, /usr/lib/ruby was symlink for easy to switch different ruby. (/Library/Framework/Ruby.framework/Versions/...) And then after launch the installer, the symlink (/usr/lib/ruby) seemed removed and it made new /usr/lib/ruby as the place for rubycocoa.bundle and etc. so almost ruby's library was not found. btw, Tiger build-in ruby is: ruby -e 'p $:' ["/Users/hisa/lib/ruby", "/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ ruby/site_ruby/1.8/powerpc-darwin8.0", "/usr/lib/ruby/site_ruby/1.8/ universal-darwin8.0", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/powerpc-darwin8.0", "/usr/lib/ruby/1.8/universal- darwin8.0", "."] this means just one libruby (universal) is better way for PPC. i told you last night. Maybe Kimura-san understand detail about this issue, because he has get this situation when packaing rubycocoa 0.4.2univ. thanks hisa > Can you for example do: ruby -r rbconfig -e '' # ? > > If it doesn't work, do: ruby -e "p $:", then verify that rbconfig.rb > is findable there. > > Laurent > > On Jul 20, 2007, at 12:29 AM, Fujimoto Hisa wrote: > >> >> On 2007/07/20, at 7:15, Laurent Sansonetti wrote: >> >>> Hi Hisa-san, >>> >>> No, the installer doesn't use rubycocoa. This is weird. >>> >>> On which environment did you try to install the package? Do you get >>> the error during postflight? >> >> yes. rbconfig is not found in postflight on MacBook. >> Currently my environment may be a bit dirty by several testing >> yesterday. >> i'll check own environment more. >> >> thanks >> hisa >> >> --- install log: >> Jul 20 07:19:33 mbw : run postflight script for RubyCocoa >> >> Jul 20 07:19:33 mbw : postflight[874]: /Volumes/RubyCocoa-0.12.0- >> OSX10.4universal/RubyCocoa-0.12.0-OSX10.4universal.pkg/Contents/ >> Resources/postflight:5:in `require': No such file to load -- rbconfig >> (LoadError) >> >> Jul 20 07:19:33 mbw : postflight[874]: from /Volumes/ >> RubyCocoa-0.12.0-OSX10.4universal/RubyCocoa-0.12.0- >> OSX10.4universal.pkg/Contents/Resources/postflight:5 >> >> Jul 20 07:19:33 mbw : postflight[874]: >> >> Jul 20 07:19:33 mbw : Install failed: The following install step >> failed: run postflight script for RubyCocoa >> >> Jul 20 07:19:33 mbw : Private/Total = (9.8MB, 69.2MB), Heap/Total = >> (2.2MB, 16.9MB), Regions(malloc, private) = (35, 38) >> >> >> >> >> >>> Laurent >>> >>> On Jul 20, 2007, at 12:09 AM, Fujimoto Hisa wrote: >>> >>>> Hi Laurent >>>> >>>> installation of the package was failed. i don't find the cause yet. >>>> but ruby seemed be crashed: >>>> >>>> Library not loaded: @executable_path/../Frameworks/ >>>> RubyCocoa.framework/Versions/A/RubyCocoa >>>> Referenced from: /usr/lib/ruby/site_ruby/1.8/universal-darwin8.0/ >>>> rubycocoa.bundle >>>> Reason: image not found >>>> >>>> insatller use rubycocoa itself? >>>> -- >>>> hisa >>>> >>>> On 2007/07/20, at 1:57, Laurent Sansonetti wrote: >>>> >>>>> Hi, >>>>> >>>>> 0.12.0 will bring threading support, if the Ruby interpreter has >>>>> been >>>>> patched. To make this easier, I did 2 things: >>>>> >>>>> 1/ I manually built libruby.1.dylib binaries for Tiger, based on >>>>> the >>>>> Apple Darwin sources and the threading patch. You will find the >>>>> binaries in the misc directory, in tarballs. There is one binary >>>>> per >>>>> architecture, because the ruby load path is not the same (i386 >>>>> uses >>>>> universal-darwin8.0 and ppc uses powerpc-darwin8.0) and it's >>>>> hardcoded >>>>> in the library. Please read misc/README_THREADING for more >>>>> details. >>>>> >>>>> 2/ I modified the binary package build process to now bundle the >>>>> libruby binaries with the package, and override the /usr/lib/ >>>>> libruby. >>>>> 1.dylib during postflight with the patched version. There >>>>> should be >>>>> no >>>>> risk doing this, because this is exactly the same binary >>>>> shipped by >>>>> Apple, except that it has the threading patch applied. >>>>> >>>>> I generated a temporary binary package here: >>>>> >>>>> http://rubycocoa.sourceforge.net/files/RubyCocoa-0.12.0pre0- >>>>> OSX10.4universal.dmg >>>>> >>>>> Please give it a try on your machines and report me if it worked >>>>> for >>>>> you. >>>>> >>>>> A quick way to know if libruby has been patched is to run: >>>>> >>>>> $ ruby -r osx/foundation -e "Thread.new {}" >>>>> >>>>> If this runs without any warning, then it's good. >>>>> >>>>> Also, running tests/tc_thread.rb is preferable. All tests should >>>>> pass >>>>> after the install. >>>>> >>>>> I tried the installer on an iMac intel and a PowerBook G4 PPC, >>>>> and it >>>>> worked as expected. >>>>> >>>>> Unless something wrong happens, I will release it tomorrow! >>>>> >>>>> Laurent >>>>> >>>>> On Jul 19, 2007, at 1:32 PM, Satoshi Nakagawa wrote: >>>>> >>>>>> I have tried r1920, it's ok. >>>>>> Thanks. >>>>>> >>>>>> # Sorry for the double posts >>>>>> >>>>>> -- >>>>>> Satoshi Nakagawa >>>>>> >>>>>> >>>>>> On 2007/07/19, at 20:06, Laurent Sansonetti wrote: >>>>>> >>>>>>> Agreed, committed as r1919. >>>>>>> >>>>>>> Thanks for the remainder. >>>>>>> >>>>>>> Laurent >>>>>>> >>>>>>> Index: framework/src/ruby/osx/objc/ruby_addition.rb >>>>>>> = >>>>>>> ================================================================ >>>>>>> = >>>>>>> = >>>>>>> --- framework/src/ruby/osx/objc/ruby_addition.rb (revision 1909) >>>>>>> +++ framework/src/ruby/osx/objc/ruby_addition.rb (working copy) >>>>>>> @@ -93,7 +93,7 @@ >>>>>>> OSX::RBRuntime.isRubyThreadingSupported? >>>>>>> end >>>>>>> if !@_rubycocoa_threads_allowed then >>>>>>> - raise RuntimeError, "Ruby threads cannot be used in >>>>>>> RubyCocoa >>>>>>> without patches to the Ruby interpreter" >>>>>>> + warn "#{caller[0]}: Ruby threads cannot be used in >>>>>>> RubyCocoa >>>>>>> without patches to the Ruby interpreter" >>>>>>> end >>>>>>> pre_rubycocoa_new(*args,&block) >>>>>>> end >>>>>>> >>>>>>> On Jul 19, 2007, at 12:57 PM, Satoshi Nakagawa wrote: >>>>>>> >>>>>>>> Hi Laurent. >>>>>>>> >>>>>>>> Does it remain an RuntimeError on 0.12.0? >>>>>>>> >>>>>>>> Ruby threads cannot be used in RubyCocoa without patches to the >>>>>>>> Ruby interpreter (RuntimeError) >>>>>>>> >>>>>>>> I think we should change it to a warning. >>>>>>>> >>>>>>>> -- >>>>>>>> Satoshi Nakagawa >>>>>>>> >>>>>>>> >>>>>>>> On 2007/07/18, at 7:13, Laurent Sansonetti wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I will release 0.12.0 tomorrow. Please do not commit anything >>>>>>>>> dangerous to trunk in the meantime :) >>>>>>>>> >>>>>>>>> Also, if you see an important bug, please report it. We might >>>>>>>>> be >>>>>>>>> able >>>>>>>>> to fix it before the release. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> 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 >>>>> >>>>> _______________________________________________ >>>>> 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 >> >> _______________________________________________ >> 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