You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Rogelio Sevilla <se...@ucol.mx> on 2001/09/20 02:41:51 UTC

Installing Perl Modules

Im triying to install some perl moduloes.. for example  the MD5 module.. i
ran:
perl Makefile.PL
and then, i need to chancge the cc to gcc from the Makefile file.

this is the Makefile file:
AR = ar
CC = gcc
CCCDLFLAGS = -KPIC
CCDLFLAGS = -R /usr/perl5/5.00503/sun4-solaris/CORE
DLEXT = so
DLSRC = dl_dlopen.xs
LD = cc

After this, i ran make and  this is the output.

mkdir blib
mkdir blib/lib
mkdir blib/lib/Digest
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Digest
mkdir blib/arch/auto/Digest/MD5
mkdir blib/lib/auto
mkdir blib/lib/auto/Digest
mkdir blib/lib/auto/Digest/MD5
mkdir blib/man3
cp MD5.pm blib/lib/Digest/MD5.pm
//bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
/usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
/usr/perl5/5.00503/ExtUtils/typemap -typemap typemap MD5.xs >xstmp.c && mv
xstmp.c MD5.c
gcc -c   -xO3 -xdepend     -DVERSION=\"2.16\"  -DXS_VERSION=\"2.16\" -KPIC
-I/usr/perl5/5.00503/sun4-solaris/CORE -DU32_ALIGNMENT_REQUIRED MD5.c
gcc: unrecognized option `-KPIC'
gcc: language depend not recognized
gcc: MD5.c: linker input file unused since linking not done
Running Mkbootstrap for Digest::MD5 ()
chmod 644 MD5.bs
LD_RUN_PATH="" cc -o blib/arch/auto/Digest/MD5/MD5.so  -G MD5.o
cc: MD5.o: No such file or directory
cc: No input files
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/Digest/MD5/MD5.so


Im using Solaris 2.8 Sparc

Thnx



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Installing Perl Modules

Posted by Rogelio Sevilla <se...@ucol.mx>.
Ok.. i changed the Makefile
#CCCDLFLAGS = -KPIC
CCCDLFLAGS = ""
CCDLFLAGS = -R /usr/perl5/5.00503/sun4-solaris/CORE
DLEXT = so
DLSRC = dl_dlopen.xs
LD = cc
LDDLFLAGS = -G
LDFLAGS =

:> make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Digest
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Digest
mkdir blib/arch/auto/Digest/MD5
mkdir blib/lib/auto
mkdir blib/lib/auto/Digest
mkdir blib/lib/auto/Digest/MD5
mkdir blib/man3
cp MD5.pm blib/lib/Digest/MD5.pm
//bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
/usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
/usr/perl5/5.00503/ExtUtils/typemap -typemap typemap MD5.xs >xstmp.c && mv
xstmp.c MD5.c
gcc -c   -xO3 -xdepend     -DVERSION=\"2.16\"  -DXS_VERSION=\"2.16\" ""
-I/usr/perl5/5.00503/sun4-solaris/CORE -DU32_ALIGNMENT_REQUIRED MD5.c
gcc: : No such file or directory
gcc: language depend not recognized
*** Error code 1
make: Fatal error: Command failed for target `MD5.o



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Installing Perl Modules

Posted by Quentin Smith <qu...@comclub.dyndns.org>.
On Wed, 19 Sep 2001, Rogelio Sevilla wrote:

> Im triying to install some perl moduloes.. for example  the MD5 module.. i
> ran:
> perl Makefile.PL
> and then, i need to chancge the cc to gcc from the Makefile file.
>
> this is the Makefile file:
> AR = ar
> CC = gcc
> CCCDLFLAGS = -KPIC
change this to CCCDLFLAGS = ""
if you don't want to follow my advice below, that is.
> CCDLFLAGS = -R /usr/perl5/5.00503/sun4-solaris/CORE
> DLEXT = so
> DLSRC = dl_dlopen.xs
> LD = cc
It's a no-no to edit Makefiles created by perl. Perhaps something like
this would work: perl Makefile.PL CC=gcc. However, I do not see why you
need to change the compiler used. Makefile.PL should pickup the compiler
used to compile perl and use that.
 > After this, i ran make and  this is
the output. >
> mkdir blib
> mkdir blib/lib
> mkdir blib/lib/Digest
> mkdir blib/arch
> mkdir blib/arch/auto
> mkdir blib/arch/auto/Digest
> mkdir blib/arch/auto/Digest/MD5
> mkdir blib/lib/auto
> mkdir blib/lib/auto/Digest
> mkdir blib/lib/auto/Digest/MD5
> mkdir blib/man3
> cp MD5.pm blib/lib/Digest/MD5.pm
> //bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
> /usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
> /usr/perl5/5.00503/ExtUtils/typemap -typemap typemap MD5.xs >xstmp.c && mv
> xstmp.c MD5.c
> gcc -c   -xO3 -xdepend     -DVERSION=\"2.16\"  -DXS_VERSION=\"2.16\" -KPIC
> -I/usr/perl5/5.00503/sun4-solaris/CORE -DU32_ALIGNMENT_REQUIRED MD5.c
> gcc: unrecognized option `-KPIC'
> gcc: language depend not recognized
> gcc: MD5.c: linker input file unused since linking not done
> Running Mkbootstrap for Digest::MD5 ()
> chmod 644 MD5.bs
> LD_RUN_PATH="" cc -o blib/arch/auto/Digest/MD5/MD5.so  -G MD5.o
> cc: MD5.o: No such file or directory
> cc: No input files
> *** Error code 1
> make: Fatal error: Command failed for target
> `blib/arch/auto/Digest/MD5/MD5.so
>
>
> Im using Solaris 2.8 Sparc
>
> Thnx

HTH,
--Quentin


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org