Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Installing Modules using CPAN

by jedikaiti (Hermit)
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.


Replies are listed 'Best First'.
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://827079]
Approved by toolic
[LanX]: well try to find my profile xD
[marto]: derp
[marto]: I've never had an account, and wouldn't visit the site
LanX having only a fake profile is hard if a flirt asks to befriend you
[erix]: "surveillance companies" have been rebranded as "social media"
[LanX]: I'm using whatapp though :-/
[LanX]: Snowden remins me of Evan Spiegel (... start of a new conspiracy theory)
[LanX]: yes! The same person!
[Eily]: LanX can't be, they're both on the picture at the same time. Duh

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2018-03-19 15:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.