"Nguyen, Luu" <[EMAIL PROTECTED]> writes:
> I've downloaded this module
> http://www.cpan.org/modules/by-module/HTML/HTML-Parser-3.07.tar.gz and
> tried to install it. I ran into 2 problems:
>
> 1) It requires C compiler installed which is not already available
> in our environment
True. If you want to avoid this you need to either find a precompiled
version somewhere or stick with HTML-Parser-2.25 which was the last
one implemented in pure perl.
> 2) When we finally managed to find a server with C compiler, we
> tried to install it, we encountered the problem as in the email below.
>
> Questions: Do I really need C compiler for installing this modules?
Yes. See above.
> If C compiler is required, how can I fix this
> compilation error?
You need to compile with the same compiler and the same environment
that was used to compile perl itself. Perhaps you should try gcc?
Regards,
Gisle
> > -----Original Message-----
> > From: Singal,Sandeep
> > Sent: Thursday, May 18, 2000 3:41 PM
> > To: Nguyen, Luu
> > Subject:
> >
> > cp Parser.pm ./blib/lib/HTML/Parser.pm
> > cp lib/HTML/Entities.pm ./blib/lib/HTML/Entities.pm
> > cp lib/HTML/Filter.pm ./blib/lib/HTML/Filter.pm
> > cp lib/HTML/HeadParser.pm ./blib/lib/HTML/HeadParser.pm
> > cp lib/HTML/TokeParser.pm ./blib/lib/HTML/TokeParser.pm
> > cp lib/HTML/LinkExtor.pm ./blib/lib/HTML/LinkExtor.pm
> > /opt/IWS/perl/bin/perl mkhctype >hctype.h
> > /opt/IWS/perl/bin/perl mkpfunc >pfunc.h
> > /opt/IWS/perl/bin/perl -I/opt/IWS/perl/lib/sun4-solaris/5.00404
> > -I/opt/IWS/perl/lib /opt/IWS/perl/lib/ExtUtils/xsubpp -typemap
> > /opt/IWS/perl/lib/ExtUtils/typemap -typemap typemap Parser.xs >Parser.tc
> > && mv Parser.tc Parser.c
> > cc -c -I/usr/local/include -DVERSION=\"3.07\" -DXS_VERSION=\"3.07\"
> > -fpic -I/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE -DMARKED_SECTION
> > Parser.c
> > cc: Warning: illegal option -fpic
> > "/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE/perlio.h", line 137: formal
> > parameter lacks name: param #1
> > "/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE/perlio.h", line 137: formal
> > parameter lacks name: param #2
> > "/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE/perlio.h", line 137: formal
> > parameter lacks name: param #3
> > "/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE/perlio.h", line 137: syntax
> > error before or at: __attribute__
> > "/opt/IWS/perl/lib/sun4-solaris/5.00404/CORE/perlio.h", line 137: warning:
> > syntax error: empty declaration
> > "/usr/include/ctype.h", line 43: cannot recover from previous errors
> > cc: acomp failed for Parser.c
> > *** Error code 2
> > make: Fatal error: Command failed for target `Parser.o'
> >
> > Cheers,
> > Sandeep Singal
> > Fidelity Investments
> > (416) 217-7549
> > ANGER IS ONLY ONE LETTER SHORT OF DANGER