[Koha] koha-3.02.00-alpha2 - Debian Lenny installation, a few problems/questions

Chris Nighswonger cnighswonger at foundations.edu
Mon May 17 07:12:19 NZST 2010


Hi Ville,

Welcome back.

On Sun, May 16, 2010 at 11:33 AM, Ville Huhtala <vthuhtala at 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


More information about the Koha mailing list