Re: Hi, Everyone, I can't install perl modules correctly using CPAN, why?

2006-11-04 Thread Jen Spinney

On 11/3/06, Jeff Pang [EMAIL PROTECTED] wrote:



Hi, everyone,

When I want to install perl module WWW::Yahoo::KeywordExtractor in

my  Ubuntu damper 6.06 OS, it doesn't work properly.


Looks like something with XML is wrong.
Give a try to install XML::SAX::Expat and XML::Simple at first.


Did you see this?

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.


I'd install XML::SAX::Expat, then try again.  Good luck!

- Jen

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Hi, Everyone, I can't install perl modules correctly using CPAN, why?

2006-11-03 Thread 辉 王
Hi, everyone,

When I want to install perl module WWW::Yahoo::KeywordExtractor in 

my  Ubuntu damper 6.06 OS, it doesn't work properly. The error message 

is listed below:

===

CPAN: Storable loaded ok
Going to read /home/wanghui/.cpan/Metadata
  Database was generated on Mon, 30 Oct 2006 21:24:24 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://mirrors.hknet.com/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[read timeout]
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
  ftp://mirrors.hknet.com/CPAN/authors/01mailrc.txt.gz
  Could not connect to host 'mirrors.hknet.com' with Net::FTP
Fetching with LWP:
  http://cpan.linuxforum.net/authors/01mailrc.txt.gz
Going to read /home/wanghui/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
  ftp://mirrors.hknet.com/CPAN/modules/02packages.details.txt.gz
Going to read /home/wanghui/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Fetching with LWP:
  ftp://mirrors.hknet.com/CPAN/modules/03modlist.data.gz
Going to read /home/wanghui/.cpan/sources/modules/03modlist.data.gz
Going to write /home/wanghui/.cpan/Metadata
Running install for module WWW::Yahoo::KeywordExtractor
Running make for S/SO/SOCK/WWW-Yahoo-KeywordExtractor-0.04.tar.gz
cpan install WWW::Yahoo::KeywordExtractorCPAN: Digest::SHA loaded ok
Checksum for 
/home/wanghui/.cpan/sources/authors/id/S/SO/SOCK/WWW-Yahoo-KeywordExtractor-0.04.tar.gz
 ok
Scanning cache /home/wanghui/.cpan/build for sizes
WWW-Yahoo-KeywordExtractor-0.04/
WWW-Yahoo-KeywordExtractor-0.04/Build.PL
WWW-Yahoo-KeywordExtractor-0.04/Changes
WWW-Yahoo-KeywordExtractor-0.04/lib/
WWW-Yahoo-KeywordExtractor-0.04/lib/WWW/
WWW-Yahoo-KeywordExtractor-0.04/lib/WWW/Yahoo/
WWW-Yahoo-KeywordExtractor-0.04/lib/WWW/Yahoo/KeywordExtractor.pm
WWW-Yahoo-KeywordExtractor-0.04/MANIFEST
WWW-Yahoo-KeywordExtractor-0.04/META.yml
WWW-Yahoo-KeywordExtractor-0.04/README
WWW-Yahoo-KeywordExtractor-0.04/t/
WWW-Yahoo-KeywordExtractor-0.04/t/02-pod.t
WWW-Yahoo-KeywordExtractor-0.04/t/03-pod_coverage.t
WWW-Yahoo-KeywordExtractor-0.04/t/04-perl_critic.t
WWW-Yahoo-KeywordExtractor-0.04/t/11-compile.t
Removing previously used 
/home/wanghui/.cpan/build/WWW-Yahoo-KeywordExtractor-0.04

  CPAN.pm: Going to build S/SO/SOCK/WWW-Yahoo-KeywordExtractor-0.04.tar.gz

Checking whether your kit is complete...
Looks good

Checking prerequisites...
 - ERROR: XML::Simple is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Creating new 'Build' script for 'WWW-Yahoo-KeywordExtractor' version '0.04'
CPAN: YAML loaded ok
CPAN: Module::Build loaded ok
  Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
  Adding it now as such.
 Unsatisfied dependencies detected during 
[S/SO/SOCK/WWW-Yahoo-KeywordExtractor-0.04.tar.gz] -
XML::Simple
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running Build test
  Delayed until after prerequisites
Running Build install
  Delayed until after prerequisites
Running install for module XML::Simple
Running make for G/GR/GRANTM/XML-Simple-2.16.tar.gz
Checksum for 
/home/wanghui/.cpan/sources/authors/id/G/GR/GRANTM/XML-Simple-2.16.tar.gz ok
XML-Simple-2.16/
XML-Simple-2.16/t/
XML-Simple-2.16/t/1_XMLin.xml
XML-Simple-2.16/t/lib/
XML-Simple-2.16/t/lib/TagsToUpper.pm
XML-Simple-2.16/t/B_Hooks.t
XML-Simple-2.16/t/6_ObjIntf.t
XML-Simple-2.16/t/1_XMLin.t
XML-Simple-2.16/t/srt.xml
XML-Simple-2.16/t/4_MemShare.t
XML-Simple-2.16/t/3_Storable.t
XML-Simple-2.16/t/7_SaxStuff.t
XML-Simple-2.16/t/A_XMLParser.t
XML-Simple-2.16/t/0_Config.t
XML-Simple-2.16/t/subdir/
XML-Simple-2.16/t/subdir/test2.xml
XML-Simple-2.16/t/2_XMLout.t
XML-Simple-2.16/t/5_MemCopy.t
XML-Simple-2.16/t/8_Namespaces.t
XML-Simple-2.16/t/test1.xml
XML-Simple-2.16/t/desertnet.src
XML-Simple-2.16/t/9_Strict.t
XML-Simple-2.16/Changes
XML-Simple-2.16/MANIFEST
XML-Simple-2.16/lib/
XML-Simple-2.16/lib/XML/
XML-Simple-2.16/lib/XML/Simple/
XML-Simple-2.16/lib/XML/Simple/FAQ.pod
XML-Simple-2.16/lib/XML/Simple.pm
XML-Simple-2.16/META.yml
XML-Simple-2.16/maketest
XML-Simple-2.16/README
XML-Simple-2.16/Makefile.PL
Removing previously used /home/wanghui/.cpan/build/XML-Simple-2.16

  CPAN.pm: Going to build G/GR/GRANTM/XML-Simple-2.16.tar.gz

Checking installed modules ...
=

  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 

Re: Hi, Everyone, I can't install perl modules correctly using CPAN, why?

2006-11-03 Thread Jeff Pang


Hi, everyone,

When I want to install perl module WWW::Yahoo::KeywordExtractor in 

my  Ubuntu damper 6.06 OS, it doesn't work properly.


Looks like something with XML is wrong.
Give a try to install XML::SAX::Expat and XML::Simple at first.

--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response