Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Installing Modules using CPAN

by jedikaiti (Friar)
on Mar 05, 2010 at 23:49 UTC ( #827079=perlquestion: print w/ replies, xml ) Need Help??
jedikaiti has asked for the wisdom of the Perl Monks concerning the following question:

OK, so I tried to use the CPAN module to install the Template module, but we're having compiler issues. (New job, new-to-me machine, and I'm learning Perl, so please, be kind.) Got it to use the GCC compiler, but now we get these errors:

gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" Stash.c
gcc: unrecognized option `-KPIC'
gcc: language ildoff not recognized

Can anyone give any advice, please? My initial google searches are not being helpful so far.

Thanks!
Kaiti

Comment on Installing Modules using CPAN
Re: Installing Modules using CPAN
by almut (Canon) on Mar 06, 2010 at 00:42 UTC

    Those options (-KPIC, etc.) are from the configuration that the perl binary had originally been built with.  As -KPIC is only known to the Sun system compiler (and not gcc), it follows (apparently) that your perl had been built with the Sun system compiler.

    While you could in theory try to match up the respective options (e.g. replace -KPIC with -fPIC, etc.) by perusing the man pages of both cc and gcc, there's unfortunately no guarantee whatsoever that it'll eventually work... (i.e. that gcc will generate machine code that's 100% binary compatible with the code generated by cc).

    The easy way out would be to either find an installation of a Sun(-Studio something) compiler, or to compile a new perl binary yourself from scratch using gcc.

      Thanks! I was afraid of that.

      Kaiti

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://827079]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2014-10-02 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls