Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

PDFbeads Error

Discussions, questions, comments, ideas, and your projects having to do with DIY Book Scanner software. This includes the Stereo Data Maker software for the cameras, post-processing software, utilities, OCR packages, and so on.
Post Reply
ibr4him
Posts: 102
Joined: 18 Oct 2010, 10:36

PDFbeads Error

Post by ibr4him » 16 Jul 2011, 14:51

I ran the commands in terminal as Misty explained in another post, but I can't run PDFbeads yet:

Code: Select all

mbpro:~ ibrahim$ pdfbeads /Users/ibrahim/Pictures/LEFT-16_07_2011-100/Karbala/Original pdf.pdf
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- RMagick (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/pdfbeads-1.0.3/lib/pdfbeads.rb:36
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/pdfbeads-1.0.3/bin/pdfbeads:38
	from /usr/bin/pdfbeads:19:in `load'
	from /usr/bin/pdfbeads:19
mbpro:~ ibrahim$
Many thanks for your help!

User avatar
Misty
Posts: 481
Joined: 06 Nov 2009, 12:20
Number of books owned: 0
Location: Frozen Wasteland

Re: PDFbeads Error

Post by Misty » 17 Jul 2011, 01:35

PDFBeads doesn't track its dependencies in Rubygems (Alexey, you should do that ;)), so it didn't install the other gems you need for it to work. In addition to PDFBeads itself, you also need rmagick and hpricot. Go ahead and install those the same way you installed PDFBeads itself.

You will need to have Imagemagick installed for it to work. If you don't, I would recommend using a package manager like Homebrew or Macports. With Homebrew, you can install Imagemagick by typing

Code: Select all

brew install imagemagick
The opinions expressed in this post are my own and do not necessarily represent those of the Canadian Museum for Human Rights.

ibr4him
Posts: 102
Joined: 18 Oct 2010, 10:36

Re: PDFbeads Error

Post by ibr4him » 17 Jul 2011, 02:53

I think I already have it installed:

Code: Select all

Warning: Formula already installed: imagemagick

User avatar
Misty
Posts: 481
Joined: 06 Nov 2009, 12:20
Number of books owned: 0
Location: Frozen Wasteland

Re: PDFbeads Error

Post by Misty » 17 Jul 2011, 12:10

That's fine, then. Just go ahead and install rmagick and hpricot using Rubygems, by doing

Code: Select all

sudo gem install rmagick hpricot
The opinions expressed in this post are my own and do not necessarily represent those of the Canadian Museum for Human Rights.

Post Reply