[Koha] Problem on the Installation of Perl Modules

Susan Mustafa susan.mustafa at gmail.com
Thu May 13 04:53:14 NZST 2010


hmmmm,

Really unsure about this? Just curios did you install the lamp server before
you did all these perl modules?

I think it is looking for a mysql path of some sort.


sudo apt-get install lamp-server^

I think thats the command to install the lamp server stack.

Regards,



On Wed, May 12, 2010 at 7:43 PM, <bariki.kamara at out.ac.tz> wrote:

> Hi Susan,
>
> Thanks for your support. I manage to install all the perl modules, except
> for the DBD::mysql module. When Am trying to install/force install, I came
> up with the following result:
>
> cpan[1]> force install DBD::mysql
> CPAN: Storable loaded ok (v2.18)
> Going to read /home/kohaadmin/.cpan/sources/authors/01mailrc.txt.gz
> CPAN: Compress::Zlib loaded ok (v2.015)
> CPAN: YAML loaded ok (v0.66)
> Going to read /home/kohaadmin/.cpan/build/
>
> ............................................................................DONE
> Found 38 old builds, restored the state of 38
>
> ............................................................................DONE
> Going to read
> /home/kohaadmin/.cpan/sources/modules/02packages.details.txt.gz
>  Database was generated on Wed, 12 May 2010 10:27:07 GMT
> CPAN: HTTP::Date loaded ok (v5.810)
> ...............
>  New CPAN.pm version (v1.9402) available.
>  [Currently running version is v1.9205]
>  You might want to try
>    install CPAN
>    reload cpan
>  to both upgrade CPAN.pm and run the new version without leaving
>  the current session.
>
> CPAN: Time::HiRes loaded ok (v1.9711)
>
> .............................................................DONE
> Going to read /home/kohaadmin/.cpan/sources/modules/03modlist.data.gz
>
> ............................................................................DONE
> Going to write /home/kohaadmin/.cpan/Metadata
> Running install for module 'DBD::mysql'
> Running make for C/CA/CAPTTOFU/DBD-mysql-4.014.tar.gz
> CPAN: Digest::SHA loaded ok (v5.45)
> Checksum for
>
> /home/kohaadmin/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.014.tar.gz
> ok
> Scanning cache /home/kohaadmin/.cpan/build for sizes
>
> ............................................................................DONE
> DBD-mysql-4.014/
> DBD-mysql-4.014/ChangeLog
> DBD-mysql-4.014/constants.h
> DBD-mysql-4.014/dbdimp.c
> DBD-mysql-4.014/dbdimp.h
> DBD-mysql-4.014/eg/
> DBD-mysql-4.014/eg/bug14979.pl
> DBD-mysql-4.014/eg/bug21028.pl
> DBD-mysql-4.014/eg/bug30033.pl
> DBD-mysql-4.014/eg/bug30033pg.pl
> DBD-mysql-4.014/eg/decimal_test.pl
> DBD-mysql-4.014/eg/issue21946.pl
> DBD-mysql-4.014/eg/prepare_memory_usage.pl
> DBD-mysql-4.014/eg/proc_example1.pl
> DBD-mysql-4.014/eg/proc_example2.pl
> DBD-mysql-4.014/eg/proc_example2a.pl
> DBD-mysql-4.014/eg/proc_example2b.pl
> DBD-mysql-4.014/eg/proc_example3.pl
> DBD-mysql-4.014/eg/proc_example4.pl
> DBD-mysql-4.014/INSTALL.html
> DBD-mysql-4.014/lib/
> DBD-mysql-4.014/lib/Bundle/
> DBD-mysql-4.014/lib/Bundle/DBD/
> DBD-mysql-4.014/lib/Bundle/DBD/mysql.pm
> DBD-mysql-4.014/lib/DBD/
> DBD-mysql-4.014/lib/DBD/mysql/
> DBD-mysql-4.014/lib/DBD/mysql/GetInfo.pm
> DBD-mysql-4.014/lib/DBD/mysql/INSTALL.pod
> DBD-mysql-4.014/lib/DBD/mysql.pm
> DBD-mysql-4.014/Makefile.PL
> DBD-mysql-4.014/Makefile.PL.embedded
> DBD-mysql-4.014/MANIFEST
> DBD-mysql-4.014/MANIFEST.SKIP
> DBD-mysql-4.014/META.yml
> DBD-mysql-4.014/myld
> DBD-mysql-4.014/mysql.xs
> DBD-mysql-4.014/README
> DBD-mysql-4.014/t/
> DBD-mysql-4.014/t/00base.t
> DBD-mysql-4.014/t/10connect.t
> DBD-mysql-4.014/t/20createdrop.t
> DBD-mysql-4.014/t/25lockunlock.t
> DBD-mysql-4.014/t/29warnings.t
> DBD-mysql-4.014/t/30insertfetch.t
> DBD-mysql-4.014/t/31insertid.t
> DBD-mysql-4.014/t/32insert_error.t
> DBD-mysql-4.014/t/35limit.t
> DBD-mysql-4.014/t/35prepare.t
> DBD-mysql-4.014/t/40bindparam.t
> DBD-mysql-4.014/t/40bindparam2.t
> DBD-mysql-4.014/t/40blobs.t
> DBD-mysql-4.014/t/40catalog.t
> DBD-mysql-4.014/t/40keyinfo.t
> DBD-mysql-4.014/t/40listfields.t
> DBD-mysql-4.014/t/40nulls.t
> DBD-mysql-4.014/t/40nulls_prepare.t
> DBD-mysql-4.014/t/40numrows.t
> DBD-mysql-4.014/t/40server_prepare.t
> DBD-mysql-4.014/t/40server_prepare_error.t
> DBD-mysql-4.014/t/40types.t
> DBD-mysql-4.014/t/41bindparam.t
> DBD-mysql-4.014/t/41blobs_prepare.t
> DBD-mysql-4.014/t/42bindparam.t
> DBD-mysql-4.014/t/50chopblanks.t
> DBD-mysql-4.014/t/50commit.t
> DBD-mysql-4.014/t/51bind_type_guessing.t
> DBD-mysql-4.014/t/52comment.t
> DBD-mysql-4.014/t/55utf8.t
> DBD-mysql-4.014/t/60leaks.t
> DBD-mysql-4.014/t/65types.t
> DBD-mysql-4.014/t/70takeimp.t
> DBD-mysql-4.014/t/71impdata.t
> DBD-mysql-4.014/t/75supported_sql.t
> DBD-mysql-4.014/t/76multi_statement.t
> DBD-mysql-4.014/t/80procs.t
> DBD-mysql-4.014/t/85init_command.t
> DBD-mysql-4.014/t/lib.pl
> DBD-mysql-4.014/t/mem_leak.pl
> DBD-mysql-4.014/t/mysql.dbtest
> DBD-mysql-4.014/t/mysql.mtest
> DBD-mysql-4.014/TODO
> CPAN: File::Temp loaded ok (v0.18)
>
>   CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.014.tar.gz
>
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 82.
>
> Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
> not contain the path to mysql_config. Resorting to guessed values!
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
>
>
> PLEASE NOTE:
>
> For 'make test' to run properly, you must ensure that the
> database user 'root' can connect to your MySQL server
> and has the proper privileges that these tests require such
> as 'drop table', 'create table', 'drop procedure', 'create procedure'
> as well as others.
>
> mysql> grant all privileges on test.* to 'root'@'localhost' identified by
> 's3kr1t';
>
> You can also optionally set the user to run 'make test' with:
>
> perl Makefile.PL --testuser=username
>
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Can't exec "mysql_config": No such file or directory at Makefile.PL line
> 464.
> Can't find mysql_config. Use --mysql_config option to specify where
> mysql_config is located
> Failed to determine directory of mysql.h. Use
>
>  perl Makefile.PL --cflags=-I<dir>
>
> to set this directory. For details see the INSTALL.html file,
> section "C Compiler flags" or type
>
>  perl Makefile.PL --help
> Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
>  CAPTTOFU/DBD-mysql-4.014.tar.gz
>  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
> Running make test
>  Make had some problems, won't test
> Running make install
>  Make had some problems, won't install
> Failed during this command:
>  CAPTTOFU/DBD-mysql-4.014.tar.gz              : writemakefile NO
> '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512
>
> Can I carry on with the installation while DBD::mysql is missing? Hope you
> can help on this.
>
> Best Regards,
> Bariki G. Kamara
>
>
>
>
>
> > Delete any Net-Zoom directories found under build
> >
> > sudo rm -r /home/kohaadmin/.cpan/build/Net-Z*
> >
> > Remove the MetaData file
> >
> > sudo rm /home/kohaadmin/.cpan/Metadata
> >
> > then try re-installing
> >
> > sudo cpan
> > cpan> install Net::Z3950::ZOOM
> >
> >
> > And print out any errors it might give you.
> >
> >
> >
> >
> > On Wed, May 12, 2010 at 12:18 PM, <bariki.kamara at out.ac.tz> wrote:
> >
> >> >> On Tue, May 11, 2010 at 10:48 AM, <bariki.kamara at out.ac.tz> wrote:
> >> >>
> >> >>> Hi,
> >> >>>
> >> >>> I'm trying to install the following perl modules below on the Ubuntu
> >> >>> v9.04(Server Edition) but I'm facing with the following problem,
> >> >>>
> >> >>>
> >> >>> cpan[8]> install Net::Z3950::ZOOM
> >> >>> Running install for module 'Net::Z3950::ZOOM'
> >> >>> Running make for M/MI/MIRK/Net-Z3950-ZOOM-1.25.tar.gz
> >> >>>  Has already been unwrapped into directory
> >> >>> /home/kohaadmin/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW
> >> >>>  '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512,
> >> >>> won't
> >> >>> make
> >> >>> Running make test
> >> >>>  Make had some problems, won't test
> >> >>> Running make install
> >> >>>  Make had some problems, won't install
> >> >>>
> >> >>
> >> >> Try changing to
> >> /home/kohaadmin/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW
> >> >> and
> >> >> doing:
> >> >>
> >> >> sudo make clean
> >> >> sudo perl Makefile.PL
> >> >> sudo make
> >> >> sudo make test
> >> >>
> >> >> and see what exactly is failing.
> >> >>
> >> >> You can do a similar thing for each module that failed to install.
> >> >>
> >> >> Kind Regards,
> >> >> Chris
> >> >>
> >> > Hi Chris,
> >> >
> >> > Thanks for the effort, Am trying to change to that directory but Am
> >> > getting the following result
> >> >
> >> > kohaadmin at library:~$ cd
> >> > /home/kohaadmin/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW
> >> > -bash: cd: /home/kohaadmin/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW:
> >> > Permission denied
> >> >
> >> > even if Am login as root user(sudo) Am getting the same result. Can
> >> you
> >> > assist on that.
> >> >
> >> > Regards,
> >> > Bariki G. Kamara
> >> >
> >> Hi Chris,
> >>
> >> I succeed changing to the directory
> >> /home/kohaadmin/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW by running the
> >> command sudo chmod, so when Am trying to do as you directed me, running
> >> the command sudo make clean, Am getting the following result below
> >>
> >> kohaadmin at library:~/.cpan/build/Net-Z3950-ZOOM-1.25-UME4CW$ sudo make
> >> clean
> >> make: *** No rule to make target `clean'.  Stop.
> >>
> >> Can you assist on that.
> >>
> >> Regards,
> >> Bariki G. Kamara
> >>
> >>
> >> ---------------------- CONFIDENTIALITY NOTICE
> >> --------------------------------
> >>
> >> PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS E-MAIL
> >>
> >> This email is intended only for the person to whom it is addressed and
> >> may
> >> contain confidential information and may be legally privileged. If you
> >> are
> >> not the intended recipient, you are notified that you may not use,
> >> distribute or copy this document in any manner whatsoever. Kindly also
> >> notify the sender by email and/or delete this e-mail. Any views or
> >> opinions
> >> expressed in this e-mail are those of the sender and do not necessarily
> >> coincide with those of the Open University of Tanzania.
> >>
> >> --------------------THE OPEN UNIVERSITY OF
> >> TANZANIA--------------------------
> >>
> >> _______________________________________________
> >> Koha mailing list
> >> Koha at lists.katipo.co.nz
> >> http://lists.katipo.co.nz/mailman/listinfo/koha
> >>
> >
>
>
>
> ---------------------- CONFIDENTIALITY NOTICE
> --------------------------------
>
> PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS E-MAIL
>
> This email is intended only for the person to whom it is addressed and may
> contain confidential information and may be legally privileged. If you are
> not the intended recipient, you are notified that you may not use,
> distribute or copy this document in any manner whatsoever. Kindly also
> notify the sender by email and/or delete this e-mail. Any views or opinions
> expressed in this e-mail are those of the sender and do not necessarily
> coincide with those of the Open University of Tanzania.
>
> --------------------THE OPEN UNIVERSITY OF
> TANZANIA--------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20100512/9178752c/attachment-0001.htm 


More information about the Koha mailing list