From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-03-08T06:33:41+09:00 Subject: Re: RubyCocoa and libxml-ruby-0.3.6 John N. Alegre wrote: > Use DarwinPorts to install ruby which will put yet another ruby > in /opt/local/bin but this will be easy to keep updated, again with > DarwinPorts, then use DarwinPorts to install RubyCocoa. It puts everything > where it should be. i not sure about that, having done a complete re-install of ruby, rubgems and rubycocoa i still get from my rb_main.rb where i've put : def rb_main_init path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x} rbfiles -= [ File.basename(__FILE__) ] which_ruby=`which ruby `.chomp p "#{which_ruby}" p `#{which_ruby} --version` p $LOAD_PATH rbfiles.each do |path| require( File.basename(path) ) end end the print out is : "/usr/bin/ruby" "ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]\n" still Tiger's ruby... however the $LOAD_PATH is : ["/Users/yvon/work/RubyCocoa/BookmarksMerge/build/Development/BookmarksM erge.app/Contents/Resources", "/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby", "/opt/local/lib/ruby/site_ruby/1.8", "/opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.5.0", "/opt/local/lib/ruby/site_ruby", "/opt/local/lib/ruby/vendor_ruby/1.8", "/opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.5.0", "/opt/local/lib/ruby/vendor_ruby", "/opt/local/lib/ruby/1.8", "/opt/local/lib/ruby/1.8/powerpc-darwin8.5.0", "."] then again, again and again, ruby is tiger's one even the $LOAD_PATH of it is the corect one : /opt/local/blahblah... exactly what i've get before using a "handy" install... something wrong, to me, here ! -- une b�vue