From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-02-02T01:54:58+09:00 Subject: Re: RubyGems and ENV vars ??? James Gray wrote: > > Your question is about TextMate, not Ruby. Sorry but i disagree ))) because, "experimen"aly" I got the same error from Terminal.app : ---------------------------------------------------------------------- ~/work/Ruby19/rb-appscript/Finder%> ruby19 desktop.rb /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `new': Not a four-char-code string. (ArgumentError) from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `pack_enum' from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:204:in `' from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:193:in `' from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:44:in `' from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `require' from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `' from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `require' from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `' from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:10:in `' from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `require' from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `' from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:7:in `' from desktop.rb:4:in `require' from desktop.rb:4:in `
' ~/work/Ruby19/rb-appscript/Finder%> ---------------------------------------------------------------------- > It's covered in TextMate's > manual. See the "Important" paragraph in this section: > > http://macromates.com/textmate/manual/shell_commands#search_path I knew that point, even if i forget it from time to time... In fact my "environment.plist" reproduces (thanks to some ruby script) nearly all of my environment variables taken from Zsh ones. The question is : are the values : RUBYOPT === rubygems GEM_HOME === /opt/local/lib/ruby/gems/1.8 RUBYLIB === /opt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8 RUBYGEMS === /opt/local/lib/ruby/site_ruby/1.8 still needed with ruby 1.9, are they wrong ? even if they were correct with ruby 1.8... i suspect there are wrong (at least RUBYGEMS) because I do have : $ ls -al /opt/local/lib/ruby/site_ruby drwxr-xr-x 39 root admin 1326 22 d�c 07:33 1.8 drwxr-xr-x 9 root admin 306 1 f�v 08:11 1.9.0 drwxr-xr-x 4 root admin 136 8 d�c 10:54 bin drwxr-xr-x 6 root admin 204 8 d�c 10:54 lib -rw-r--r-- 2 root admin 509 5 avr 2007 site-specific.rb then, the error speaking about : "/opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb" because this file isn't the right one for ruby19, the right one being : "/opt/local/lib/ruby/site_ruby/1.9.0/_aem/aemreference.rb" unfortunately i don't know how RubyGems is able to find the correct gem, depending of the running ruby version ??? may be i'd have to change RUBYGEMS to : RUBYGEMS === /opt/local/lib/ruby/site_ruby to let RubyGem choose by itself ??? -- Une B�vue