[Koha] Re: Error installing perl modules XML-Simple on K12LTSP-6 (Fedora Core 6)

Krsnendu dasa krsnendu108 at gmail.com
Wed Jan 24 08:45:12 NZDT 2007


Installed with yum and it worked.
# yum -y install perl-XML-Simple

On 24/01/07, Krsnendu dasa <krsnendu108 at gmail.com> wrote:
> Can you please help me?
>
> When I try to install on K12LTSP-6 (Fedora Core 6)
> # perl -MCPAN -e 'install "XML::Simple"'
>
> It tells me:
> 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 XML::SAX::PurePerl so you probably want it anyway.
>
> When I try to install XML::SAX::Expat it tries to prepend XML::Parser
> which fails.
> The last few lines are as follows:
>
> Expat.c: In function âXS_XML__Parser__Expat_SetEndCdataHandlerâ:
> Expat.c:2580: error: âXML_Parserâ undeclared (first use in this function)
> Expat.c:2580: error: expected â;â before âparserâ
> Expat.c:2581: warning: ISO C90 forbids mixed declarations and code
> Expat.xs:2127: error: âparserâ undeclared (first use in this function)
> Expat.xs:2128: error: âXML_EndCdataSectionHandlerâ undeclared (first
> use in this function)
> Expat.xs:2128: error: expected â;â before âecdhndlâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2131: error: âCallbackVectorâ has no member named âendcd_svâ
> Expat.xs:2133: error: âecdhndlâ undeclared (first use in this function)
> Expat.xs:2135: warning: implicit declaration of function
> âXML_SetEndCdataSectionHandlerâ
> Expat.c: In function âXS_XML__Parser__Expat_UnsetAllHandlersâ:
> Expat.c:2609: error: âXML_Parserâ undeclared (first use in this function)
> Expat.c:2609: error: expected â;â before âparserâ
> Expat.xs:2144: error: âparserâ undeclared (first use in this function)
> Expat.xs:2147: error: âCallbackVectorâ has no member named ânsâ
> Expat.xs:2148: error: âCallbackVectorâ has no member named âpâ
> Expat.xs:2149: error: âXML_StartNamespaceDeclHandlerâ undeclared
> (first use in this function)
> Expat.xs:2149: error: expected â)â before numeric constant
> Expat.xs:2154: error: âXML_StartElementHandlerâ undeclared (first use
> in this function)
> Expat.xs:2154: error: expected â)â before numeric constant
> Expat.xs:2158: error: âXML_UnknownEncodingHandlerâ undeclared (first
> use in this function)
> Expat.xs:2158: error: expected â)â before numeric constant
> Expat.c: In function âXS_XML__Parser__Expat_ElementIndexâ:
> Expat.c:2642: error: âXML_Parserâ undeclared (first use in this function)
> Expat.c:2642: error: expected â;â before âparserâ
> Expat.c:2643: warning: ISO C90 forbids mixed declarations and code
> Expat.xs:2167: error: âparserâ undeclared (first use in this function)
> Expat.xs:2168: error: âCallbackVectorâ has no member named âst_serial_stackâ
> Expat.xs:2168: error: âCallbackVectorâ has no member named âst_serial_stackptrâ
> Expat.c: In function âXS_XML__Parser__Expat_SkipUntilâ:
> Expat.c:2664: error: âXML_Parserâ undeclared (first use in this function)
> Expat.c:2664: error: expected â;â before âparserâ
> Expat.c:2665: warning: ISO C90 forbids mixed declarations and code
> Expat.xs:2179: error: âparserâ undeclared (first use in this function)
> Expat.xs:2180: error: âCallbackVectorâ has no member named âst_serialâ
> Expat.xs:2182: error: âCallbackVectorâ has no member named âskip_untilâ
> Expat.c: In function âXS_XML__Parser__Expat_Do_External_Parseâ:
> Expat.c:2687: error: âXML_Parserâ undeclared (first use in this function)
> Expat.c:2687: error: expected â;â before âparserâ
> Expat.c:2688: warning: ISO C90 forbids mixed declarations and code
> Expat.xs:2194: error: âparserâ undeclared (first use in this function)
> Expat.xs:2205: warning: unused variable âpretâ
> Expat.xs:2194: warning: unused variable âcbvâ
> Expat.xs:2192: warning: unused variable âtypeâ
> make[1]: *** [Expat.o] Error 1
> make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.34/Expat'
> make: *** [subdirs] Error 2
>   /usr/bin/make  -- NOT OK
> Running make test
>   Can't test without successful make
> Running make install
>   make had returned bad status, install seems impossible
>


More information about the Koha mailing list