koha-3.02.00-alpha2 - Debian Lenny installation, a few problems/questions
Hello Let me introduce myself. I'am Ville Huhtala, a librarian and a returning subscriber to Koha mailing list from a few years back. I'm thinking of cataloguing my personal collection so that I don't accidentally repurchase the books or movies I already own! Koha may be a little excessive for my needs, but once I have bibliographic data in marc format it can be reused time and again. Now, about installation. I have used included INSTALL.debian-lenny installation guide. Numbered sections below are from there. 1.6 Install Perl dependencies ----- PDF::API2::Simple installation using CPAN don't work. I got it working using debian package libmodule-install-perl, as discussed here: http://lists.katipo.co.nz/pipermail/koha/2010-March/023253.html 2.2 Create the Koha database ----- mysql> grant all on <kohadatabasename>.* to '<kohadatabaseuser>'@'localhost' identified by '<kohadatabaseuserpassword>'; Shouldn't <kohadatabaseuser> be kohaadmin? Is there a need for an another Koha mysql user? In section 3 (Run the Koha installer) one of questions is 'Please specify the user that owns the database to be used by Koha [kohaadmin]' If <kohadatabaseuser> is not kohaadmin, then section 6 (Run the Web Installer, populate the database, initial configuration of settings) and 5.1.2 (Zebra Indexer) will fail. 3. Run the Koha installer ----- Warnings and one failed test - can they be ignored? $ perl Makefile.PL Warning: prerequisite Authen::CAS::Client 0.05 not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite DateTime 0.51 not found. We have 0.42. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Graphics::Magick not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Lingua::Stem::Snowball 0.952 not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Text::CSV::Encoded 0.09 not found. Writing Makefile for koha $ make test ... t/Record.......................NOK 1/1 # Failed test 'use C4::Record;' # at t/Record.t line 12. # Tried to use 'C4::Record'. # Error: Can't locate Text/CSV/Encoded.pm in @INC (@INC contains: /home/ville/koha-3.02.00-alpha2/blib/PERL_MODULE_DIR /home/ville/koha-3.02.00-alpha2/blib/arch /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/ville/koha-3.02.00-alpha2/blib/PERL_MODULE_DIR/C4/Record.pm line 37. # BEGIN failed--compilation aborted at /home/ville/koha-3.02.00-alpha2/blib/PERL_MODULE_DIR/C4/Record.pm line 37. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Looks like you failed 1 test of 1. t/Record.......................dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/Review.......................ok t/Scrubber.....................ok 1/10# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Serials......................ok t/Stats........................ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/Record.t 1 256 1 1 1 20 subtests skipped. Failed 1/26 test scripts. 1/474 subtests failed. Files=26, Tests=474, 4 wallclock secs ( 3.64 cusr + 0.39 csys = 4.03 CPU) Failed 1/26 test programs. 1/474 subtests failed. make: *** [test_dynamic] Virhe 255 5. Configure and start Zebra ----- ... 1.2 Zebra Indexer $ sudo -u ${KOHA_USER} misc/migration_tools/rebuild_zebra -z -b -a => rebuild_zebra.pl Regards, Ville Huhtala
Hi Ville, Welcome back. On Sun, May 16, 2010 at 11:33 AM, Ville Huhtala <vthuhtala@netscape.net> wrote:
1.6 Install Perl dependencies ----- PDF::API2::Simple installation using CPAN don't work. I got it working using debian package libmodule-install-perl, as discussed here: http://lists.katipo.co.nz/pipermail/koha/2010-March/023253.html
This probably needs to be updated in the INSTALL.debian-lenny file. In just a short while, however, there will be no need to cpan any of Koha's Perl dependencies as they will all be available via apt.
2.2 Create the Koha database ----- mysql> grant all on <kohadatabasename>.* to '<kohadatabaseuser>'@'localhost' identified by '<kohadatabaseuserpassword>';
Shouldn't <kohadatabaseuser> be kohaadmin? Is there a need for an another Koha mysql user?
Not necessarily. It would be a wise move from a security prospective to adopt your own username for <kohadatabaseuser>.
In section 3 (Run the Koha installer) one of questions is 'Please specify the user that owns the database to be used by Koha [kohaadmin]'
If <kohadatabaseuser> is not kohaadmin, then section 6 (Run the Web Installer, populate the database, initial configuration of settings) and 5.1.2 (Zebra Indexer) will fail.
I'm not sure why not. If you select a username other than 'kohaadmin' or a password other than 'katikoan' you will need to setup your Koha database username/password accordingly. If this is username/password match those entered in the Makefile.PL run, then the web installer will work correctly as well as Zebra. If you find it otherwise, please post the pertinent log entries.
3. Run the Koha installer ----- Warnings and one failed test - can they be ignored?
$ perl Makefile.PL Warning: prerequisite Authen::CAS::Client 0.05 not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite DateTime 0.51 not found. We have 0.42. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Graphics::Magick not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Lingua::Stem::Snowball 0.952 not found. [Sat May 15 23:32:13 2010] Makefile.PL: Warning: prerequisite Text::CSV::Encoded 0.09 not found. Writing Makefile for koha
As these warnings say, you are missing the named Perl dependencies with the exception of DateTime which needs to be updated to at least version 0.51. You should be able to get these via apt.
$ make test ... t/Record.......................NOK 1/1 # Failed test 'use C4::Record;' # at t/Record.t line 12. # Tried to use 'C4::Record'. # Error: Can't locate Text/CSV/Encoded.pm in @INC (@INC contains:
This test appears to have failed due to the missing Text::CSV::Encoded dependency mentioned in the Makefile.PL warnings above.
5. Configure and start Zebra ----- ...
1.2 Zebra Indexer
$ sudo -u ${KOHA_USER} misc/migration_tools/rebuild_zebra -z -b -a
I'm not sure what the question is here, but be sure to substitute the correct kohauser for ${KOHA_USER}. The option to set this appears during the run of Makefile.PL. If you choose the default, it is 'koha'. The path to the script may need to be corrected for you installation depending on which type of install you selected during the Makefile.PL run. You will also need to export the two env vars mentioned at the conclusion of the run of 'make': KOHA_CONF and PERL5LIB. Current practice is to set this script up as a cronjob to run every N minutes. You should 'su KOHA_USER' and setup the job there. You can add the env vars to the top of the crontab file. HTH Kind Regards, Chris
participants (2)
-
Chris Nighswonger -
Ville Huhtala