Installing ruby-zoom on Debian Testing (etch)
Install steps notes for Zebra, YAZ (ruby-zoom dependency), and ruby-zoom on Debian Testing (etch):
* As outlined here: http://ftp.indexdata.dk/pub/zebra/debian/README, update /etc/apt/
sources.list to include the following (edit as root):
# to get zebra z39.50 server deb http://ftp.indexdata.dk/debian etch main deb-src http://ftp.indexdata.dk/debian etch main
Install the apt-key:
$ wget http://ftp.indexdata.dk/debian/indexdata.asc # in your home dir $ sudo apt-key add indexdata.asc $ rm indexdata.asc # blow away the file if you want
Grab the new apt sources:
$ sudo apt-get update $ sudo apt-get upgrade # answer yes to upgrade packages, optional
Now to install the packages we want:
$ sudo apt-get install idzebra-2.0-doc idzebra-2.0 # this installs the zebra server and it's dependencies $ sudo apt-get install libyaz-dev # needed by ruby-zoom $ sudo sudo apt-get install apache2-utils # you'll want this for htpasswd util when you configure zebra
I couldn’t find an up-to-date Debian package for ruby-zoom, so I opted to build it from source:
$ wget http://rubyforge.org/frs/download.php/6940/ruby-zoom-0.2.2.tar.gz # grab the ruby-zoom source $ cd ruby-zoom-0.2.2 $ ruby extconf.rb $ make $ sudo make install
You should now be able use “require ‘zoom’” and use ruby-zoom in your ruby code. Do the following to test:
$ cd sample # assumes you are still in the ruby-zoom source directory $ ruby hello.rb
Note, if you get this error, you probably need to open up port 7090 in your firewall:
hello.rb:3:in `open': Connect failed (10000) z3950.loc.gov:7090 (RuntimeError) from hello.rb:3
That’s it.
Enjoy,
Walter


November 30th, 2006 at 1:43 pm
Note that I ended up wanting to install a few more things:
sudo apt-get install xsltproc libnet-z3950-perl
Cheers,
Walter
December 5th, 2006 at 12:43 pm
[...] Installing ruby-zoom on Debian Testing (etch) [...]
January 10th, 2007 at 12:04 pm
If you have a non-i386 Debian system, you might need to do the following to install Yaz and Zebra:
First, delete the non-src indexdata line from your /etc/apt/sources.list…
$ apt-get update
$ apt-get upgrade # just for the sake of it
$ apt-get build-dep libyaz-dev
$ apt-get source –compile libyaz-de
$ dpkg -i libyaz-dev_2.1.44-1_amd64.deb libyaz_2.1.44-1_amd64.deb
$ apt-get build-dep idzebra-2.0
$ apt-get source –compile idzebra-2.0
$ dpkg -i idzebra-2.0*.deb libidzebra-2.0*.deb
January 19th, 2007 at 10:11 am
An addendum to my last comment on how to install Yaz and Zebra on amd64; DO NOT INSTALL THE libnet-z3950-perl package!
This will uninstall the packages you just built from source because of a dependency. Instead, use perl’s cpan to install Net::Z3950::ZOOM.
Cheers,
Walter
August 12th, 2007 at 10:44 pm
Two good pieces of news!
* Ruby Zoom can installed as a gem like so:
$ sudo gem install zoom
* Ruby Zoom now has the Extended Services portion of the ZOOM API, so the Perl lib install is no longer necessary (for acts_as_zoom and thus Kete)
Cheers,
Walter
September 5th, 2007 at 10:58 am
A comment on my last comment. Ruby Zoom is available as a gem, but the Extended Services version is still in pre-release. Stay tuned. I’ll let you know when it’s really available.
Cheers,
Walter