I spent yesterday trying to get a fresh install of Debian Etch and Koha3Beta following the instructions maintained by Joshua Ferraro at http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob;f=INSTALL.debian;h= 1c35e8098c561f3f563b9c8f5f7e5844c60cdab5;hb=HEAD. After many false starts I finally got to this point on my web browser when connecting to both the 80 and 8080 ports. I thought all the cpan/Perl modules had loaded without error but I guess not. I tried reloading the ZOOM::Z39.50 module but got a bunch of test errors this time. Anybody know what's wrong here and how I can fix it?-- Software error: Can't locate ZOOM.pm in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/lib/C4/Context.pm line 59. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line 59. Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 29. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 29. Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. CGI::Carp Michael Mitchell Technical Services Librarian Brazosport College Lake Jackson, TX michael.mitchell at brazosport.edu
Hi Michael, On Fri, May 2, 2008, Mitchell, Michael <Michael.Mitchell@brazosport.edu> wrote:
I spent yesterday trying to get a fresh install of Debian Etch and Koha3Beta following the instructions maintained by Joshua Ferraro at http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob;f=INSTALL.debian;h= 1c35e8098c561f3f563b9c8f5f7e5844c60cdab5;hb=HEAD. After many false starts I finally got to this point on my web browser when connecting to both the 80 and 8080 ports. I thought all the cpan/Perl modules had loaded without error but I guess not. I tried reloading the ZOOM::Z39.50 module but got a bunch of test errors this time. [snip]
Software error: Can't locate ZOOM.pm in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/lib/C4/Context.pm line 59. [snip]
I don't use Debian (or Debian-derived distributions, like Ubuntu), but it seems to me that the Net::Z3950::ZOOM Perl module was NOT installed. I suspect of 3 possible sources of error: - Possible Source of Error #1 : If, while trying to install the ZOOM Perl module, you get the following error message (in the middle of the output of the installation): __________ "ERROR: Unable to call script: yaz-config If you are using a YAZ installation from the Debian package "yaz", you will also need to install "libyaz-dev" in order to build this module. __________ ... then, like the message mentions, you'll have to install the Debian package "libyaz-dev" first. After doing that, install again the Net::Z3950::ZOOM module. - Possible Source of Error #2 : If, while trying to install the ZOOM Perl module, you get the following error message (in the middle of the output of the installation): __________ /usr/bin/ld: cannot find -lgcrypt collect2: ld returned 1 exit status make: *** [blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so] Error 1 koha:/Net-Z3950-ZOOM-1.21# koha:/Net-Z3950-ZOOM-1.21# lgcrypt -bash: lgcrypt: command not found koha:/Net-Z3950-ZOOM-1.21# lgcrypt -bash: lgcrypt: command not found __________ ... then, you'll have to install the libgcrypt-dev Debian package (using apt-get). This tip was given by Chris Cormack (that worked for LibLime) here: [Koha] ZOOM Module http://lists.katipo.co.nz/public/koha/2007-November/012784.html After doing that, install again the Net::Z3950::ZOOM Module. - Possible Source of Error #3 : If you had already installed "libyaz-dev" before installing the ZOOM Perl Module, then you may be behind a corporate firewall, and that may be blocking the connection tests to Z3950 Servers (these connection tests are done during the installation of the ZOOM Perl Module). It that is the case, then you'll probably have to do a "force install" of the Net::Z3950::ZOOM module, in a CPAN prompt / shell, like this: # cpan cpan[1]> force install Net::Z3950::ZOOM I hope this helps. Please, do tell later if any of these 3 possible sources of error actually applied to you (and which one did) and if the proposed solution worked. Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
-----Original Message----- From: newsgroup.posts@gmail.com [mailto:newsgroup.posts@gmail.com] On Behalf Of Ricardo Dias Marques Sent: Wednesday, May 07, 2008 7:24 PM To: Mitchell, Michael Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] "Software error" on Web page Hi Michael, On Fri, May 2, 2008, Mitchell, Michael <Michael.Mitchell@brazosport.edu> wrote:
I spent yesterday trying to get a fresh install of Debian Etch and Koha3Beta following the instructions maintained by Joshua Ferraro at http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob;f=INSTALL.debian; h= 1c35e8098c561f3f563b9c8f5f7e5844c60cdab5;hb=HEAD. After many false
starts I finally got to this point on my web browser when connecting to both the 80 and 8080 ports. I thought all the cpan/Perl modules had loaded without error but I guess not. I tried reloading the ZOOM::Z39.50 module but got a bunch of test errors this time. [snip]
Software error: Can't locate ZOOM.pm in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at /usr/share/koha/lib/C4/Context.pm line
59. [snip]
I don't use Debian (or Debian-derived distributions, like Ubuntu), but it seems to me that the Net::Z3950::ZOOM Perl module was NOT installed. I suspect of 3 possible sources of error: - Possible Source of Error #1 : If, while trying to install the ZOOM Perl module, you get the following error message (in the middle of the output of the installation): __________ "ERROR: Unable to call script: yaz-config If you are using a YAZ installation from the Debian package "yaz", you will also need to install "libyaz-dev" in order to build this module. __________ ... then, like the message mentions, you'll have to install the Debian package "libyaz-dev" first. After doing that, install again the Net::Z3950::ZOOM module. - Possible Source of Error #2 : If, while trying to install the ZOOM Perl module, you get the following error message (in the middle of the output of the installation): __________ /usr/bin/ld: cannot find -lgcrypt collect2: ld returned 1 exit status make: *** [blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so] Error 1 koha:/Net-Z3950-ZOOM-1.21# koha:/Net-Z3950-ZOOM-1.21# lgcrypt -bash: lgcrypt: command not found koha:/Net-Z3950-ZOOM-1.21# lgcrypt -bash: lgcrypt: command not found __________ ... then, you'll have to install the libgcrypt-dev Debian package (using apt-get). This tip was given by Chris Cormack (that worked for LibLime) here: [Koha] ZOOM Module http://lists.katipo.co.nz/public/koha/2007-November/012784.html After doing that, install again the Net::Z3950::ZOOM Module. - Possible Source of Error #3 : If you had already installed "libyaz-dev" before installing the ZOOM Perl Module, then you may be behind a corporate firewall, and that may be blocking the connection tests to Z3950 Servers (these connection tests are done during the installation of the ZOOM Perl Module). It that is the case, then you'll probably have to do a "force install" of the Net::Z3950::ZOOM module, in a CPAN prompt / shell, like this: # cpan cpan[1]> force install Net::Z3950::ZOOM I hope this helps. Please, do tell later if any of these 3 possible sources of error actually applied to you (and which one did) and if the proposed solution worked. Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net ========================================= Ricardo, Thanks for replying. I did get beyond this problem but only with a kludge. I found Zoom.pm in one of my installation dirs and copied it to /usr/share/koha/lib (or maybe one of the other dirs mentioned in the error). Then got different error along the lines of "unable to use [various Zoom.pm error statements] while using "strict" protocol." So I went into Zoom.pm and commented out the offending lines regarding the error logs and Z39.50 (since I won't need to use that anyway). Well, since then I've been able to connect to both public (80) and admin (8080) interfaces. I configured Koha with all the sample locations and got a "_conn" error when I tried to do any searching. Figured this was related to the Z39.50 I'd commented out so I went back in and deleted all the sample locations I could (several refused to be deleted) and added our BCL location. I loaded fifty or so MARC records and now it does basic searches successfully. (I know, I should log my actions better). I'm going to try your solution #3 when I get a chance because that sounds like it's on target (also think I'll see if our IT dir will open up Z39.50 ports for me. I'll report back. Michael Mitchell Technical Services Librarian Brazosport College Lake Jackson, TX michael.mitchell at brazosport.edu
-----Original Message----- From: newsgroup.posts@gmail.com [mailto:newsgroup.posts@gmail.com] On Behalf Of Ricardo Dias Marques Sent: Wednesday, May 07, 2008 7:24 PM To: Mitchell, Michael Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] "Software error" on Web page Hi Michael, On Fri, May 2, 2008, Mitchell, Michael <Michael.Mitchell@brazosport.edu> wrote:
I spent yesterday trying to get a fresh install of Debian Etch and Koha3Beta following the instructions maintained by Joshua Ferraro at http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=blob;f=INSTALL.debian; h= 1c35e8098c561f3f563b9c8f5f7e5844c60cdab5;hb=HEAD. After many false
starts I finally got to this point on my web browser when connecting to both the 80 and 8080 ports. I thought all the cpan/Perl modules had loaded without error but I guess not. I tried reloading the ZOOM::Z39.50 module but got a bunch of test errors this time. [snip]
Software error: Can't locate ZOOM.pm in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at /usr/share/koha/lib/C4/Context.pm line
59. [snip]
Ricardo Dias Marques wrote: - Possible Source of Error #3 : If you had already installed "libyaz-dev" before installing the ZOOM Perl Module, then you may be behind a corporate firewall, and that may be blocking the connection tests to Z3950 Servers (these connection tests are done during the installation of the ZOOM Perl Module). It that is the case, then you'll probably have to do a "force install" of the Net::Z3950::ZOOM module, in a CPAN prompt / shell, like this: # cpan cpan[1]> force install Net::Z3950::ZOOM ==================================================== Ricardo, OK, just tried #3 and am back to the error I refered to that led to me commenting out sections of zoom.pm: Software error: Bareword "Net::Z3950::ZOOM::ERROR_NONE" not allowed while "strict subs" in use at /usr/local/lib/perl/5.8.8/ZOOM.pm line 31. BEGIN not safe after errors--compilation aborted at /usr/local/lib/perl/5.8.8/ZOOM.pm line 196. Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 59. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line 59. Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 29. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 29. Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. CGI::Carp Michael Mitchell Technical Services Librarian Brazosport College Lake Jackson, TX michael.mitchell at brazosport.edu
Ricardo, I commented out "use strict" in zoom.pm (line 31) and get: Software error: Undefined subroutine &Net::Z3950::ZOOM::yaz_log_mask_str called at /usr/local/lib/perl/5.8.8/ZOOM.pm line 1092. BEGIN failed--compilation aborted at /usr/local/lib/perl/5.8.8/ZOOM.pm line 1116. Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 59. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line 59. Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 29. BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 29. Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. BEGIN failed--compilation aborted at /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22. So I comment that last section out and I'm once again good to go: #package ZOOM::Log; 1091 1092 #sub mask_str { my($a) = @_; Net::Z3950::ZOOM::yaz_log_mask_str($a); } 1093 #sub module_level { my($a) = @_; Net::Z3950::ZOOM::yaz_log_module_level($a); } 1094 #sub init { my($a, $b, $c) = @_; 1095 # Net::Z3950::ZOOM::yaz_log_init($a, $b, $c) } 1096 #sub init_file { my($a) = @_; Net::Z3950::ZOOM::yaz_log_init_file($a) } 1097 #sub init_level { my($a) = @_; Net::Z3950::ZOOM::yaz_log_init_level($a) } 1098 #sub init_prefix { my($a) = @_; Net::Z3950::ZOOM::yaz_log_init_prefix($a) } 1099 #sub time_format { my($a) = @_; Net::Z3950::ZOOM::yaz_log_time_format($a) } 1100 #sub init_max_size { my($a) = @_; Net::Z3950::ZOOM::yaz_log_init_max_size($a) } 1101 1102 #sub log { 1103 # my($level, @message) = @_; 1104 1105 # if ($level !~ /^(0x)?\d+$/) { 1106 # Assuming its log-level name, we look it up. 1107 # my $num = module_level($level); 1108 ## ZOOM::_oops(ZOOM::Error::LOGLEVEL, $level) 1109 # if $num == 0; 1110 # $level = $num; 1111 # } 1112 1113 # Net::Z3950::ZOOM::yaz_log($level, join("", @message)); 1114 #} 1115 1116 #BEGIN { ZOOM::Log::mask_str("zoom_check"); } 1117 #1; Mike
Hi Michael On Thu, May 8, 2008 at 2:22 PM, Mitchell, Michael <Michael.Mitchell@brazosport.edu> wrote:
Ricardo, I commented out "use strict" in zoom.pm (line 31) and get:
Software error:
Undefined subroutine &Net::Z3950::ZOOM::yaz_log_mask_str called at /usr/local/lib/perl/5.8.8/ZOOM.pm line 1092. [snip] So I comment that last section out and I'm once again good to go:
#package ZOOM::Log; 1091 1092 #sub mask_str { my($a) = @_; Net::Z3950::ZOOM::yaz_log_mask_str($a); } 1093 #sub module_level { my($a) = @_; Net::Z3950::ZOOM::yaz_log_module_level($a); } 1094 #sub init { my($a, $b, $c) = @_; 1095 # Net::Z3950::ZOOM::yaz_log_init($a, $b, $c) } [snip]
Interesting. It's good to know that solved your problem! I must admit that I would probably try less "drastic" solutions than commenting out "problematic" Perl code, like you did. But, like you said, because you're not planning on using the Z3950 search functionality, I think that I understand why you felt comfortable with that approach. Congratulations for being so resourceful! :) Best wishes, Ricardo Dias Marques lists AT ricmarques DOT net
participants (2)
-
Mitchell, Michael -
Ricardo Dias Marques