I am trying to install some PERL modules via CPAN. The module is PDF::API2::Simple I am getting the following error cpan[1]> install PDF:API2:Simple CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Wed, 26 Feb 2014 10:06:15 GMT CPAN: LWP::UserAgent loaded ok (v5.834) CPAN: Time::HiRes loaded ok (v1.9719) Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp1805'. Giving up on it. at /usr/share/perl/5.10/CPAN/Index.pm line 225 Fetching with LWP: http://www.perl.org/CPAN/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.71) Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.02) ............................................................................DONE Fetching with LWP: http://www.perl.org/CPAN/modules/02packages.details.txt.gz Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Wed, 26 Feb 2014 10:06:15 GMT .............. New CPAN.pm version (v2.00) available. [Currently running version is v1.9402] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ..............................................................DONE Fetching with LWP: http://www.perl.org/CPAN/modules/03modlist.data.gz Going to read '/root/.cpan/sources/modules/03modlist.data.gz' ............................................................................DONE Going to write /root/.cpan/Metadata Running install for module 'PDF::API2::Simple' Running make for R/RE/REDTREE/PDF-API2-Simple-1.1.4u.tar.gz CPAN: Digest::SHA loaded ok (v5.47) Checksum for /root/.cpan/sources/authors/id/R/RE/REDTREE/PDF-API2-Simple-1.1.4u.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE CPAN: Archive::Tar loaded ok (v1.52) PDF-API2-Simple-1.1.4/ PDF-API2-Simple-1.1.4/examples/ PDF-API2-Simple-1.1.4/examples/01_barebones.pl PDF-API2-Simple-1.1.4/examples/02_links.pl PDF-API2-Simple-1.1.4/examples/03_autoflow.pl PDF-API2-Simple-1.1.4/examples/04_headers.pl PDF-API2-Simple-1.1.4/examples/05_a4.pl PDF-API2-Simple-1.1.4/examples/06_alignment.pl PDF-API2-Simple-1.1.4/examples/07_as_string.pl PDF-API2-Simple-1.1.4/INSTALL PDF-API2-Simple-1.1.4/lib/ PDF-API2-Simple-1.1.4/lib/PDF/ PDF-API2-Simple-1.1.4/lib/PDF/API2/ PDF-API2-Simple-1.1.4/lib/PDF/API2/Simple.pm PDF-API2-Simple-1.1.4/Makefile.PL PDF-API2-Simple-1.1.4/MANIFEST PDF-API2-Simple-1.1.4/README PDF-API2-Simple-1.1.4/t/ PDF-API2-Simple-1.1.4/t/01.t PDF-API2-Simple-1.1.4/t/02_open.t PDF-API2-Simple-1.1.4/t/files/ PDF-API2-Simple-1.1.4/t/files/test.pdf PDF-API2-Simple-1.1.4/t/pod.t CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build R/RE/REDTREE/PDF-API2-Simple-1.1.4u.tar.gz Can't locate inc/Module/Install.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at Makefile.PL line 1. BEGIN failed--compilation aborted at Makefile.PL line 1. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] REDTREE/PDF-API2-Simple-1.1.4u.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: REDTREE/PDF-API2-Simple-1.1.4u.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 cpan[2]> ^CCaught SIGINT, trying to continue Please any help is greatly appreciated Best Regards. Rivikantha
Greetings, First, you didn’t say which operating system you are using, so I am assuming a Debian-based one. Second, why install from CPAN when there is likely a package for it already? $ sudo apt-get install libpdf-api2-simple-perl In fact, frequently libraries can be changed from foo::bar into libfoo-bar-perl to install them. Last, the error message is clear about the problem: Can't locate inc/Module/Install.pm in @INC There is a prerequisite (Module::Install) missing. Whether it is a requirement for your building environment or the actual library is not clear in the message. Hopefully, you will find this enlightening and helpful. GPML, Mark Tompsett -----Original Message----- From: Rivikantha Herath Sent: Thursday, February 27, 2014 10:52 PM To: koha@lists.katipo.co.nz Subject: [Koha] Problem with installing perl module I am trying to install some PERL modules via CPAN. The module is PDF::API2::Simple I am getting the following error [SNIP]
Apparently this is a known bug with PDF-API2-Simple since 2007 and the workaround is to install a different release: https://rt.cpan.org/Public/Bug/Display.html?id=28125#txn-1303659 Federico
participants (3)
-
Federico Leva (Nemo) -
Mark Tompsett -
Rivikantha Herath