Hi Dear List Members, I've installed Koha elsewhere several times, so I thought I had more or less worked this thing out. Wrong Bo, wrong again :-) I'm trying to do a Koha 2.2.9 installation on Ubuntu Feisty Fawn on a new high-end server box and get stuck during the installation routine due to missing Perl modules. Here is the dialog: ************************************************* PERL MODULES Checking perl modules ... Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 356, <STDIN> line 1. (Did you mean &record instead?) Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 358, <STDIN> line 1. (Did you mean &record instead?) "my" variable $data masks earlier declaration in same scope at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 369, <STDIN> line 1. Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 380, <STDIN> line 1. (Did you mean &record instead?) Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 383, <STDIN> line 1. (Did you mean &record instead?) MISSING PERL MODULES You are missing some Perl modules required by Koha. Please run this again after installing them. They may be installed by finding packages from your operating system supplier, or running (as root) the following commands: perl -MCPAN -e 'install "MARC::File::XML"' perl -MCPAN -e 'install "You will need Net::LDAP if you want to authentify patrons through a LDAP"' ************************************************************** OK, no problem. However when I try to install MARC::File::XM it comes back saying : MARC::File::XML is up to date... Huh??? Yeah so it is... so why is Koha reporting an error??? Also the Net::LDAP installtion fails: Searching krb5-config command... not found! at Makefile.PL line 94. HAAAAILP....please...I'm stuck. Bo
Bo Schafers wrote:
I've installed Koha elsewhere several times, so I thought I had more or less worked this thing out.
The Koha community is anticipating the day that the Koha installation package has all the Perl packages bundled in with the Koha source code. We live in hope!
Checking perl modules ... Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 356, <STDIN> line
When the above happens while installer.pl is running, my guess is the the installer sees an error and blandly (blindly!) assumes then that the module (MARC:File::XML) is not installed. I see this sort of behaviour from time to time. Since there is no definitive set of Perl modules for Koha, as versions of things change on CPAN, things start breaking in unexpected places. A "definitive set" of modules is a specified set of modules with specific version numbers, all known to work together as one compatible whole. This is not a trivial task, as things can and do change rapidly on CPAN. AFAIK, their is no complete "integration testing" done on CPAN with various sets of modules.
Also the Net::LDAP installtion fails: Searching krb5-config command... not found! at Makefile.PL line 94.
HAAAAILP....please...I'm stuck.
Next step is to see why your version of this module is broken. Try this: perl -MMARC::File::XML -e 'print "hello\n"' and let us see the output. I think the solution might lie in which version of the module you are using. You can find that out as follows: grep VERSION `perldoc -l MARC::File::XML` On my working install I see it is version 0.85. use vars qw( $VERSION %_load_args ); $VERSION = '0.85'; You can always visit the CPAN web site and forcibly install that version. Good luck! cheers rickw -- _________________________________ Rick Welykochy || Praxis Services Q: What's the difference between a software sales person and a car sales person? A: With a car sales person there is a slight chance that he actually knows how to drive.
Hi Rick I have the same problems as Bo trying to install Koha on Debian 4.0 following the instructions by Joshua on http://www.kohadocs.org/Installing_Koha_on_Debian_sarge.html Rick Welykochy schrieb:
The Koha community is anticipating the day that the Koha installation package has all the Perl packages bundled in with the Koha source code. We live in hope!
Checking perl modules ... Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 356, <STDIN> line
When the above happens while installer.pl is running, my guess is the the installer sees an error and blandly (blindly!) assumes then that the module (MARC:File::XML) is not installed.
I see this sort of behaviour from time to time. Since there is no definitive set of Perl modules for Koha, as versions of things change on CPAN, things start breaking in unexpected places.
A "definitive set" of modules is a specified set of modules with specific version numbers, all known to work together as one compatible whole. This is not a trivial task, as things can and do change rapidly on CPAN. AFAIK, their is no complete "integration testing" done on CPAN with various sets of modules.
Also the Net::LDAP installtion fails: Searching krb5-config command... not found! at Makefile.PL line 94.
HAAAAILP....please...I'm stuck.
Next step is to see why your version of this module is broken. Try this:
perl -MMARC::File::XML -e 'print "hello\n"'
and let us see the output.
verwaltung:~/koha-2.2.9# perl -MMARC::File::XML -e 'print "hello\n"' Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 356. (Did you mean &record instead?) Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 358. (Did you mean &record instead?) "my" variable $data masks earlier declaration in same scope at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 369. Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 380. (Did you mean &record instead?) Variable "$record" is not imported at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 383. (Did you mean &record instead?) syntax error at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 327, near ") ~" Global symbol "$without_header" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 343. Global symbol "$enc" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 344. Global symbol "$record" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 356. Global symbol "$record" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 358. Global symbol "$_transcode" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 363. Global symbol "$_transcode" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 371. Global symbol "$_transcode" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 378. Global symbol "$original_charset" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 379. Global symbol "$record" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 380. Global symbol "$original_charset" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 380. Global symbol "$ldr" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 382. Global symbol "$original_encoding" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 382. Global symbol "$record" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 383. Global symbol "$ldr" requires explicit package name at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 383. syntax error at /usr/local/share/perl/5.8.8/MARC/File/XML.pm line 387, near "}" /usr/local/share/perl/5.8.8/MARC/File/XML.pm has too many errors. Compilation failed in require. BEGIN failed--compilation aborted.
I think the solution might lie in which version of the module you are using. You can find that out as follows:
grep VERSION `perldoc -l MARC::File::XML`
I get: use vars qw( $VERSION %_load_args ); $VERSION = '0.87';
On my working install I see it is version 0.85.
use vars qw( $VERSION %_load_args ); $VERSION = '0.85';
You can always visit the CPAN web site and forcibly install that version.
How? Thanks Beda
"Beda Szukics" <beda@muri-gries.ch> wrote:
Rick Welykochy schrieb:
grep VERSION `perldoc -l MARC::File::XML`
I get: use vars qw( $VERSION %_load_args ); $VERSION = '0.87';
As a quick fix, try installing 0.86 from http://serene.ttllp.co.uk/~mjr/libmarc-xml-perl_0.86-1_all.deb (Other debs required for koha 2.2.9 on debian 4.0 are in the same web directory, or linked from the top of the page - these packages are usable (I use them, at least) but not fit for release yet. Anyone willing to pay the GBP 150 needed to finish them sooner?) Regards, -- 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/
MJ Ray schrieb:
As a quick fix, try installing 0.86 from http://serene.ttllp.co.uk/~mjr/libmarc-xml-perl_0.86-1_all.deb
I downloaded this, installed it with dpkg -i libmarc... but the installer has still the same errors. It still says: verwaltung:~# grep VERSION `perldoc -l MARC::File::XML` use vars qw( $VERSION %_load_args ); $VERSION = '0.87'; How do I uninstall version 0.87? I'm not very familiar with perl and CPAN :-( Thank you for your quick help Beda
"Beda Szukics" <beda@muri-gries.ch> wrote:
How do I uninstall version 0.87? I'm not very familiar with perl and CPAN :-(
Ooh, ow. I'm not sure. As root, try: cd $HOME/.cpan/build/MARC-XML-0.87/ make uninstall You might need to reinstall the 0.86 deb afterwards. I've just noticed that CPAN thinks Joshua Ferraro is the author of MARC-XML-0.87 - maybe he will correct me about how to uninstall it if I'm wrong... ;-)
MJ Ray a écrit :
"Beda Szukics" <beda@muri-gries.ch> wrote:
How do I uninstall version 0.87? I'm not very familiar with perl and CPAN :-(
Ooh, ow. I'm not sure. As root, try: cd $HOME/.cpan/build/MARC-XML-0.87/ make uninstall
You might need to reinstall the 0.86 deb afterwards.
I've just noticed that CPAN thinks Joshua Ferraro is the author of MARC-XML-0.87 - maybe he will correct me about how to uninstall it if I'm wrong... ;-)
Let me add : found on CPAN : http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules You can have this perl script and then use it for any perl module. Hopes that helps. -- Henri-Damien LAURENT
MJ Ray schrieb:
"Beda Szukics" <beda@muri-gries.ch> wrote:
How do I uninstall version 0.87? I'm not very familiar with perl and CPAN :-(
Ooh, ow. I'm not sure. As root, try: cd $HOME/.cpan/build/MARC-XML-0.87/ make uninstall
It's not there! verwaltung:/usr/share# ls $HOME/.cpan/build Authen-SASL-2.10 Digest-SHA1-2.11 PDF-Reuse-Barcode-0.05 Barcode-Code128-2.01 GSSAPI-0.24 perl-ldap-0.34 Convert-ASN1-0.21 IO-Socket-SSL-1.09 XML-Filter-BufferText-1.01 Digest-HMAC-1.01 PDF-Reuse-0.33 XML-SAX-Writer-0.50 I wonder what I did to make this mess ... However I noticed that MARC::File is present at two places: verwaltung:/usr/local# find -name "*MARC::File*" ./share/man/man3/MARC::File.3pm ./share/man/man3/MARC::File::Encode.3pm ./share/man/man3/MARC::File::USMARC.3pm ./share/man/man3/MARC::File::MicroLIF.3pm ./share/man/man3/MARC::File::XML.3pm verwaltung:/usr/local# cd /usr/share/ verwaltung:/usr/share# find -name "*MARC::File*" ./man/man3/MARC::File::XML.3pm.gz ./man/man3/MARC::File::USMARC.3pm.gz ./man/man3/MARC::File.3pm.gz ./man/man3/MARC::File::MicroLIF.3pm.gz and /usr/share/perl5/MARC <-> /usr/local/share/perl/5.8.8/MARC and /usr/local/lib/perl/5.8.8/auto/MARC Could it be that the /usr/local-Version is the first one to be found and that may be 0.87? Thank you for your patience Beda
"Beda Szukics" <beda@muri-gries.ch> wrote:
MJ Ray schrieb:
"Beda Szukics" <beda@muri-gries.ch> wrote:
How do I uninstall version 0.87? I'm not very familiar with perl and CPAN :-(
Ooh, ow. I'm not sure. As root, try: cd $HOME/.cpan/build/MARC-XML-0.87/ make uninstall
It's not there! [...] I wonder what I did to make this mess ...
Ow. Probably the CPAN shell has auto-removed it for you. Either try the suggest previously posted, or try the command /usr/bin/perl "-MExtUtils::Command::MM" -e uninstall /usr/local/lib/perl/5.8.8/auto/MARC-XML/.packlist
Could it be that the /usr/local-Version is the first one to be found and that may be 0.87?
Yes, that seems quite likely. perl -V lists /usr/local first. 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/
MJ Ray schrieb:
Ooh, ow. I'm not sure. As root, try: cd $HOME/.cpan/build/MARC-XML-0.87/ make uninstall
It's not there! [...] I wonder what I did to make this mess ...
Ow. Probably the CPAN shell has auto-removed it for you.
Either try the suggest previously posted, or try the command /usr/bin/perl "-MExtUtils::Command::MM" -e uninstall /usr/local/lib/perl/5.8.8/auto/MARC-XML/.packlist
That gave: Uninstall is unsafe and deprecated, the uninstallation was not performed. We will show what would have been done. unlink /usr/local/bin/marc2xml unlink /usr/local/bin/xml2marc unlink /usr/local/man/man1/marc2xml.1p unlink /usr/local/man/man1/xml2marc.1p unlink /usr/local/man/man3/MARC::File::XML.3pm unlink /usr/local/share/perl/5.8.8/MARC/File/SAX.pm unlink /usr/local/share/perl/5.8.8/MARC/File/XML.pm unlink /usr/local/lib/perl/5.8.8/auto/MARC-XML/.packlist Uninstall is unsafe and deprecated, the uninstallation was not performed. Please check the list above carefully, there may be errors. Remove the appropriate files manually. Sorry for the inconvenience. So I removed all the files mentioned above an now I have: verwaltung:~# grep VERSION `perldoc -l MARC::File::XML` use vars qw( $VERSION %_load_args ); $VERSION = '0.86'; That's a good step ahead :-))) The installer doesn't tell no errors anymore and thinks all the required modules are installed. I'll go further ... Thank you for your help Beda
Beda Szukics wrote:
You can always visit the CPAN web site and forcibly install that version.
How?
1. http://search.cpan.org/~kados/MARC-XML-0.87/ 2. select version 0.85 3. Download and README. cheers rickw -- _________________________________ Rick Welykochy || Praxis Services Once a new technology starts rolling, if you're not part of the steamroller, you're part of the road. -- Stewart Brand
Rick Welykochy schrieb:
You can always visit the CPAN web site and forcibly install that version.
How?
1. http://search.cpan.org/~kados/MARC-XML-0.87/
2. select version 0.85
3. Download and README.
Thank you. I'll consider that next time. Greetings Beda
participants (5)
-
Beda Szukics -
Bo Schafers -
Henri-Damien LAURENT -
MJ Ray -
Rick Welykochy