Hi,
I’m trying to get up to par with all great things that have happened in
the Ruby community during 2002; very impressive indeed.
Right now I’m trying out exerb with md5 but am having some problems. Below
I’ve tried to rip out the central parts to show the problem. I’d be happy
if anyone got pointers or info to help solve this.
Description of what I tried:
-
I need to use Ruby 1.7.X since 1.6.X has bad performance when reading
files opened with “rb”. -
I installed ruby with Andy’s windows installer 1.7.3-7.
-
Installed exerb 2.4.0 with the 2.3.0 cc-core add-on which has the cui17z
which should be for 1.7.X series. (Or am I mistaken here?) -
Wrote simple program to show the bug:
require ‘digest/md5’
require ‘find’
Find.find(’.’) do |filename|
if filename =~ /.mp3$/
md5hd = File.open(filename, “rb”) {|f| Digest::MD5.hexdigest(f.read)}
puts "#{md5hd} *#{filename}"
end
end -
When run on dir with many mp3’s in it it works perfectly with ruby
1.7.3. -
Create exerb rbc:
ruby -r exerb/mkrbc md5test.rb
which gives md5test.rbc:
generated by mkrbc.rb
kcode none
script md5test.rb md5test.rb
library digest.so c:/Program files/ruby/lib/ruby/1.7/i386-mswin32/digest.so
library digest/md5.so c:/Program files/ruby/lib/ruby/1.7/i386-mswin32/digest/m
d5.so
script find.rb c:/Program files/ruby/lib/ruby/1.7/find.rb
-
then create exe:
exerb -c cui17z -z md5test.rbc
-
and now when I run it fails after a couple of mp3 files at different
locations. Examples:-
md5test.rb:6: [BUG] Segmentation fault
ruby 1.7.3 (2002-10-27) [i386-mswin32] -
find.rb:18: [BUG] Segmentation fault
ruby 1.7.3 (2002-10-27) [i386-mswin32]
etc
-
What am I missing here? Anyone packed up an exe with exerb and md5 that
works flawlessly?
Regards,
Robert Feldt
Ps. Anyone know how to get on the english-speaking exerb list? The page
for doing so is in japanese.