asifk1981 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am trying to install XML Parser modules(Expat and XML::Paresr modules)in my unix box.But the installation of expat module gives me a problem while making, as follows.

/bin/sh ./libtool --silent --mode=compile cc -g -DHAVE_EXPAT_CONFIG_H + -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c (Bundled) cc: warning 480: The -g option is available only with the C/ +ANSI C product; ignored. (Bundled) cc: warning 480: The +Z option is available only with the C/ +ANSI C product; ignored. cpp: "lib/xmlparse.c", line 76: warning 2013: Unknown preprocessing di +rective. cpp: "lib/xmlparse.c", line 918: error 4065: Recursion in macro "XML_S +TATUS_ERROR". *** Error exit code 1 Stop.

I think the problem is with the absence of ANSI C compiler in the machine. Can I make the installable binary of this module in some other machine and bring it to my machine and install it? If I can, What are the files or directories i am supposed to bring from the other machine , so that I can just give a "make install" in my machine?Please enlighten me......

Also after installing expat module, can I adopt the same strategy to install Parser module also? Will it also require ANSI C compiler for installation?If yes, Please direct me with the details.......I don't find any clue to this in the README file.

Edited by Chady -- fixed formatting.

Replies are listed 'Best First'.
Re: XML parser module installation
by Zaxo (Archbishop) on Jan 03, 2004 at 06:34 UTC

    That sounds like you are on a system with an incompatible cc. Incompatible? That means it is not ansi compliant, which is maintained by some Unix distributors to save rewriting their source code.

    Look for the C compiler that Perl was compiled with:

    use Config; print $Config{'cc'};
    Your system is very likely to have the correct compiler around somewhere.

    After Compline,
    Zaxo