hi, i've been trying to install koha these past weeks with no success. when i ran perl installer.pl, i was told that Net::Z3950 module is missing. i then tried the perl -MCPAN -e 'install Net::Z3950' here's a portion of the installation. it's kinda long. i just can't figure where i went wrong :( Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.8.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/attach_to.......ok t/bored...........ok t/callback........ok t/data............ok t/delete..........ok t/eval............ok t/fifo............ok t/group...........ok t/hook............ok t/hup.............ok t/idle............ok t/idle2...........ok t/io..............ok t/leak............ok t/leak2...........ok t/loop............ok t/now.............ok t/reenter.........ok t/signal..........ok t/timeout_cb......ok t/timer...........ok t/unconfigured....ok t/var.............dubious Test returned status 0 (wstat 11, 0xb) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/var.t 0 11 6 6 100.00% 1-6 Failed 1/23 test scripts, 95.65% okay. 6/115 subtests failed, 94.78% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Running make for M/MI/MIRK/Net-Z3950-0.31.tar.gz Is already unwrapped into directory /home/sweet/Documents/.cpan/build/Net-Z3950-0.31 CPAN.pm: Going to build M/MI/MIRK/Net-Z3950-0.31.tar.gz cp Z3950/Record.pm blib/lib/Net/Z3950/Record.pm cp Z3950/Tutorial.pm blib/lib/Net/Z3950/Tutorial.pm cp Z3950/APDU.pm blib/lib/Net/Z3950/APDU.pm cp Z3950.pm blib/lib/Net/Z3950.pm AutoSplitting blib/lib/Net/Z3950.pm (blib/lib/auto/Net/Z3950) cp Z3950/Connection.pm blib/lib/Net/Z3950/Connection.pm cp Z3950/Manager.pm blib/lib/Net/Z3950/Manager.pm cp Z3950/ResultSet.pm blib/lib/Net/Z3950/ResultSet.pm cd yazwrap && /usr/bin/make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/home/sweet/Documents/.cpan/build/Net-Z3950-0.31/yazwrap' gcc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" connect.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2209, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:3368, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:246: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "Perl_do_sysseek" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: type defaults to `int' in declaration of `Perl_do_sysseek' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: parse error before "Perl_do_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: type defaults to `int' in declaration of `Perl_do_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: parse error before "Perl_PerlIO_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: type defaults to `int' in declaration of `Perl_PerlIO_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1379: parse error before "off64_t" make[1]: *** [connect.o] Error 1 make[1]: Leaving directory `/home/sweet/Documents/.cpan/build/Net-Z3950-0.31/yazwrap' make: *** [yazwrap/libyazwrap.a] Error 2 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible -- Louella Z Santiago Science Research Assistant Philippine Council for Health Research and Development Department of Science and Technology "I am not discouraged, because every wrong attempt discarded is another step forward" --Thomas Edison
On Thu, 2003-01-30 at 14:43, Louella Santiago wrote:
i've been trying to install koha these past weeks with no success. when i ran perl installer.pl, i was told that Net::Z3950 module is missing. i then tried the perl -MCPAN -e 'install Net::Z3950'
See if this message helps ...Taken from the Net-z3950 mailling list see http://www.indexdata.dk/pipermail/net-z3950/2003-January/000204.html [Net-z3950] Event module fails to build (in perl 5.8) solution Ran Rubinstein ranrub@md.huji.ac.il Thu, 16 Jan 2003 15:43:24 +0200 I think this problem is perl 5.8 specific - anyway it took time but now i'm installed on my RedHat 8.0 machine. In contrast to mandrake and debian, I did not find a RedHat binary for Event-0.86. For building Event from source, I edited Event-0.86/c/var.c, and added two pTHX_IV denominators: 1. change the line "static I32 tracevar_r(IV ix, SV *sv)" to "static I32 tracevar_r(pTHX_ IV ix, SV *sv)" 2. change the line "static I32 tracevar_w(IV ix, SV *sv)" to "static I32 tracevar_w(pTHX_ IV ix, SV *sv)" make, make test (works!!!), make install. This method was taken from the debian package libevent-perl.deb z3950 still won't compile after this, but Mr. Huhtala was kind to provide me with the solution he eventually found: "after uncompressing I edited Net-Z3950-0.31/yazwrap/Makefile.PL file: I changed line 'CCFLAGS' => $defaultCCFLAGS . ' -Wall', to 'CCFLAGS' => $defaultCCFLAGS . ' -Wall -D_GNU_SOURCE', " perl Makefile.PL, make, make test, make install Thanks to Ville Huhtala for providing the solution to building z3950, and to the debian contributor Steve Kowalik for supplying a working libevent-perl deb for perl 5.8.
participants (2)
-
Louella Santiago -
Mike Mylonas