You are not logged in.

#1 2010-02-07 16:54:55

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Perl modules fail to install from CPAN

Hi, I'm trying to install XML::Feed in Perl, by running "install XML::Feed" in a CPAN shell. (This is a *totally* fresh Arch install).

Doing so successfully installs a tonne of dependencies, before choking later on and crashing out. Was hoping you guys might be able to shed some light, or point me to somewhere helpful.

As far as I can see, the first error of any import is as follows;

Running make for P/PA/PAJAS/XML-LibXML-1.70.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/XML-LibXML-1.70-1_BUDe
Could not make: Unknown error
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

Yes, it's a *massively* useful unknown error.

It goes on to say;

Warning: Prerequisite 'XML::Atom => 0.32' for 'SIMONW/XML-Feed-0.43.tar.gz' failed when processing 'MIYAGAWA/XML-Atom-0.37.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'XML::LibXML => 1.66' for 'SIMONW/XML-Feed-0.43.tar.gz' failed when processing 'PAJAS/XML-LibXML-1.70.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.

Followed by lots of

...  Couldn't require XML::Feed::Format::Atom : Can't locate XML/Atom/Feed.pm in @INC ...

And ending with;

Test Summary Report
-------------------
t/00-compile.t              (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
t/01-parse.t                (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 75 tests but ran 1.
t/02-create.t               (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 72 tests but ran 0.
t/04-splice-atom.t          (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/04-splice-rss.t           (Wstat: 2304 Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/05-atom10-link.t          (Wstat: 2304 Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/06-atom10.t               (Wstat: 2304 Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 7 tests but ran 0.
t/07-atom10-create.t        (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 17 tests but ran 0.
t/08-convert-summary-bug.t  (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
t/10-mix-and-match.t        (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 6 tests but ran 0.
t/11-xml-base-atom.t        (Wstat: 2304 Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 13 tests but ran 0.
t/11-xml-base-rss.t         (Wstat: 2304 Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 13 tests but ran 0.
t/12-multi-categories-atom.t (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 6 tests but ran 1.
t/12-multi-categories-rss.t (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 6 tests but ran 1.
t/12-multi-subjects-rss.t   (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 6 tests but ran 1.
t/14-enclosures.t           (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 44 tests but ran 1.
t/14-multi-enclosures.t     (Wstat: 2304 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 76 tests but ran 1.
Files=21, Tests=23,  9 wallclock secs ( 0.13 usr  0.41 sys +  3.15 cusr  5.58 csys =  9.27 CPU)
Result: FAIL
Failed 17/21 test programs. 7/23 subtests failed.
make: *** [test_dynamic] Error 255
  SIMONW/XML-Feed-0.43.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SIMONW/XML-Feed-0.43.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 PAJAS/XML-LibXML-1.70.tar.gz                 : make NO
 MIYAGAWA/XML-Atom-0.37.tar.gz                : make_test NO
 SIMONW/XML-Feed-0.43.tar.gz                  : make_test NO

Thank you!

Offline

#2 2010-02-07 16:57:24

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: Perl modules fail to install from CPAN

http://bbs.archlinux.org/viewtopic.php?id=88247
Hope this helps.

Last edited by bharani (2010-02-07 16:59:27)


Tamil is my mother tongue.

Offline

#3 2010-02-07 17:37:10

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Perl modules fail to install from CPAN

When I try to install w/bauerbill (bauerbill -S --cpan XML::Feed) I get errors that files already exist in the filesystem, so I'm guessing it's clashing with what I already did, is there a good way to clean up? I tried running "clean" in the CPAN shell to no avail.

(I also get "WARNING: XML::Feed does not match any package or group in sync db", does that mean anything?)

Offline

#4 2010-02-07 17:43:47

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Perl modules fail to install from CPAN

I'm obviously biased, but +1 for using bauerbill and pacpan to install Perl packages from CPAN. It will keep your system clean and let you easily handle dependencies and remove packages later.

I've just tested installing XML::Feed with bauerbill and had no problems.


Here's a quick guide to getting it working:
Add the following lines to /etc/pacman.conf to enable my repo, above [community]:

[xyne-any]
Server = http://xyne.archlinux.ca/repos/any

Install pacpan and bauerbill:

pacman -Sy bauerbill pacpan

Run the following command to update the provides arrays of local Perl packages (there is necessary due to the omission of this array by many Perl packagers... there is currently a discussion to officially enforce their inclusion).

pacpan --fix-provides

Finally run this to install XML::Feed:

bauerbill -S --cpan XML::Feed

Check the bauerbill man page and configuration file to learn more about its other options and how to avoid the prompt for each PKGBUILD, etc.



*edit*

"WARNING: XML::Feed does not match any package or group in sync db" is just to let the user know that the package is being pulled from somewhere else, in case they didn't intend to enable support for AUR or CPAN.

The conflicts are almost certainly due to the manual installation, which is also one of the reasons that it's recommended to always use pacman to install anything. Normally you can use "-f" with pacman to force installation, but I don't think I've implemented that yet for dependency installation during the build process. I'll add that right now. You can either wait for me to update or you can just remove those files manually.

*edit 2*
The following should work now:

bauerbill -Sf --cpan XML::Feed

Last edited by Xyne (2010-02-07 17:59:10)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2010-02-07 23:18:23

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Perl modules fail to install from CPAN

Hi, thanks for the help, I really like the sound of this tool, of having CPAN integrated into pacman. Still having some problems however; it doesn't seem to be able to download packages for some reason.

It fails at:

:: The following packages will be downloaded:
   [extra]
     perlxml
   [community]
     perl-class-data-inheritable perl-class-singleton perl-datetime perl-datetime-format-mail perl-datetime-format-w3cdtf perl-datetime-locale perl-datetime-timezone perl-list-moreutils perl-params-validate
     perl-test-manifest perl-xml-atom perl-xml-libxml perl-xml-libxml-common perl-xml-namespacesupport perl-xml-sax perl-xml-xpath

:: Number of Sources:                        9
:: Number of Packages:                      17
:: Total Download Size:                2.86 MB
:: Binary Package Install Size:       21.96 MB

:: Proceed with download? [Y/n] 

Exception: [NameMatchOptionHandler.h:102] We encountered a problem while processing the option '--metalink-file'.
  -> [OptionHandlerImpl.h:593] Is '-' a file?

Usage:
 -M, --metalink-file=METALINK_FILE The file path to the .metalink file.

                              Possible Values: /path/to/file
                              Tags: #basic,#metalink

:: 26 unsuccessful download(s). Would you like to retry? [Y/n]

And repeatedly fails if you retry. The packages can be installed with pacman, which I have done for the first two times this kind of error popped up. But then;

:: The following sources will be downloaded:
   perl-test-simple:
     http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/Test-Simple-0.94.tar.gz
   perl-class-errorhandler:
     http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Class-ErrorHandler-0.01.tar.gz
   perl-scalar-list-utils:
     http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-1.22.tar.gz
   perl-xml-rss:
     http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-RSS-1.47.tar.gz
   perl-xml-parser:
     http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz
   perl-uri-fetch:
     http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/URI-Fetch-0.08.tar.gz
   perl-xml-feed:
     http://search.cpan.org/CPAN/authors/id/S/SI/SIMONW/XML-Feed-0.43.tar.gz
   perl-html-parser:
     http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.64.tar.gz
   perl-feed-find:
     http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Feed-Find-0.06.tar.gz

:: Number of Sources:                        9
:: Total Download Size:                0.67 MB

:: Proceed with download? [Y/n] 

Exception: [NameMatchOptionHandler.h:102] We encountered a problem while processing the option '--metalink-file'.
  -> [OptionHandlerImpl.h:593] Is '-' a file?

Usage:
 -M, --metalink-file=METALINK_FILE The file path to the .metalink file.

                              Possible Values: /path/to/file
                              Tags: #basic,#metalink

:: 9 unsuccessful download(s). Would you like to retry? [Y/n]

And I don't know what to do! Any further help much appreciated. I'm sure installing a module shouldn't be this much pain!

By the way, I went back to a fresh install, so this is on a fresh system, without the manually installed files.

Thanks!

Offline

#6 2010-02-07 23:37:13

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Perl modules fail to install from CPAN

When you install XML::LibXML from CPAN you must have libxml2 installed already.  There is a perl-xml-libxml package in community.  You can use pacman to install it (and libxml2 automatically) or I assume baerbill will install the packages for you as well.

LibXML::XML's README wrote:

DEPENDENCIES
============

Prior to installation you MUST have installed the libxml2 library. You can get
the latest libxml2 version from

http://xmlsoft.org/

Without libxml2 installed this module will neither build nor run.

Offline

#7 2010-02-08 07:58:10

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Perl modules fail to install from CPAN

@juster; Sorry, not sure what you're saying, that if I have perl-xml-libxml and libxml2 installed it should work? Because I do, and it doesn't!

It's as if bauerbill doesn't like my net settings, and can't see the Internet for some reason...

Offline

#8 2010-02-08 08:33:28

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Perl modules fail to install from CPAN

@tsv
It looks like you have an old version of aria2 installed. Update to version 1.8.2-1 if you don't have it. The error message that you see is actually from aria2c which is used to download the packages and source files. There was a version released which "broke" support for metalink piping (actually, the developer didn't know that it supported it to begin with... it was just a nice side-effect) but it was quickly patched.

Also make sure that you've run through the steps that I posted above to get the latest versions of my packages and fix the local database.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2010-02-08 09:09:56

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Perl modules fail to install from CPAN

Cheers Xyne, I had done just as you said but it turned out the mirror I was using is outdated, I realised when it didn't have the aria2 version you mention. Have now changed and all is working fine. Thanks, you've made me a happy man!

Offline

#10 2010-02-08 09:20:12

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Perl modules fail to install from CPAN

I'm glad you got it working. I'm also happy to see someone using the CPAN functionality. smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2010-02-08 09:27:19

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Perl modules fail to install from CPAN

I was planning on moving my main system back to Arch at some point in the future, but bauerbill has just made it a higher priority.

Offline

Board footer

Powered by FluxBB