| View previous topic :: View next topic |
| Author |
Message |
r_conan n00b

Joined: 03 Oct 2006 Posts: 6
|
Posted: Tue Oct 03, 2006 6:27 pm Post subject: Error updating XML::Simple |
|
|
I'm getting the following error updating XML::Simple on my ~amd64 gentoo system.
| Code: | =============================================================================
Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.
There are known bugs in the PurePerl parser included with version 0.13
and 0.14 of XML::SAX. The XML::Simple tests will fail with this parser.
One way to avoid the problem is to install XML::SAX::Expat - it will
install itself as the system default XML parser and then you will be able
to install XML::Simple successfully. XML::SAX::Expat is also much faster
than XML::SAX::PurePerl so you probably want it anyway.
=============================================================================
!!! ERROR: dev-perl/XML-Simple-2.15 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1255: Called perl-module_src_compile
perl-module.eclass, line 136: Called perl-module_src_prep
perl-module.eclass, line 125: Called die
!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant. |
How do I go about installing XML::SAX::Expat ? |
|
| Back to top |
|
 |
skunk Guru


Joined: 28 May 2003 Posts: 550 Location: london, uk
|
Posted: Tue Oct 03, 2006 7:10 pm Post subject: |
|
|
# emerge -s xml-sax
Searching...
[ Results for search key : xml-sax ]
[ Applications found : 2 ]
* dev-perl/XML-SAX
Latest version available: 0.14-r1
Latest version installed: 0.14-r1
Size of files: 57 kB
Homepage: http://search.cpan.org/~msergeant/XML-SAX-0.14/
Description: Perl module for using and building Perl SAX2 XML parsers, filters, and drivers
License: Artistic
* dev-perl/XML-SAX-Writer
Latest version available: 0.44-r1
Latest version installed: 0.44-r1
Size of files: 11 kB
Homepage: http://search.cpan.org/~rberjon/XML-SAX-Writer-0.44
Description: SAX2 Writer
License: Artistic |
|
| Back to top |
|
 |
cyberbird n00b

Joined: 03 Oct 2006 Posts: 2
|
Posted: Tue Oct 03, 2006 9:18 pm Post subject: |
|
|
I have the same problem.
I got the xml-sax stuff but still have the same issue with XML-Simple
I will further investigate but maybe someone else already got a solution for this..
regards,
Fitzgerald.
# emerge --search xml-sax
Searching...
[ Results for search key : xml-sax ]
[ Applications found : 2 ]
* dev-perl/XML-SAX
Latest version available: 0.14-r1
Latest version installed: 0.14-r1
Size of files: 57 kB
Homepage: http://search.cpan.org/~msergeant/XML-SAX-0.14/
Description: Perl module for using and building Perl SAX2 XML parsers, filters, and drivers
License: Artistic
* dev-perl/XML-SAX-Writer
Latest version available: 0.50
Latest version installed: 0.50
Size of files: 12 kB
Homepage: http://search.cpan.org/~dahut/XML-SAX-Writer-0.50
Description: SAX2 Writer
License: Artistic |
|
| Back to top |
|
 |
dos14hk n00b


Joined: 12 Jul 2006 Posts: 41 Location: Hong Kong
|
Posted: Wed Oct 04, 2006 2:04 am Post subject: XML-Simple-2.15 |
|
|
| cyberbird wrote: | I have the same problem.
I got the xml-sax stuff but still have the same issue with XML-Simple
I will further investigate but maybe someone else already got a solution for this..
regards,
Fitzgerald.
# emerge --search xml-sax
Searching...
[ Results for search key : xml-sax ]
[ Applications found : 2 ]
* dev-perl/XML-SAX
Latest version available: 0.14-r1
Latest version installed: 0.14-r1
Size of files: 57 kB
Homepage: http://search.cpan.org/~msergeant/XML-SAX-0.14/
Description: Perl module for using and building Perl SAX2 XML parsers, filters, and drivers
License: Artistic
* dev-perl/XML-SAX-Writer
Latest version available: 0.50
Latest version installed: 0.50
Size of files: 12 kB
Homepage: http://search.cpan.org/~dahut/XML-SAX-Writer-0.50
Description: SAX2 Writer
License: Artistic |
If you just need to get on with an install then go for XML-Simple-2.14 (package.mask the 2.15 version) works on my amd64 setup. |
|
| Back to top |
|
 |
Baly n00b


Joined: 04 Oct 2006 Posts: 10
|
Posted: Wed Oct 04, 2006 5:57 am Post subject: |
|
|
You can fix this by installing the perl module it asked for:
| Code: |
perl -MCPAN -e shell
install XML::SAX::Expat
quit
|
It will ask you some configuration crap when you start the perl shell if you have not used it before, simple stuff, defaults are pretty good. Then re-emerge the previous failed package. Not sure if there is a way to fix this within portage but this at least installs the perl module it is asking for. |
|
| Back to top |
|
 |
dencar Tux's lil' helper

Joined: 23 Dec 2003 Posts: 105 Location: Noosa, Australia
|
Posted: Wed Oct 04, 2006 11:52 am Post subject: |
|
|
Worked for me. (Not quite sure why.) Thanks, Baly. _________________ dencar |
|
| Back to top |
|
 |
cyberbird n00b

Joined: 03 Oct 2006 Posts: 2
|
Posted: Wed Oct 04, 2006 8:04 pm Post subject: |
|
|
Also works for me. Thanks, Baly!
cyberbird |
|
| Back to top |
|
 |
curtlee2002 Tux's lil' helper


