Hi all: Just a doubt: where is supposed to point PERL5LIB, perl libraries directory, that is: /usr/(local/)?share/perl/5.8.8 Or /usr/(local/)?share/perl/5.8.8/koha Or Koha directory (in this case where is located?) My question comes because I'm not sure if there is any difference between perl standard path for perl libraries and koha perl one, seems in my debian perl installation all koha .pm files are installed below /usr/local/share/perl/5.8.8 The indications that led me to confusion are at: http://wiki.koha.org/doku.php?id=22_to_30&s=perl5lib Hope being helped!, Greetings, Ignacio
"Ignacio Javier" <ignacio.gomez@coremain.com> wrote:
Just a doubt: where is supposed to point PERL5LIB, perl libraries directory, that is:
If you install koha into one of the default (File Hierarchy Standard) locations, with no PREFIX, no INST_... variables set, then you should not need to set PERL5LIB for koha-3.00. This should make it more convenient to run the admin command-line scripts, too. [...]
The indications that led me to confusion are at: http://wiki.koha.org/doku.php?id=22_to_30&s=perl5lib
That seems to be written by people who install koha into a non-FHS location, as well as using the CPAN shell instead of debian packages. Maybe heupink and tipaul can explain why they do that and/or edit the page to mention those oddities. Best wishes, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
On Thu, Nov 29, 2007 at 01:32:25PM +0100, Ignacio Javier wrote:
Just a doubt: where is supposed to point PERL5LIB, perl libraries directory,
PERL5LIB adds directories to the @INC array of paths to look for perl modules. You can find out what @INC contains on your system with: perl -e 'print join("\n", @INC, "")' If Koha is not installed in one of those paths on your system, you will need to find out where it is installed, and add it to the PERL5LIB environment variable. It is likely PERL5LIB will be different from distribution to distribution and operating system to operating system, so there is not one set answer. -kolibrie
I finally ran all installation instructions (*), and stalled (**) myself at the frontier of the unsuccessfulness: 0. export DB_PASS=thePasswordYouChose :: OK 1. perl Makefile.PL :: OK 2. make :: OK 3. sudo make install :: OK 4. ln -s /usr/share/koha/etc/koha-httpd.conf /etc/apache2/sites-available/koha :: OK 5. a2enmod enable rewrite :: OK 6. a2ensite koha && /etc/init.d/apache2 reload :: OK, but was additionally needed to add to apache.conf a Listen 8080 directive 7. zebrasrv -c /usr/share/koha/etc/koha-conf.xml :: OK (*) ------------------------
Start of Problematic<<
8. Browse to http://servername:8080/ and answer the questions Fails twice: 1:: ** FAILED BUT SOLVED **, was a ZOOM module not found (perhaps should be detected in Makefile.PL). This requires libyaz-dev (debian standard distro) **NOT libyaz2** .I uninstalled previously installed libyaz2 from: http://www-id.imag.fr/Laboratoire/Membres/Danjean_Vincent/deb.html, ....which seems incompatible with libyaz and so with zebra. ...and when solved: 2:: ** FAILS AND REMAIN UNSOLVED **: with this raw CGI::Carp output of the failure: Can't call method "selectrow_array" on unblessed reference at /usr/local/share/perl/5.8.8/C4/Context.pm line 426. Compilation failed in require at /usr/local/share/perl/5.8.8/C4/Biblio.pm line 30. BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/C4/Biblio.pm line 30. Compilation failed in require at /usr/local/share/perl/5.8.8/C4/Reserves.pm line 29. BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/C4/Reserves.pm line 29. Compilation failed in require at /usr/local/share/perl/5.8.8/C4/Members.pm line 29. BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/C4/Members.pm line 29. Compilation failed in require at /usr/local/share/perl/5.8.8/C4/Auth.pm line 31. BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/C4/Auth.pm line 31. Compilation failed in require at /usr/local/lib/cgi-bin/koha/mainpage.pl line 24. BEGIN failed--compilation aborted at /usr/local/lib/cgi-bin/koha/mainpage.pl line 24. Seems lack of object existence, lack of a $dbh, me again in the "nerd, deep and obscure paths of unconsciousness"... ** Is there something that must be done in addition of steps 1. to 8. in the README.txt ok koha 3.00.00.030? Thanks and Greetings! Ignacio ------------------------- (*) have to mention I replaced everything involving configuration with /usr/share by /usr/local/share, OK. (**) More or less like a repetitive "...is So Heavy", hopefully before "Here comes the sun": wikipedia::Abbey_Road_(album)#.22I_Want_You_.28She.27s_So_Heavy.29.22
On Thu, 2007-11-29 at 18:46 +0100, Ignacio Javier wrote:
I finally ran all installation instructions (*), and stalled (**) myself at the frontier of the unsuccessfulness:
[snip]
------------------------
Start of Problematic<<
8. Browse to http://servername:8080/ and answer the questions
Fails twice:
[snip]
2:: ** FAILS AND REMAIN UNSOLVED **: with this raw CGI::Carp output of the failure:
Can't call method "selectrow_array" on unblessed reference at /usr/local/share/perl/5.8.8/C4/Context.pm line 426. Compilation failed in require at /usr/local/share/perl/5.8.8/C4/Biblio.pm line 30.
[snip]
Thanks and Greetings!
Ignacio
I've installed Koha 3 to a location other than default. As I recall this error was caused by the database config in koha_conf.xml not being right. I suggest checking that.
Ignacio Javier wrote:
8. Browse to http://servername:8080/ and answer the questions
Fails twice:
1:: ** FAILED BUT SOLVED **, was a ZOOM module not found (perhaps should be detected in Makefile.PL). This requires libyaz-dev (debian standard distro) **NOT libyaz2** .I uninstalled previously installed libyaz2 from: http://www-id.imag.fr/Laboratoire/Membres/Danjean_Vincent/deb.html, ....which seems incompatible with libyaz and so with zebra.
Where do you find libyaz-dev ? Which version ? Debian oldstable had a libyaz, but stable, testing and unstable have only libyaz2. Can you give me the output of "apt-cache policy libyaz libyaz2" ? If, as I suspect, you installed a more recent version from upstream yaz, I hope the debian package will be upgraded soon (a few weeks). I'm currently trying to reach the actual maintainer and to take its package if he does not answer. I will make another post about Debian and Koha Regards, Vincent -- Vincent Danjean GPG key ID 0x9D025E87 vdanjean@debian.org GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87 Unofficial pacakges: http://www-id.imag.fr/~danjean/deb.html#package APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main
-----Mensaje original----- De: Vincent Danjean [mailto:Vincent.Danjean@ens-lyon.org]
Where do you find libyaz-dev ? Wich version ?
After updating /etc/apt/sources.list with indexdata.dk, something like: $ apt-get update $ apt-get upgrade $ apt-get install id-zebra $ cpan # install ZOOM (ERROR) # quit $ apt-get install libyaz-dev $ cpan # install ZOOM # quit (OK)
Debian oldstable had a libyaz, but stable, testing and unstable have only libyaz2.
My doubt goes on the correct way of doing mysql, and zebra indexing engine initialisation. I remember myself having read in documentation that default installation is in zebra mode, but I perceived no zebra activity and no mysql activity during installation. I can be able to predict that everything of this is done through HTML interface, but I have no HTML interface, because of an error obtaining the "database handle" (should be blessed, and seems should connect mysql to be blessed).
Can you give me the output of "apt-cache policy libyaz libyaz2" ?
libyaz: Instalados: 2.1.56-1 Candidato: 2.1.56-1 Tabla de versión: *** 2.1.56-1 0 500 http://ftp.indexdata.dk sarge/main Packages 100 /var/lib/dpkg/status 2.1.54-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.52-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.50-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.48-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.46-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.44-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.42-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.40-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.38-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.36-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.34-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.32-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.30-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.28-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.26-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.24-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.22-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.20-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.18-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.16-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.14-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.12-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.10-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.8-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.6-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.4-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.2-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.1.0-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.34-2 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.34-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.32-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.30-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.28-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.26-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.25-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.24-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.23-3 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.23-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.22-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.21-1 0 500 http://ftp.indexdata.dk sarge/main Packages 2.0.20-1 0 500 http://ftp.indexdata.dk sarge/main Packages libyaz2: Instalados: (ninguno) Candidato: 2.1.18-2 Tabla de versión: 2.1.48+debian.1-0.2 0 100 /var/lib/dpkg/status 2.1.18-2 0 500 http://ftp.rediris.es etch/main Packages
participants (5)
-
Ignacio Javier -
Michael Hafen -
MJ Ray -
Nathan Gray -
Vincent Danjean