Can't install Net::Z3950::ZOOM on openSUSE 11.0
I've been following Ricardo's excellent "Installation Guide for Installing Koha 3 on openSUSE 11" http://wiki.koha.org/doku.php?id=opensuse_11.0 Net::Z3950::ZOOM fails even after installing the libyaz packages. I noticed that his guide showed version 1.21 and mine is 1.24. I could try forcing it, but thought I'd check with the list first. The output is: cpan shell -- CPAN exploration and modules installation (v1.9205) ReadLine support enabled CPAN: Storable loaded ok (v2.18) Going to read /root/.cpan/Metadata Database was generated on Sun, 13 Jul 2008 18:02:49 GMT Running install for module 'Net::Z3950::ZOOM' CPAN: Data::Dumper loaded ok (v2.121_14) 'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs' Running make for M/MI/MIRK/Net-Z3950-ZOOM-1.24.tar.gz CPAN: Digest::SHA loaded ok (v5.45) CPAN: Compress::Zlib loaded ok (v2.008) Checksum for /root/.cpan/sources/authors/id/M/MI/MIRK/Net-Z3950-ZOOM-1.24.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE Net-Z3950-ZOOM-1.24/ Net-Z3950-ZOOM-1.24/samples/ Net-Z3950-ZOOM-1.24/samples/zoom/ Net-Z3950-ZOOM-1.24/samples/zoom/trivial-async.pl Net-Z3950-ZOOM-1.24/samples/zoom/zdump.pl Net-Z3950-ZOOM-1.24/samples/zoom/async.pl Net-Z3950-ZOOM-1.24/samples/zoom/zoomscan.pl Net-Z3950-ZOOM-1.24/samples/zoom/zhello.pl Net-Z3950-ZOOM-1.24/samples/zoom/zoomtst1.pl Net-Z3950-ZOOM-1.24/samples/zoom/zselect Net-Z3950-ZOOM-1.24/samples/zoom/update.pl Net-Z3950-ZOOM-1.24/samples/zoom/zoomtst3.pl Net-Z3950-ZOOM-1.24/samples/README Net-Z3950-ZOOM-1.24/samples/net-z3950/ Net-Z3950-ZOOM-1.24/samples/net-z3950/zoomtst1.pl Net-Z3950-ZOOM-1.24/samples/records/ Net-Z3950-ZOOM-1.24/samples/records/esdd0006.grs Net-Z3950-ZOOM-1.24/samples/ccl/ Net-Z3950-ZOOM-1.24/samples/ccl/default.bib Net-Z3950-ZOOM-1.24/samples/cql/ Net-Z3950-ZOOM-1.24/samples/cql/pqf.properties Net-Z3950-ZOOM-1.24/samples/net-z3950-zoom/ Net-Z3950-ZOOM-1.24/samples/net-z3950-zoom/async.pl Net-Z3950-ZOOM-1.24/samples/net-z3950-zoom/zoomtst1.pl Net-Z3950-ZOOM-1.24/samples/net-z3950-zoom/zoomtst3.pl Net-Z3950-ZOOM-1.24/README Net-Z3950-ZOOM-1.24/Changes Net-Z3950-ZOOM-1.24/META.yml Net-Z3950-ZOOM-1.24/MANIFEST Net-Z3950-ZOOM-1.24/ZOOM.xs Net-Z3950-ZOOM-1.24/MANIFEST.SKIP Net-Z3950-ZOOM-1.24/Makefile.PL Net-Z3950-ZOOM-1.24/t/ Net-Z3950-ZOOM-1.24/t/29-events.t Net-Z3950-ZOOM-1.24/t/11-option-callback.t Net-Z3950-ZOOM-1.24/t/15-scan.t Net-Z3950-ZOOM-1.24/t/16-packages.t Net-Z3950-ZOOM-1.24/t/13-resultset.t Net-Z3950-ZOOM-1.24/t/24-sorting.t Net-Z3950-ZOOM-1.24/t/17-logging.t Net-Z3950-ZOOM-1.24/t/20-options.t Net-Z3950-ZOOM-1.24/t/12-query.t Net-Z3950-ZOOM-1.24/t/10-options.t Net-Z3950-ZOOM-1.24/t/1-Net-Z3950-ZOOM.t Net-Z3950-ZOOM-1.24/t/22-query.t Net-Z3950-ZOOM-1.24/t/27-logging.t Net-Z3950-ZOOM-1.24/t/25-scan.t Net-Z3950-ZOOM-1.24/t/19-events.t Net-Z3950-ZOOM-1.24/t/14-sorting.t Net-Z3950-ZOOM-1.24/t/28-charset.t Net-Z3950-ZOOM-1.24/t/23-resultset.t Net-Z3950-ZOOM-1.24/t/26-packages.t Net-Z3950-ZOOM-1.24/t/18-charset.t Net-Z3950-ZOOM-1.24/t/2-ZOOM.t Net-Z3950-ZOOM-1.24/t/21-option-callback.t Net-Z3950-ZOOM-1.24/typemap Net-Z3950-ZOOM-1.24/lib/ Net-Z3950-ZOOM-1.24/lib/ZOOM.pm Net-Z3950-ZOOM-1.24/lib/ZOOM.pod Net-Z3950-ZOOM-1.24/lib/Net/ Net-Z3950-ZOOM-1.24/lib/Net/Z3950/ Net-Z3950-ZOOM-1.24/lib/Net/Z3950/ZOOM.pm Net-Z3950-ZOOM-1.24/lib/Net/Z3950.pm CPAN: File::Temp loaded ok (v0.18) Warning (usually harmless): 'YAML' not installed, will not store persistent state CPAN.pm: Going to build M/MI/MIRK/Net-Z3950-ZOOM-1.24.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Net::Z3950::ZOOM Could not read '/root/.cpan/build/Net-Z3950-ZOOM-1.24-36RGgw/META.yml'. Falling back to other methods to determine prerequisites cp lib/Net/Z3950/ZOOM.pm blib/lib/Net/Z3950/ZOOM.pm cp lib/ZOOM.pm blib/lib/ZOOM.pm cp lib/ZOOM.pod blib/lib/ZOOM.pod cp lib/Net/Z3950.pm blib/lib/Net/Z3950.pm /usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap ZOOM.xs > ZOOM.xsc && mv ZOOM.xsc ZOOM.c cc -c -pthread -DYAZ_POSIX_THREADS=1 -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe -DVERSION=\"1.24\" -DXS_VERSION=\"1.24\" -fPIC "-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE" ZOOM.c ZOOM.xs: In function ‘XS_Net__Z3950__ZOOM_options_set_callback’: ZOOM.xs:469: warning: statement with no effect ZOOM.xs:470: warning: statement with no effect Running Mkbootstrap for Net::Z3950::ZOOM () chmod 644 ZOOM.bs rm -f blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so LD_RUN_PATH="/usr/lib64" cc -shared -L/usr/local/lib64 ZOOM.o -o blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so \ -lyaz -L/usr/lib64 -lxslt -lxml2 -lz -lm -lssl -lcrypto -lwrap -lpthread \ chmod 755 blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so cp ZOOM.bs blib/arch/auto/Net/Z3950/ZOOM/ZOOM.bs chmod 644 blib/arch/auto/Net/Z3950/ZOOM/ZOOM.bs cp samples/zoom/zselect blib/script/zselect /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/zselect Manifying blib/man3/Net::Z3950::ZOOM.3pm Manifying blib/man3/ZOOM.3pm MIRK/Net-Z3950-ZOOM-1.24.tar.gz /usr/bin/make -- OK Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/1-Net-Z3950-ZOOM......ok t/10-options............ok t/11-option-callback....ok t/12-query..............ok t/13-resultset..........ok t/14-sorting............ok t/15-scan...............ok t/16-packages...........ok t/17-logging............ok t/18-charset............ok t/19-events.............ok t/2-ZOOM................ # Failed test 'connection to non-existent host 'no.such.host' fails' # at t/2-ZOOM.t line 20. # Looks like you failed 1 test of 23. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 4 Failed 1/23 tests, 95.65% okay t/20-options............ok t/21-option-callback....ok t/22-query..............ok t/23-resultset..........ok t/24-sorting............ok t/25-scan...............ok t/26-packages...........ok t/27-logging............ok t/28-charset............ok t/29-events.............ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/2-ZOOM.t 1 256 23 1 4 Failed 1/22 test scripts. 1/714 subtests failed. Files=22, Tests=714, 57 wallclock secs ( 1.14 cusr + 0.12 csys = 1.26 CPU) Failed 1/22 test programs. 1/714 subtests failed. make: *** [test_dynamic] Error 255 MIRK/Net-Z3950-ZOOM-1.24.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MIRK/Net-Z3950-ZOOM-1.24.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make install make test had returned bad status, won't install without force Failed during this command: MIRK/Net-Z3950-ZOOM-1.24.tar.gz : make_test NO Lockfile removed. ----------- # rpm -qa | grep -i yaz libyaz-3.0.16-40.1 libyaz-devel-3.0.16-40.1 -- Bob
Hi Bob, On Sun, Jul 13, 2008, Bob Ewart <bob-ewart@earthlink.net> wrote:
I've been following Ricardo's excellent "Installation Guide for Installing Koha 3 on openSUSE 11" http://wiki.koha.org/doku.php?id=opensuse_11.0
Hey, that's me! Thank you very much for your compliment! :)
Net::Z3950::ZOOM fails even after installing the libyaz packages.
I noticed that his guide showed version 1.21 and mine is 1.24.
I could try forcing it, but thought I'd check with the list first.
The output is:
[snip]
t/18-charset............ok t/19-events.............ok t/2-ZOOM................ # Failed test 'connection to non-existent host 'no.such.host' fails' # at t/2-ZOOM.t line 20. # Looks like you failed 1 test of 23. [snip]
I never had that error before, so I searched the mailing list archives for that error message ("Failed test 'connection to non-existent host 'no.such.host' fails' "). I found out the following relevant message, posted by John Chadwick, on 15-Jan-2008: RE: failed to load Net::Z3950::ZOOM on ubuntu 'no.such.host'exists error http://article.gmane.org/gmane.comp.misc.koha/8872 Here's what John Chadwick said: ____________________ " I had the same problem. I ended up doing an apt-get install libgcrypt (if that doesn't work, try libcrypt-dev. After installing, then install the Net::Z3950::ZOOM. " ____________________ So, it seems that we also need to install the libgcrypt package. Considering that I never saw that error message when installing Net::Z3950::ZOOM, I'm wondering if it's not a package dependency installed by other package (possibly by libyaz-devel). Maybe you have installed the libyaz package, but did NOT install the libyaz-devel package? When you install the libyaz-devel package it will also install several other package dependencies, namely: zlib-devel, tcpd-devel, tack, libgpg-error-devel, ncurses-devel, libopenssl-devel, libgcrypt-devel, readline-devel, libxml2-devel and libxslt-devel (as I say in my tutorial / HOWTO). As you can see, at least the libgcrypt-devel package gets installed (that should be equivalent to the libcrypt-dev package in Ubuntu). If you did install the libyaz-devel package it's possible that you have to install the libgcrypt package separately (a thing that, as I mention above, don't remember happening to me before). In that case, try to install the libgcrypt package. The command should be: # yast -i libgcrypt After installing libgcrypt, install the Net::Z3950::ZOOM package again. Please, report back later with the outcome of your installation. Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
Hi Ricardo, libgcrypt-devel-1.4.0-3.1 and libgcrypt11-1.4.0-3.1 were installed. The problem is that yaz was not. Once I installed it, Net::Z3950::ZOOM installed. I checked your guide on the wiki. Libyaz and libyaz-devel are listed to be installed, but yaz itself is not. Thanks for your help. It got me looking in the right direction. Ricardo Dias Marques wrote:
Hi Bob,
On Sun, Jul 13, 2008, Bob Ewart <bob-ewart@earthlink.net> wrote:
I've been following Ricardo's excellent "Installation Guide for Installing Koha 3 on openSUSE 11" http://wiki.koha.org/doku.php?id=opensuse_11.0
Hey, that's me! Thank you very much for your compliment! :)
Net::Z3950::ZOOM fails even after installing the libyaz packages.
I noticed that his guide showed version 1.21 and mine is 1.24.
I could try forcing it, but thought I'd check with the list first.
The output is:
[snip]
t/18-charset............ok t/19-events.............ok t/2-ZOOM................ # Failed test 'connection to non-existent host 'no.such.host' fails' # at t/2-ZOOM.t line 20. # Looks like you failed 1 test of 23. [snip]
I never had that error before, so I searched the mailing list archives for that error message ("Failed test 'connection to non-existent host 'no.such.host' fails' ").
I found out the following relevant message, posted by John Chadwick, on 15-Jan-2008:
RE: failed to load Net::Z3950::ZOOM on ubuntu 'no.such.host'exists error http://article.gmane.org/gmane.comp.misc.koha/8872
Here's what John Chadwick said: ____________________
" I had the same problem. I ended up doing an apt-get install libgcrypt (if that doesn't work, try libcrypt-dev.
After installing, then install the Net::Z3950::ZOOM. " ____________________
So, it seems that we also need to install the libgcrypt package. Considering that I never saw that error message when installing Net::Z3950::ZOOM, I'm wondering if it's not a package dependency installed by other package (possibly by libyaz-devel).
Maybe you have installed the libyaz package, but did NOT install the libyaz-devel package? When you install the libyaz-devel package it will also install several other package dependencies, namely: zlib-devel, tcpd-devel, tack, libgpg-error-devel, ncurses-devel, libopenssl-devel, libgcrypt-devel, readline-devel, libxml2-devel and libxslt-devel (as I say in my tutorial / HOWTO). As you can see, at least the libgcrypt-devel package gets installed (that should be equivalent to the libcrypt-dev package in Ubuntu).
If you did install the libyaz-devel package it's possible that you have to install the libgcrypt package separately (a thing that, as I mention above, don't remember happening to me before).
In that case, try to install the libgcrypt package. The command should be:
# yast -i libgcrypt
After installing libgcrypt, install the Net::Z3950::ZOOM package again.
Please, report back later with the outcome of your installation.
Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
-- Bob
Hi Bob, On Mon, Jul 14, 2008 at 2:39 PM, Bob Ewart <bob-ewart@earthlink.net> wrote:
libgcrypt-devel-1.4.0-3.1 and libgcrypt11-1.4.0-3.1 were installed.
OK, that's good.
The problem is that yaz was not. Once I installed it, Net::Z3950::ZOOM installed.
Great catch! It's interesting that I have reviewed my installation log (I have putty logging every printable output to a text file) and it *seemed* that when I installed the libyaz package, it was also installing yaz itself). However, prompted by your info, I typed the following command: ____________________ # rpm -qi yaz ____________________ And, sure enough, I got the following output: ____________________ package yaz is not installed ____________________ So, I have now installed yaz with the yast command: ____________________ # yast -i yaz ____________________ ... and all seems to be well now! :)
I checked your guide on the wiki. Libyaz and libyaz-devel are listed to be installed, but yaz itself is not.
You're absolutely right. It's funny that I did not get the same error that you did (" Failed test 'connection to non-existent host 'no.such.host' fails' ") when installing the Net::Z3950::ZOOM Perl Module. It's possible, as you said, that this was due to a version difference in this ZOOM module (from 1.21 - the one I got when installing it from CPAN - to 1.24 - the one you got). I have already updated the information in wiki to add this step to install yaz. Naturally, I credited you for the find: Installation Guide for Installing Koha 3 on openSUSE 11 [Koha Developer Wiki] http://wiki.koha.org/doku.php?id=opensuse_11.0 I will also update the INSTALL.opensuse Koha file in "git" (the source control system that Koha uses) to also have this information.
Thanks for your help. It got me looking in the right direction.
You're welcome. Thank you very much for having reported back with this information and I apologize for the missing step in my Tutorial / HOWTO. Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
participants (2)
-
Bob Ewart -
Ricardo Dias Marques