[Koha] Installing 1.3.3 on Red Hat 8.0
Paul Gear
paul at gear.dyndns.org
Sat Feb 1 16:35:54 NZDT 2003
-----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-----
More information about the Koha
mailing list