A Little Help with Perl/CPAN
I'm brand new with Koha and am having trouble with Perl/CPAN; attempting installation of Business::ISBN (among others, frankly I am no fan of Perl) Executing with cpan install Business::ISBN results in Reading '/root/.cpan/Metadata' Database was generated on Sat, 02 Mar 2013 11:41:03 GMT Running install for module 'Business::ISBN' Running make for B/BD/BDFOY/Business-ISBN-2.05.tar.gz Checksum for /root/.cpan/sources/authors/id/B/BD/BDFOY/Business-ISBN-2.05.tar.gz ok CPAN.pm: Building B/BD/BDFOY/Business-ISBN-2.05.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Business::ISBN Writing MYMETA.yml and MYMETA.json cp lib/ISBN10.pm blib/lib/Business/ISBN10.pm cp lib/ISBN13.pm blib/lib/Business/ISBN13.pm cp lib/ISBN.pm blib/lib/Business/ISBN.pm Manifying blib/man3/ISBN10.3 Manifying blib/man3/ISBN13.3 Manifying blib/man3/ISBN.3 BDFOY/Business-ISBN-2.05.tar.gz /usr/bin/make -- OK Running make test /usr/bin/perl5.16.1 "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib/lib', 'blib/arch', )" t/load.t ................. ok t/pod.t .................. ok t/pod_coverage.t ......... ok t/constants.t ............ defined(%hash) is deprecated at t/constants.t line 9. (Maybe you should just omit the defined()?) t/constants.t ............ ok t/interface.t ............ ok t/albania.t .............. ok t/isbn10.t ............... 1/? # Failed test 'Bad group code [9997022576] is invalid' # at t/isbn10.t line 101. # got: '-1' # expected: '-2' # # Checking ISBNs... (this may take a bit) t/isbn10.t ............... 38/? # # Checking bad ISBNs... (this should be fast) # Looks like you failed 1 test of 39. t/isbn10.t ............... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/39 subtests t/isbn13.t ............... 1/? # Failed test 'Bad group code [978-9997022576] is invalid' # at t/isbn13.t line 130. # got: '-1' # expected: '-2' # # Checking ISBN13s... (this may take a bit) # # Checking bad ISBN13s... (this should be fast) # Looks like you failed 1 test of 41. t/isbn13.t ............... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/41 subtests t/valid_isbn_checksum.t .. ok t/xisbn10.t .............. ok t/png_barcode.t .......... skipped: GD is missing GD::Font->Small. Can't continue. t/rt/27107.t ............. ok t/rt/28843.t ............. ok t/rt/29089.t ............. # # Checking ISBN13s... (this may take a bit) t/rt/29089.t ............. ok t/rt/29292.t ............. ok Test Summary Report ------------------- t/isbn10.t (Wstat: 256 Tests: 39 Failed: 1) Failed test: 33 Non-zero exit status: 1 t/isbn13.t (Wstat: 256 Tests: 41 Failed: 1) Failed test: 35 Non-zero exit status: 1 Files=15, Tests=149, 12 wallclock secs ( 0.05 usr 0.02 sys + 6.88 cusr 0.07 csys = 7.02 CPU) Result: FAIL Failed 2/15 test programs. 2/149 subtests failed. make: *** [test_dynamic] Error 255 BDFOY/Business-ISBN-2.05.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports BDFOY/Business-ISBN-2.05.tar.gz Running make install make test had returned bad status, won't install without force Any ideas of what to do? Thanks. -- A riddle, wrapped in a mystery, inside an enigma but that's my story and I'm stickin' to it.
Thomas, Thomas Ronayne schrieb am 03.03.2013
I'm brand new with Koha and am having trouble with Perl/CPAN;
In case of questions like this, it is useful to state what version of what operating system you are using and what version of Koha you are trying to install in what way. -- Mirko
At 08:51 AM 3/3/2013 -0500, Thomas Ronayne wrote:
I'm brand new with Koha and am having trouble with Perl/CPAN; attempting installation of Business::ISBN (among others, frankly I am no fan of Perl)
You do not say what o/s you are using, but CPAN should only be used as a last resort. For ubuntu/debian the module you need is libbusiness-isbn-data-perl and an 'apt-get install' type of instruction will work fine. For redhat|fedora|opensuse see <http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/perl%28Business%3A%3AISBN%29> Paul
On Sun, Mar 03, 2013 at 08:51:49AM -0500, Thomas Ronayne wrote:
I'm brand new with Koha and am having trouble with Perl/CPAN; attempting installation of Business::ISBN
Executing with
cpan install Business::ISBN
Yes there is a known problem causing one of the test scripts to fail. Do a force install to install the module despite this i.e. cpan -f install Business::ISBN The bug has been reported on rt.cpan.org If installing stuff from cpan, folk should take a look at App::cpanminus its easier than using the old cpan interface. -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
participants (4)
-
Colin Campbell -
Mirko -
Paul -
Thomas Ronayne