Fujimoto Hisa
hisa****@fobj*****
Fri Jul 20 07:09:29 JST 2007
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