-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm wondering if any of you can share your experiences with installing the latest testing version of Koha on Red Hat 8.0. I've been trying all morning and it's been an interesting experience to say the least! Here's what i've found so far: - - Installing Net::Z3950 required Event 0.86, which failed testing. I've presently worked around this by doing: perl -MCPAN -e shell force install Event - - Compiling Net::Z3950 failed with the following output: cd yazwrap && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O2 -march=i386 -mcpu=i686" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/share/software/download/Net-Z3950-0.32/yazwrap' gcc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O2 - -march=i386 -mcpu=i686 -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:2210, 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:3369, from ywpriv.h:5, from connect.c:12: I googled for a resolution for this and found that it's necessary to edit Makefile.PL and yazwrap/Makefile.PL to include: 'DEFINES' => '-D_GNU_SOURCE', in the make parameter section. - - The remaining modules and the install script ran smoothly. - - The main librarian page wouldn't load by default, with a permission denied error. This seems to be due to the top level koha directory not being readable by group apache. I ran: cd /opt/koha # my installation directory chgrp -R apache . find . -type d | xargs chmod g+s # to make sure any other files created get the right permissions - - There were a number of Perl modules which didn't get reasonable permissions when they were installed. A big stick approach to perl modules seemed to work: cd /usr/lib/perl5 chmod -R go=u-w . I would rather that such sticks were not necessary - perhaps a suggestion of help to newbies would be to create DEBs and RPMs of the required Perl modules. If i get a chance i might work on this... - - The permissions on /etc/kohaintranet.pass were not correct by default. A 'chgrp apache /etc/kohaintranet.pass' fixed this. - - Other errors in /var/log/httpd/koha-error_log were (leading & trailing noise removed): File does not exist: /opt/koha/intranet/htdocs/images/kohasplash.jpg * This didn't seem to affect anything Premature end of script headers: mainpage.pl Can't locate HTML/Template.pm in @INC (...) at /opt/koha/intranet/cgi-bin/mainpage.pl line 2. BEGIN failed--compilation aborted at /opt/koha/intranet/cgi-bin/mainpage.pl line 2. * This was caused by the above-mentioned perl module permissions problems Premature end of script headers: marcimport.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl HTML::Template->new() : Cannot open included file /opt/koha/opac/htdocs/opac-tmpl/default/en/acqui.simple/marcimport.tmpl : file not found..., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl * I can't recall what happened here, but i think it resulted in an empty page with just '<html>' generated. I'm not familiar with the perl CGI template module, so i'm not sure where to proceed from here. Premature end of script headers: z3950servers.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 176., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 245., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl * Changing the C4Connect bareword to &C4Connect in admin-home.pl fixed this. Hope this is helpful to someone. I couldn't find any like notes in the mailing list archive. Paul http://paulgear.webhop.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+O0CX0yv0OWRYqWwRAn5mAJ0aH38i/8PbmIazL5TbC25TGKs5AQCffl0+ WpmCoQ7+PNElzZQz8NCBw50= =3Gih -----END PGP SIGNATURE-----
Paul Gear a écrit:
Hi all,
I'm wondering if any of you can share your experiences with installing the latest testing version of Koha on Red Hat 8.0. I've been trying all morning and it's been an interesting experience to say the least!
Here's what i've found so far:
- - Installing Net::Z3950 required Event 0.86, which failed testing. I've presently worked around this by doing: perl -MCPAN -e shell force install Event I googled for a resolution for this and found that it's necessary to edit Makefile.PL and yazwrap/Makefile.PL to include: 'DEFINES' => '-D_GNU_SOURCE',
This problems occurs at least twice a week, i'll add a message during installation !
- - The main librarian page wouldn't load by default, with a permission denied error. This seems to be due to the top level koha directory not being readable by group apache. I ran: cd /opt/koha # my installation directory chgrp -R apache . find . -type d | xargs chmod g+s # to make sure any other files created get the right permissions
it's fixed in CVS iirc (thx to Ambrose)
Premature end of script headers: marcimport.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl HTML::Template->new() : Cannot open included file /opt/koha/opac/htdocs/opac-tmpl/default/en/acqui.simple/marcimport.tmpl : file not found..., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl * I can't recall what happened here, but i think it resulted in an empty page with just '<html>' generated. I'm not familiar with the perl CGI template module, so i'm not sure where to proceed from here.
probably the same problem as the previous one.
Premature end of script headers: z3950servers.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 176., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 245., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl * Changing the C4Connect bareword to &C4Connect in admin-home.pl fixed this.
Could some perl-geek explain this one ? -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 paul POULAIN wrote:
Paul Gear a écrit:
Hi all,
I'm wondering if any of you can share your experiences with installing the latest testing version of Koha on Red Hat 8.0. I've been trying all morning and it's been an interesting experience to say the least!
Here's what i've found so far:
- - Installing Net::Z3950 required Event 0.86, which failed testing. I've presently worked around this by doing: perl -MCPAN -e shell force install Event I googled for a resolution for this and found that it's necessary to edit Makefile.PL and yazwrap/Makefile.PL to include: 'DEFINES' => '-D_GNU_SOURCE',
This problems occurs at least twice a week, i'll add a message during installation !
An RPM of Net:Z3950 and Event would be even better... :-)
...
Premature end of script headers: marcimport.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl HTML::Template->new() : Cannot open included file /opt/koha/opac/htdocs/opac-tmpl/default/en/acqui.simple/marcimport.tmpl : file not found..., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/acqui.simple/addbooks.pl * I can't recall what happened here, but i think it resulted in an empty page with just '<html>' generated. I'm not familiar with the perl CGI template module, so i'm not sure where to proceed from here.
probably the same problem as the previous one.
I don't think so, because it was after i'd done the previously-mentioned permissions fix that i saw this.
Premature end of script headers: z3950servers.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 176., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 245., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl * Changing the C4Connect bareword to &C4Connect in admin-home.pl fixed this.
Could some perl-geek explain this one ?
I'm half a perl geek... The syntax used is perl 4 (?) style and is no longer supported under 5.8. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+Plbr0yv0OWRYqWwRAkrmAJ9bMVCsR+Fsir1YmFe0HRmWY4BZsQCdFCEW NvHomvTYnxG70rs+Xazw59E= =oi6u -----END PGP SIGNATURE-----
On Mon, 3 Feb 2003, Paul Gear wrote:
paul POULAIN wrote:
Paul Gear a écrit:
Premature end of script headers: z3950servers.pl, referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 176., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl Bareword "C4Connect" not allowed while "strict subs" in use at /opt/koha/intranet/cgi-bin/admin/z3950servers.pl line 245., referer: http://enoch.gear.dyndns.org:82/cgi-bin/koha/admin-home.pl * Changing the C4Connect bareword to &C4Connect in admin-home.pl fixed this.
Could some perl-geek explain this one ?
I'm half a perl geek... The syntax used is perl 4 (?) style and is no longer supported under 5.8.
(1) The &funcname syntax is supported in perl 5.8. I just checked the perldelta for 5.8 and in fact, the use of &funcname is exhibited several times. And for more proof: [chicks@chicks]$ perl -e 'sub x { print "hi\n"; } &x;' hi [chicks@chicks]$ perl -v This is perl, v5.8.0 built for i386-linux-thread-multi (2) the 'Bareword "C4Connect" not allowed while "strict subs"' error is explained as: Bareword "%s" not allowed while "strict subs" in use (F) With "strict subs" in use, a bareword is only allowed as a subroutine identifier, in curly brackets or to the left of the "=>" symbol. Putting the & in front or () behind the seeming barewood solves the problem generally. & is the more vintage way to do things and is necessary if perl4 compatibality is an issue. Putting () aftewards tends look more current. The difference between prepending & or appending () in this case is not merely aesthetic: $ perl -e 'sub doh { print "...@_...\n"; } sub bah { doh(); } bah( qw(x y z a b c));' ...... $ perl -e 'sub doh { print "...@_...\n"; } sub bah { doh; } bah( qw(x y z a b c));' ...... $ perl -e 'sub doh { print "...@_...\n"; } sub bah { &doh; } bah( qw(x y z a b c));' ...x y z a b c... The pre-& call to doh passes the arguments along, while the other two forms don't. Underlying this problem is that "C4Connect" isn't being pre-declared properly. (That's the other way this problem is avoided.) To show another one-liner: [chicks@chicks]$ perl -e 'sub lala { print "lala\n"; } lala;' lala So, even in perl 5.8 the bareword is recognized as a subroutine call if it's been pre-declared. [this sat in my outbox since yesterday. sorry.] -- </chris> "Never offend people with style when you can offend them with substance." - Sam Brown
participants (3)
-
Christopher Hicks -
Paul Gear -
paul POULAIN