Hi again,
I’m trying to use exerb with library files and having some problems.
My rbc file looks like this:
script md5_checker.rb md5_checker.rb
library digest/md5.so C:\Program
Files\ruby\lib\ruby\1.6\i586-mswin32\digest\md5.so
library digest.so C:\Program
Files\ruby\lib\ruby\1.6\i586-mswin32\digest.so
and the source file:
MD5 checker test program
···
require ‘digest/md5’
module Digest
class Base
BLOCK_SIZE = 2**18
def Base.digest_file(filename)
digester = self.new
File.open(filename, "r") do |file|
while (str = file.read(BLOCK_SIZE))
digester << str
end
end
digester.hexdigest
end
end
end
ARGV.each do |filename|
puts filename + " " + Digest::MD5.digest_file(filename)
end
after doing:
E:\md5_checker> exerb.rb md5_checker.rbc
I try it with:
E:\md5_checker> md5_checker.exe md5_checker.rb
md5_checker.rb:3:in `require’: No such file to load – digest
(LoadError)
from md5_checker.rb:3
What am I missing here?
This is with exerb 2.0 and Ruby 1.6.7 (the windows binary installer
1.6.7-4).
Thanks for any input,
Karsten
http://fastmail.fm/ - Access your email with Outlook or over the web