Joined: 26 Feb 2006 Posts: 77
|
Posted: Tue Dec 05, 2006 12:44 pm Post subject: |
|
|
did not work for me
| Code: | # perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan> nstall XML::SAX::Expat
Unknown command 'nstall'. Type ? for help.
cpan> nstall XML::SAX::Expat^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[D
Unknown command 'nstall'. Type ? for help.
cpan> install XML::SAX::Expat
CPAN: Storable loaded ok
Going to read /var/tmp/g-cpan/.cpan/Metadata
Database was generated on Tue, 05 Dec 2006 06:24:27 GMT
Running install for module XML::SAX::Expat
Running make for R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz ok
Scanning cache /var/tmp/g-cpan/.cpan/build for sizes
XML-SAX-Expat-0.37
XML-SAX-Expat-0.37/Expat.pm
XML-SAX-Expat-0.37/MANIFEST
XML-SAX-Expat-0.37/t
XML-SAX-Expat-0.37/t/00basic.t
XML-SAX-Expat-0.37/Changes
XML-SAX-Expat-0.37/Makefile.PL
Removing previously used /var/tmp/g-cpan/.cpan/build/XML-SAX-Expat-0.37
CPAN.pm: Going to build R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::Parser 2.27 not found.
Writing Makefile for XML::SAX::Expat
cp Expat.pm blib/lib/XML/SAX/Expat.pm
Manifying blib/man3/XML::SAX::Expat.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic....Can't load '/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230.
at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/XML/Parser.pm line 14
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/XML/Parser.pm line 18.
Compilation failed in require at /var/tmp/g-cpan/.cpan/build/XML-SAX-Expat-0.37/blib/lib/XML/SAX/Expat.pm line 13.
BEGIN failed--compilation aborted at /var/tmp/g-cpan/.cpan/build/XML-SAX-Expat-0.37/blib/lib/XML/SAX/Expat.pm line 13.
Compilation failed in require at t/00basic.t line 3.
BEGIN failed--compilation aborted at t/00basic.t line 3.
t/00basic....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/00basic.t 2 512 1 1 1
Failed 1/1 test scripts. 1/1 subtests failed.
Files=1, Tests=1, 0 wallclock secs ( 0.04 cusr + 0.01 csys = 0.05 CPU)
Failed 1/1 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
cpan> quit
Terminal does not support GetHistory.
Lockfile removed.
|
| Code: | # emerge dev-perl/XML-Simple
Calculating dependencies... done!
>>> Emerging (1 of 1) dev-perl/XML-Simple-2.16 to /
* XML-Simple-2.16.tar.gz MD5 ;-) ... [ ok ]
* XML-Simple-2.16.tar.gz RMD160 ;-) ... [ ok ]
* XML-Simple-2.16.tar.gz SHA1 ;-) ... [ ok ]
* XML-Simple-2.16.tar.gz SHA256 ;-) ... [ ok ]
* XML-Simple-2.16.tar.gz size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking XML-Simple-2.16.tar.gz ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking XML-Simple-2.16.tar.gz to /var/tmp/portage/dev-perl/XML-Simple-2.16/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.16/work/XML-Simple-2.16 ...
/var/tmp/portage/dev-perl/XML-Simple-2.16/work/XML-Simple-2.16
* Using ExtUtils::MakeMaker
=============================================================================
Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.
There are known bugs in the PurePerl parser included with version 0.13
and 0.14 of XML::SAX. The XML::Simple tests will fail with this parser.
One way to avoid the problem is to install XML::SAX::Expat - it will
install itself as the system default XML parser and then you will be able
to install XML::Simple successfully. XML::SAX::Expat is also much faster
than XML::SAX::PurePerl so you probably want it anyway.
=============================================================================
Checking installed modules ...
!!! ERROR: dev-perl/XML-Simple-2.16 failed.
Call stack:
ebuild.sh, line 1569: Called dyn_compile
ebuild.sh, line 938: Called src_compile
ebuild.sh, line 1262: Called perl-module_src_compile
perl-module.eclass, line 136: Called perl-module_src_prep
perl-module.eclass, line 125: Called die
!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
|
|
| Back to top |
|
 |
curtlee2002 Tux's lil' helper


Joined: 26 Feb 2006 Posts: 77
|
Posted: Tue Dec 05, 2006 1:03 pm Post subject: |
|
|
A workaround until the portage is fixed if you are also using mythtv
I added >=dev-perl/XML-Simple-2.15 to /usr/portage/package.mask and then emerged XML-Simple and expat to get mythtv to stop an expatlib error it was giving me |
|
| Back to top |
|
 |
federico Advocate


Joined: 18 Feb 2003 Posts: 3270 Location: Italy, Milano
|
Posted: Thu Dec 07, 2006 11:51 am Post subject: |
|
|
| Baly wrote: | You can fix this by installing the perl module it asked for:
| Code: |
perl -MCPAN -e shell
install XML::SAX::Expat
quit
|
It will ask you some configuration crap when you start the perl shell if you have not used it before, simple stuff, defaults are pretty good. Then re-emerge the previous failed package. Not sure if there is a way to fix this within portage but this at least installs the perl module it is asking for. |
This solved! Thank you !!
Fede _________________ Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk |
|
| Back to top |
|
 |
sedorox Apprentice


Joined: 13 Feb 2004 Posts: 197 Location: Williamsport, PA
|
Posted: Mon Jan 08, 2007 2:41 am Post subject: |
|
|
Worked for me too. _________________ Home Desktop(Custom): Intel E6550 2.33Ghz| 4G Ram | 1x 250gig | ~AMD64
Home Server(Custom): AMD64 3500+ 2.2Ghz | 1G Ram | 2x 500gig, 1x 250gig | ~AMD64
Work Desktop(Dell GX755): Intel E8200 2.66Ghz | 4G Ram | 1x 80gig 10k rpm, 1x 250gig | ~AMD64 |
|
| Back to top |
|
 |
|