OCRA, PDFBeads, Error

Hi all!

Am trying to compile PDFBeads (http://pdfbeads.rubyforge.org/) into a
portable executable so that I can make use of another’s Windows PC,
which is faster, for post-processing scanned book pages.

Got PDFBeads working on mine but when I tried to “OCRA” it, some errors
occurred and the resulting .exe cannot be run, even on the same machine.


=== Loading script to check dependencies
Warning: the hpricot extension is not available. I’ll not be able
to create hidden text layer from hOCR files.
=== Detected gem rmagick-2.12.0-x86-mswin32 (loaded, files)
=== WARNING:
C:/Ruby187/lib/ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/ext wa
s not found
=== WARNING:
C:/Ruby187/lib/ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/lib wa
s not found
=== 5 files, 15032482 bytes
=== Building pdfbeads.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL C:/Ruby187/bin/libiconv2.dll
=== Adding library files
=== Compressing 18228961 bytes


C:/Users/LOYUKF~1/AppData/Local/Temp/ocrAB0D.tmp/lib/ruby/gems/1.8/gems/pdfbeads
-1.0.3/lib/pdfbeads.rb:36:in `require’: no such file to load – RMagick
(LoadErr
or)
from C:/Users/LOYUKF~1/AppData/Local/Temp/ocrAB0D.tmp/lib/ruby/gems/1.8/
gems/pdfbeads-1.0.3/lib/pdfbeads.rb:36

Then I read this
(Ruby on Windows: The OCRA Compiler: Tips, Tricks, and Gotchas)
and added “require ‘rubygems’” to pdfbeads.rb. Then it compiled nicely
but, it now reports another error…


C:/Users/LOYUKF~1/AppData/Local/Temp/ocrE651.tmp/lib/ruby/site_ruby/1.8/rubygems
/custom_require.rb:29:in gem_original_require': no such file to load -- imagein spector (LoadError) from C:/Users/LOYUKF~1/AppData/Local/Temp/ocrE651.tmp/lib/ruby/site_ruby /1.8/rubygems/custom_require.rb:29:in require’
from
C:/Users/LOYUKF~1/AppData/Local/Temp/ocrE651.tmp/lib/ruby/gems/1.8/
gems/PDFBEA~1.3-C/lib/pdfbeads.rb:88

I only know a tiny bit of programming, and have never tried coding Ruby.
Is this something that could be trivial to solve…?

Sorry if it’s been asked before and I would appreciate for a pointer or
two.

Thanks in advance!

P.S. Also tried exerb but the resulting executable doesn’t seem to work
at all (PDFBeads — Convert Scanned Images to a Single PDF File - Page 4 - DIY Book Scanner).