Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: XML::Simple install trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML::Simple install trouble



Try installing another XML parsing module.  From the XML::Simple README:

XML::Simple requires a module capable of parsing XML - either XML::SAX or
XML::Parser must be installed (if you're running ActivePerl, you'll
already have XML::Parser installed).


If you have installed XML::SAX, it will be used by default. You should
consider installing XML::SAX::Expat or XML::LibXML to replace the (slower)
PurePerl parser from the XML::SAX distribution.


If you install using the CPAN.pm shell and you do not have either XML::Parser
or XML::SAX installed, then XML::SAX will be installed by default.


From your original post, it sounds like XML::SAX::PurePerl is broken. Installing XML::SAX::Expat or XML::Parser will actually use the expat library you installed and will give a performance gain.

I've used XML::Simple since Mac OS 10.2 and it's always worked once XML::Parser was installed.

Luck.

-dirk

On Oct 9, 2006, at 6:07 AM, Kenneth Knight wrote:

I knew I forgot to mention something.

I did install the expat libraries from sourceforge. Actually I found the nice OS X package at <http://mac.softpedia.com/get/HTML- Tools/Expat-Installer-Package.shtml> and ran that. The install worked.

I don't see how doing something like qw(/home/me/libs/...) will help since XML::Simple isn't installing anyway. Though I suppose it would let me test if whether perl is able to use XML::SAX::Expat which seems present evne though the XML::Simple install can't find it. Still confused (and getting sleepy to boot...:) ).

  ** Ken **

On Oct 9, 2006, at 5:52 AM, Robin Darby wrote:

Hello
First off, XML::Simple is defiantly worth using, once you've got your head around the option syntax it saves a whole load of pain.
I suggest installing the expat libraries first (it contains all the C stuff needed to parse the xml files) from http:// sourceforge.net/projects/expat/; then try installing XML::Simple again - should work just fine.


P.S. you can use lib module to point to the location of perl (.pm) module files, i.e. use lib qw(/home/robin/work/CommonLibs);


--
**  Kenneth Knight    Web Design, IT Consultant, Software Engineer  **
**       email@hidden        www.wanderingknight.org           **
**        Ultralight backpacker   www.wanderingknight.org           **


_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >XML::Simple install trouble (From: Kenneth Knight <email@hidden>)
 >Re: XML::Simple install trouble (From: Robin Darby <email@hidden>)
 >Re: XML::Simple install trouble (From: Kenneth Knight <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.