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

Hi,
I am trying to install the HTML-Parser-3.45 module on Unix platform. I have downloaded the module from CPAN. When I try to run the command "make" on command prompt, it gave me the error "sh: gcc not found". I figured out that the command gcc is not working and hence changed the "Makefile" in the line from "CC = gcc" to "CC = cc". Now, I encountered the error which says that the options are available only with the C/ANSI C product. Example for this is:
(Bundled) cc: warning 422: Unknown option "m" ignored.
(Bundled) cc: warning 480: The -p option is available only with the C/ANSI C product; ignored.

Please tell me from where can I download the module that gets compiled with my Unix version of C. In case, I need to upgrade my C version of Unix from where can it be done. I need to install the following perl modules:
HTML::Parser
Compress::Zlib
Net::FTP
Mechanize
libwww-per
HTML::Forms
Test-Simple
HTML-Parser

Thanks
Akhil
  • Comment on Problem in installation of a perl module

Replies are listed 'Best First'.
Re: Problem in installation of a perl module
by PodMaster (Abbot) on Mar 29, 2005 at 10:20 UTC
    I figured out that the command gcc is not working and hence changed the "Makefile" in the line from "CC = gcc" to "CC = cc". Now, I encountered the error which says that the options are available only with the C/ANSI C product.
    So why don't you change the options? perl -V:cc tells you the name of the compiler your perl was compiled with. perl -V:ccflags tells you what options will be passed. See `perldoc ExtUtils::MakeMaker' for more.

    What you should really do is either recompile perl with cc, or install gcc.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Problem in installation of a perl module
by polettix (Vicar) on Mar 29, 2005 at 10:15 UTC
    Many modules rely on the presence of other software, like the GNU Compiler Collection (aka gcc). Probably, the compiler you have isn't - er - fully compatible with the code in the state it is at the moment. It could be just a matter of compiler directives and switches (which would be luck for you), or a more serious problem that could cause you to install the new compiler.

    To be on the safe side, and considering how many modules you have to install, you should jump onto GCC and get rid of many headaches. You don't say which U*ix you're working into, but I bet that you can find precompiled packages for many platforms if you don't want (or cannot) recompile it from the scratch.

    Flavio

    Don't fool yourself.