Hello Everybody..

I have problem regarding perl module installation.

I had downloaded a perl module from CPAN,while installation MakeFile.PL goes fine, but "make" creates problem, it reports me error about saying that "/usr/ucb/cc- Language optional software package not installed" , however i have gcc installed in my system(Solaris), Now i modified the environment to use gcc instead of cc, but again it reports error, something like below..

cp t1.pl blib/lib/Acme/t1.pl cp Damn.pm blib/lib/Acme/Damn.pm /usr/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /us +r/local/lib/perl5/5.8.8/ExtUtils/typemap Damn.xs > Damn.xsc && mv Da +mn.xsc Damn.c cc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -I/ +usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U +SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -xO3 -xspace -xildoff -DVERS +ION=\"0.04\" -DXS_VERSION=\"0.04\" -KPIC "-I/usr/local/lib/perl5/5.8 +.8/sun4-solaris/CORE" Damn.c ucbcc: unrecognized option `-Xs' ucbcc: unrecognized option `-KPIC' ucbcc: language ildoff not recognized ucbcc: Damn.c: linker input file unused because linking not done ucbcc: -lucb: linker input file unused because linking not done ucbcc: -lsocket: linker input file unused because linking not done ucbcc: -lnsl: linker input file unused because linking not done ucbcc: -lelf: linker input file unused because linking not done ucbcc: -laio: linker input file unused because linking not done Running Mkbootstrap for Acme::Damn () chmod 644 Damn.bs rm -f blib/arch/auto/Acme/Damn/Damn.so cc -G -L/usr/local/lib -L/usr/lib Damn.o -o blib/arch/auto/Acme/Damn +/Damn.so \ \ ucbcc: Damn.o: No such file or directory ucbcc: unrecognized option `-Xs' *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/Acme/Damn +/Damn.so'

I guess the command line switches supported by "cc" is not supported by "gcc",Please provide any solution...I dont want to install "cc",

I guess without installation also, One can use the perl module, by putting the module file in the same directory. This works for me, except one module "Acme::Damn", in which it says, can not found loadable for "Acme::Damn".... Please have some look into the matter and provide solution...as i can not move with my project without it..

Thanks in Advance


In reply to CPAN Module Installation by ajeet@perl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.