[Koha] error in installing perl module...

H. S. hs.samix at gmail.com
Wed Sep 12 09:19:18 NZST 2007

On 9/11/07, reegal <reegalkalariya at yahoo.com> wrote:
> hi..i am Reegal...
> I am trying to install koha on ubuntu6.06
> When i tried to install remaining perl module and run this command....
> sudo
> perl -MCPAN -e 'install "Net::Z3950"'...
> Then it shows me an following error...
> *** ERROR!
> ZOOM-Perl requires at least version 2.1.50 of YAZ,
> but is currently you only have version 2.1.8.
> Running make test
>   Make had some problems, maybe interrupted? Won't test
> Running make install
>   Make had some problems, maybe interrupted? Won't install
> I alrady install YAZ....then why i get this kind of error??
> Kindly reply me...
> Thanking you,
> Reegal

I experienced the same problem a couple of days back. Ubuntu does not have a
newer version of yaz. Here is web page that helped me (it essentially lists
the process of downloading the source for newer version, making a deb
package out of it, and installing that dep backage:

If the above page does not work for some reason, here is the relevant text
pasted from there:
Talk:Install Koha on *Ubuntu* 6.06 From MetzgerWiki Jump to:

It might be good to mention not to use the LAMP installation of *Ubuntu* as
this will install MySQL5, which is difficult to downgrade to 4.1.

Also I had problems installing sudo perl -MCPAN -e 'install "*Net*::*Z3950*"'
found the following suggestion on
http://lists.katipo.co.nz/public/koha/2006/010546.html. "perl -MCPAN -e
'install *Net*::*Z3950*::ZOOM'" installed without problems.

Koha2.2.6 needs a few more Perl modules. The installer.pl script told me I
needed the following:

export LC_ALL=C perl -MCPAN -e 'install "MARC::File::XML"' perl -MCPAN -e
'install "ZOOM"' perl -MCPAN -e 'install "You will need PDF::API2 for
barcode generator"' perl -MCPAN -e 'install "You will need GD::Barcode for
the new barcode generator"' perl -MCPAN -e 'install "You will need
Data::Random for the new barcode generator"' perl -MCPAN -e 'install "You
will need PDF::Reuse::Barcode for the new barcode generator"' perl -MCPAN -e
'install "You will need Net::LDAP if you want to authentify patrons through
a LDAP"'

Installing Zoom gave me the error that *Yaz* was to old. I upgraded
*Yaz*with the help from

sudo apt-get install fakeroot debhelper

wget http://ftp.indexdata.dk/pub/*yaz*/*yaz*-2.1.36.tar.gz<http://ftp.indexdata.dk/pub/yaz/yaz-2.1.36.tar.gz>

tar -xzf *yaz*-2.1.36.tar.gz

-Install depended packages with apt-get

sudo apt-get install pkg-config libxslt1-dev libssl-dev libreadline5-dev

cd *yaz*-2.1.36/

dpkg-buildpackage -rfakeroot -b

cd ..

-Install all deb packages created

sudo dpkg -i yaz_2.1.36-1_i386.deb *yaz*-doc_2.1.36-1_all.deb
libyaz_2.1.36-1_i386.deb libyaz-dev_2.1.36-1_i386.deb


The above process will require some additional packages (for example
fakeroot). Here are the commands that I followed:
 352  sudo apt-get install fakeroot debhelper
  353  wget http://ftp.indexdata.dk/pub/yaz/yaz-2.1.36.tar.gz
  354  history | grep yaz
  355  sudo apt-get install libyaz2-dev yaz yaz-doc
  356  sudo perl -MCPAN -e 'install "Net::Z3950"'
  357  tar -tzf yaz-2.1.36.tar.gz
  358  rm yaz-2.1.36.tar.gz
  359  wget http://ftp.indexdata.dk/pub/yaz/yaz-2.1.50.tar.gz
  360  tar ztf yaz-2.1.50.tar.gz
  361  tar zxf yaz-2.1.50.tar.gz
  362  sudo apt-get install pkg-config libxslt1-dev libssl-dev
libreadline5-dev libwrap0-
  363  cd yaz-2.1.50/
  364  dpkg-buildpackage -rfakeroot -b
  365  sudo apt-get install libpcap0.8-dev
  366  dpkg-buildpackage -rfakeroot -b
  367  apt-cache search gcrypt
  368  sudo aptitude install libgcrypt11
  369  sudo aptitude install libgcrypt11-dev
  370  dpkg-buildpackage -rfakeroot -b
  371  history | less
  372  history > ~/history-khoa-install.txt
  373  ls -altr
  374  ls *.deb
  375  ls src/
  376  ls
  377  ls debian/
  378  find ./  -name "*.deb"
  379  cd ..
(remove previously installed packages)
  387  sudo aptitude -s --purge remove libyaz2 libyaz2-dev
  388  sudo aptitude --purge remove libyaz2 libyaz2-dev
  389  cd ..
  390  sudo dpkg -i yaz_2.1.50-1_i386.deb yaz-doc_2.1.50-1_all.deb
eb libyaz-dev_2.1.50-1_i386.deb yaz-ziffy_2.1.50-1_i386.deb
  391  history | less
  392   sudo perl -MCPAN -e 'install "Net::Z3950"'

Hope this helps,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20070911/42ce3bf3/attachment.htm

More information about the Koha mailing list