pere.noel
1/15/2006 3:15:00 PM
i'd like to embed ruby 1.8.4 and dependencies :
'iconv', 'osx/aeosa', 'xml/smart' ans 'xml/xslt'.
into a Ruby app working on MacOS X.
i've a installed ruby, osx/aeosa, xml/smart and xml/xslt in a folder
"RubyEmbeded".
if i move this folder down to another folder "MacOS", for example, i get
errors like :
AddressBook2vCardXml.rb:3:in `require': no such file to load --
osx/aeosa (LoadError)
from AddressBook2vCardXml.rb:3
then, if i change the require line from :
require 'osx/aeosa'
to :
require '../lib/ruby/site_ruby/1.8/osx/aeosa'
(the relative path)
i get other errors :
.../lib/ruby/site_ruby/1.8/osx/aeosa.rb:10:in `require': no such file to
load -- osx/aeosa/aeosa (LoadError)
from ../lib/ruby/site_ruby/1.8/osx/aeosa.rb:10
from AddressBook2vCardXml.rb:3
i don't want to change all of ther require statement within the
dependencies.
i don't want also to install this ruby + dependencies into /ur/local nor
/opt/local
because i want the app to be trashable by drag'n drop...
then how could i solve the relative path probs ???
what is the mecanism for ruby to retrieve internal paths ?
--
une bévue