From: ts Date: 2000-12-27T16:08:48+09:00 Subject: [ruby-talk:8106] Re: Converting a Ruby app into an executable >>>>> "K" == Kevin Smith writes: K> 1. Tests for (__FILE__ == $0) are true, so K> debugging code wants to execute. I worked around K> this in my tests by manually deleting the two K> places it was happening. I can't think of an K> automated solution, but it would probably be an K> acceptable documented limitation. call ruby_script("name") to set $0 K> 2. $LOAD_PATH is not set in the embedded K> interpreter environment. I worked around this by K> appending the necessary search paths at run-time. K> This could be automated. call ruby_init_loadpath() K> 3. When I require 'gtk', I get a runtime error K> that rb_eRuntimeError is undefined. It would K> appear that still more of the normal Ruby runtime K> environment is missing from the embedded K> interpreter. I haven't looked to see if there's K> an easy solution to this. Compile your executable with the same switch than ruby, for example on linux you need to specify -rdynamic Guy Decoux