For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2007 > Response to the question of how do you build and install PadWalker









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Response to the question of how do you build and install PadWalker
rmzerby@yahoo.com

2007-07-26, 6:59 pm

****************************************
****************************************
****************************************
************
This information answers the question of how do you build and install
PadWalker. I could not find a concise explanation of how do you build
and install this module on any one group. I tried replying to a post
asking this exact question but was only able to reply to the original
author. I think this information will benifit others that are very new
to perl so I am directly posting this information. (I have about 36
hours under my belt now)

I am hoping this will be a benefit to others just trying to install
this or any other perl package.

Any corrections are comments about this matter will be appreciated.
****************************************
****************************************
****************************************
************

To Installing PadWalker 1.5 (Active Perl)

First download package from http://search.cpan.org/dist/PadWalker/

(1). First you must generate the makefile by running the makefile.pl
script

perl makefile.pl

(2) Secondly you must then build the PadWalker object file by invoking
the C make file

nmake makefile

(3) Thirdly you must create the PadWalker DLL file by invoking the
linker

link -out:blib\arch\auto\PadWalker\PadWalker.dll -dll -nologo -
nodefaultlib -debug -opt:ref,icf -libpath:"C:\perl\lib\CORE" -
machine:x86 PadWalker.obj C:\perl\lib\CORE\perl58.lib oldnames.lib
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib -def:PadWalker.def

(4) Copies and changes the permissions using perl (I am fuzz here)

C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 PadWalker.bs

C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto
\PadWalker\PadWalker.dll

C:\perl\bin\perl.exe -MExtUtils::Command -e cp PadWalker.bs blib\arch
\auto\PadWalker\PadWalker.bs

C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto
\PadWalker\PadWalker.bs

(5) Testing the newly compiled DLL (realy )

C:\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t

(6) Mounting the new package (copy)

>From \PadWalker-1.5


Copy PadWalker.PM to \perl\lib

>From \PadWalker-1.5\blib\arch\auto


Copy PadWalker to \Perl\lib\auto\PadWalker

Dir \Perl\lib\auto\PadWalker

..
...
PadWalker.bs
PadWalker.dll
PadWalker.exp
PadWalker.lib

(7) Test under perl

Run the following perl script

#!/usr/bin/env perl
BEGIN { require PadWalker }
use PadWalker qw( p_my );

my $x = 1;
my $h = p_my (0);
${$h->{'$x'}}++;

print $x; # prints 2

${$h->{'$x'}}++;

print $x; # prints 3


(Some times I get to have more fun the one person should be allowed to
have)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com