Bünzli Daniel <daniel.buenzli@erratique.ch> wrote:
Works here on osx 10.5.1. Using MAMP (http://www.mamp.info) and a mixture of macports and direct install via CPAN.
uname -a returns "Darwin hostname 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386" and it's running a mixture of fink and CPAN install. I think it's an earlier 10.x. What's the uname for 10.5.1?
Le 11 janv. 08 à 00:49, MJ Ray a écrit :
1. MARC::File::XML won't install under sudo perl -MCPAN. The make test step fails. Running as root works. Not sure why this is and I've no plans to debug it further. This had me mystified for far too long.
What kind of probems do you get ?
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/batch........ # Failed test 'use MARC::File::XML;' # at t/batch.t line 4. # Tried to use 'MARC::File::XML'. # Error: Unable to provide required features # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/batch.t line 4. t/batch........NOK 1/23 t/batch........ok 2/23 Can't call method "parse_string" on unblessed reference at /Users/admin/.cpan/build/MARC-XML-0.88/blib/lib/MARC/File/XML.pm line 448. # Looks like you planned 23 tests but only ran 3. # Looks like you failed 1 test of 3 run. # Looks like your test died just after 3. t/batch........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1, 4-23 Failed 21/23 tests, 8.70% okay [...] Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/batch.t 255 65280 23 41 1 4-23 t/encode.t 2 512 ?? ?? ?? t/escape.t 7 1792 10 7 1-4 8-10 t/namespace.t 255 65280 1 2 1 t/subfield0.t 255 65280 1 2 1 Failed 5/5 test scripts. 30/35 subtests failed. Files=5, Tests=35, 1 wallclock secs ( 0.42 cusr + 0.10 csys = 0.52 CPU) Failed 5/5 test programs. 30/35 subtests failed. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
sudo perl -MCPAN -e 'install MARC::File::XML' worked for me.
That's the same command I used. [...]
Tell me if there are things I can make to help you track theses issues.
Thanks for any help, -- 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/