ajeet@perl has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN Module Installation
by Corion (Patriarch) on Mar 24, 2010 at 13:40 UTC | |
|
Re: CPAN Module Installation
by almut (Canon) on Mar 24, 2010 at 13:40 UTC | |
by ajeet@perl (Acolyte) on Mar 25, 2010 at 05:43 UTC | |
|
Re: CPAN Module Installation
by marto (Cardinal) on Mar 24, 2010 at 13:43 UTC | |
by ajeet@perl (Acolyte) on Mar 25, 2010 at 05:57 UTC | |
by marto (Cardinal) on Mar 25, 2010 at 09:22 UTC | |
|
Re: CPAN Module Installation
by jmcnamara (Monsignor) on Mar 24, 2010 at 16:58 UTC | |
by ajeet@perl (Acolyte) on Mar 25, 2010 at 06:03 UTC |