Hi, I'm getting numerous permissions and Perl version errors/failures when attempting to install Koha on my 1&1 Business Pro account. I've pasted some of the error messages below. Perhaps the permissions problems occur because I don't have root access? I'm very new to Linux. Does this look like something that can be fixed? Any suggestions will be appreciated. -John -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Running make install mkdir /usr/local/lib/perl/5.6.1: Permission denied at /usr/share/perl/5.6.1/ExtUtils/Install.pm line 81 make: *** [pure_site_install] Error 255 /usr/bin/make install -- NOT OK u8499398:~/library/koha > u8499398 cat: koha.version: No such file or directory -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Perl v5.8.0 required--this is only v5.6.1, stopped at Makefile.PL line 1. BEGIN failed--compilation aborted at Makefile.PL line 1. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Runn ing make test PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/batch.............# Failed test (t/batch.t at line 4) # Tried to use 'MARC::File::XML'. # Error: Can't locate MARC/Record.pm in @INC (@INC contains: blib/arch blib/lib /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at blib/lib/MARC/File/XML.pm line 7. # BEGIN failed--compilation aborted at blib/lib/MARC/File/XML.pm line 7. # Compilation failed in require at (eval 1) line 2. # Failed test (t/batch.t at line 5) # Tried to use 'MARC::Batch'. # Error: Can't locate MARC/Batch.pm in @INC (@INC contains: blib/arch blib/lib /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at (eval 3) line 2. Can't locate object method "new" via package "MARC::Batch" (perhaps you forgot to load "MARC::Batch"?) at t/batch.t line 7. # Looks like you planned 23 tests but only ran 2. # Looks like your test died just after 2. t/batch.............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-23 Failed 23/23 tests, 0.00% okay t/encode............Can't locate MARC/Record.pm in @INC (@INC contains: blib/arch blib/lib /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at blib/lib/MARC/File/XML.pm line 7. BEGIN failed--compilation aborted at blib/lib/MARC/File/XML.pm line 7. Compilation failed in require at t/encode.t line 4. BEGIN failed--compilation aborted at t/encode.t line 4. t/encode............dubious Test returned status 2 (wstat 512, 0x200) t/escape............NOK 1# Failed test (t/escape.t at line 7) # Tried to use 'MARC::File::XML'. # Error: Can't locate MARC/Record.pm in @INC (@INC contains: blib/arch blib/lib /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at blib/lib/MARC/File/XML.pm line 7. # BEGIN failed--compilation aborted at blib/lib/MARC/File/XML.pm line 7. # Compilation failed in require at (eval 1) line 2. Undefined subroutine &MARC::File::XML::escape called at t/escape.t line 9. # Looks like you planned 10 tests but only ran 1. # Looks like your test died just after 1. t/escape............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t/namespace.........Can't locate MARC/Batch.pm in @INC (@INC contains: blib/arch blib/lib /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at t/namespace.t line 4. BEGIN failed--compilation aborted at t/namespace.t line 4. t/namespace.........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------- t/batch.t 255 65280 23 23 100.00% 1-23 t/encode.t 2 512 ?? ?? % ?? t/escape.t 255 65280 10 10 100.00% 1-10 t/namespace.t 2 512 1 1 100.00% 1 Failed 4/4 test scripts, 0.00% okay. 34/34 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
"John Clarke" <uk@clarkent.com> wrote:
I'm getting numerous permissions and Perl version errors/failures when attempting to install Koha on my 1&1 Business Pro account. I've pasted some of the error messages below. Perhaps the permissions problems occur because I don't have root access? [...]
Yes. You absolutely cannot install to /usr/local on that system. You need to set the installation PREFIX to something under your home directory (but probably not under your web root directory). Probably mkdir $HOME/myperl export SITEPREFIX=$HOME/myperl would fix most of them, but the official answer for the CPAN shell is on "man CPAN" under "FAQ" question 5 in my copy: <blockquote> 5) I am not root, how can I install a module in a personal directory? You will most probably like something like this: o conf makepl_arg "LIB=~/myperl/lib \ INSTALLMAN1DIR=~/myperl/man/man1 \ INSTALLMAN3DIR=~/myperl/man/man3" install Sybase::Sybperl </blockquote> Hope that helps, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Somerset, England. Work/Laborejo: http://www.ttllp.co.uk/ IRC/Jabber/SIP: on request/peteble.
Thanks MJ, I made a directory $HOME/library/myperl and tried to run the o conf makpl_arg command like this: O koha.conf makepl_arg "LIB=~/library/mperl/lib INSTALLMAN1DIR=~/library/myperl/man/man1 INSTALLMAN3DIR=~/library/myperl/man/man3" Which opened up the text editor and did nothing until I pressed "q". I then just added the three param lines above to the koha.conf (guessing this was right?) and tried to run the first failed install again: Perl -MCPAN -e 'install "Mail::Sendmail"' It ran normally until it was time to send an e-mail. That failed and said "Permission denied at /usr/shar/perl/5.6.1/ExtUtils/Install.pm." Am I supposed to run the installer.pl from a particular directory? Do I have to set the installation PREFIX anywhere else? Any suggestions welcome. -John -----Original Message----- From: MJ Ray [mailto:mjr@phonecoop.coop] Sent: 25 January 2007 14:31 To: uk@clarkent.com; koha@lists.katipo.co.nz Subject: cRe: [Koha] Errors on Koha install on 1&1 server "John Clarke" <uk@clarkent.com> wrote:
I'm getting numerous permissions and Perl version errors/failures when attempting to install Koha on my 1&1 Business Pro account. I've pasted some of the error messages below. Perhaps the permissions problems occur because I don't have root access? [...]
Yes. You absolutely cannot install to /usr/local on that system. You need to set the installation PREFIX to something under your home directory (but probably not under your web root directory). Probably mkdir $HOME/myperl export SITEPREFIX=$HOME/myperl would fix most of them, but the official answer for the CPAN shell is on "man CPAN" under "FAQ" question 5 in my copy: <blockquote> 5) I am not root, how can I install a module in a personal directory? You will most probably like something like this: o conf makepl_arg "LIB=~/myperl/lib \ INSTALLMAN1DIR=~/myperl/man/man1 \ INSTALLMAN3DIR=~/myperl/man/man3" install Sybase::Sybperl </blockquote> Hope that helps, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Somerset, England. Work/Laborejo: http://www.ttllp.co.uk/ IRC/Jabber/SIP: on request/peteble.
participants (3)
-
John Clarke -
John Clarke -
MJ Ray