repeater
repea****@lucen*****
Mon Oct 21 22:52:33 JST 2002
hello > on [Apollo-talk:23] Re: No such file to load -- rbconfig > "repeater" <repea****@lucen*****> wrote: > > : so apollo apparently require its own version of ruby. > > I don't think so. My apollo.exe can run under the ruby.dll of other > distribution, when I invalidated the ruby.dll in apollo/bin directory. that is good to hear > > * c:/program file/ruby is for ActiveScriptRuby with Ruby1.6.2, and > PATH env has its directory. and there is > "c:\Program Files\Ruby\lib\ruby\1.6\i586-mswin32\rbconfig.rb" > > (1) invalidate ruby.dll in apollo/bin > -- > C:\Program Files\Apollo\bin>dir *.dll > 2001/07/13 06:00 105,472 dbexpdb2.dll > 2002/02/22 14:02 119,296 dbexpint.dll > 2001/07/13 06:00 91,136 dbexpmys.dll > 2002/03/18 06:02 92,160 dbexpmysql.dll > 2002/03/18 06:02 165,376 dbexpora.dll > 2002/03/18 06:02 293,888 midas.dll > 2002/04/01 11:42 990,506 mswin32-ruby16.dll > > C:\Program Files\Apollo\bin>ren mswin32-ruby16.dll mswin32-ruby16.dll_ > > C:\Program Files\Apollo\bin>dir *.dll > 2001/07/13 06:00 105,472 dbexpdb2.dll > 2002/02/22 14:02 119,296 dbexpint.dll > 2001/07/13 06:00 91,136 dbexpmys.dll > 2002/03/18 06:02 92,160 dbexpmysql.dll > 2002/03/18 06:02 165,376 dbexpora.dll > 2002/03/18 06:02 293,888 midas.dll > 2002/04/01 11:42 990,506 mswin32-ruby16.dll_ <= invalidated! > -- i did this, and it crashes with an access violation in mswin32-ruby16.dll (i thus assume it finds the dll, since there remains only one other such file on my computer) i have this situation: in directory "old_apollo" -> run AppPath.exe, run Apollo.exe, old apollo works in directory "apollo" (new version) -> run AppPath.exe, run Apollo.exe, new apollo crashes so as i consider it, one of the following: 1.) i am using an incompatible version of ruby currently ruby 1.6.6, perhaps it needs ruby 1.6.7 ? i am using the pragmatic programmer distribution 2.) there is some directory setup that i'm missing (but unlikely) does this have something to do with set_path_for_ruby.rb ? what does this do btw ? > > (2) apollo.exe shows its $:, which shows "c:/program files/ruby" instead > of "c:/program files/apollo" > > -- > c:/program files/apollo/bin > C:/Program Files/Ruby/lib/ruby/site_ruby/1.6 > C:/Program Files/Ruby/lib/ruby/site_ruby/1.6/i586-mswin32 > C:/Program Files/Ruby/lib/ruby/site_ruby > C:/Program Files/Ruby/lib/ruby/1.6 > C:/Program Files/Ruby/lib/ruby/1.6/i586-mswin32 > . > C:/Program Files/Apollo/bin > c:/program files/apollo/lib > c:/program files/apollo/bin i do not see this, because it crashes > -- > > I think trouble in using the ruby.dll of other distribution occurs > from the reason of Environment Variable "PATH" of windows. my path variable is set, i've been using old version successfully for ages > > : strange, my previous version i have worked with used my normal ruby > : distribution (well apparently, i've installed it manually). i > would prefer > : this. > > I also think it is strange. Please tell me how to change ruby.dll(s) > to use. > > Or, please try to invalidate ruby.dll in apollo/bin. > > Hmm.. Is there "c:\Ruby\lib\ruby\1.6\i586-mswin32\rbconfig.rb" ? i guess my problem with rbconfig is solved: it found the mswin32-ruby16.dll in the apollo directory, and searched for the ruby libs there and did not find it. with the ruby libs placed in apollo lib dir, everything works fine. regards Peter