Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^10: how to install perlmodules in windowsXP

by veeruch (Sexton)
on Mar 07, 2007 at 06:43 UTC ( [id://603574]=note: print w/replies, xml ) Need Help??


in reply to Re^9: how to install perlmodules in windowsXP
in thread how to install perlmodules in windowsXP

Hi Rob,
i removed namke ,now dmake is working.
But iam trying to installing Tk-804.027_500
dmake at the end of output is :

cp PNG.pm ..\blib\lib\Tk\PNG.pm
cd zlib && dmake -S -S libz.lib "CC=gcc "
<br> ar rcs libz.lib<br> rm -f<br>
C:\Tk-804.027_500\PNG\zlib>ar rcs libz.lib
C:\Tk-804.027_500\PNG\zlib>rm -f
Usage: rm -firRv -s file ...
dmake: Error code 130, while making 'libz.lib'
dmake: 'libz.lib' removed.
dmake: Error code 255, while making 'zlib\libz.lib'
dmake: Error code 255, while making 'subdirs'

C:\Tk-804.027_500>dmake test
cd pTk && dmake -S DEFINE=""
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp
widget ..\blib\script\widget
pl2bat.bat ..\blib\script\widget
cd zlib && dmake -S -S libz.lib "CC=gcc "
<br> ar rcs libz.lib<br> rm -f<br>

C:\Tk-804.027_500>dmake install
cd pTk && dmake -S DEFINE=""
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp
widget ..\blib\script\widget
pl2bat.bat ..\blib\script\widget
cd zlib && dmake -S -S libz.lib "CC=gcc "
<br> ar rcs libz.lib<br> rm -f<br>
  • Comment on Re^10: how to install perlmodules in windowsXP

Replies are listed 'Best First'.
Re^11: how to install perlmodules in windowsXP
by syphilis (Archbishop) on Mar 07, 2007 at 09:11 UTC
    Could you repost those errors - putting the copy'n'paste inside code tags. I find what you posted to be quite confusing - in fact I can't make sense of it at all.

    On ActivePerl build 817, I did find that Tk-800.027_500 failed to build using dmake and MinGW - yet using the very same dmake and MinGW with both my MinGW-built perl-5.8.8 and Strawberry Perl, Tk-804.027_500 built and tested fine.

    That section of the build process that you posted worked fine for me with build 817. I get:
    . . cp PNG.pm ..\blib\lib\Tk\PNG.pm cd zlib && dmake libz.a "CC=gcc " gcc -O3 -Wall -c -o adler32.o adler32.c gcc -O3 -Wall -c -o compress.o compress.c gcc -O3 -Wall -c -o crc32.o crc32.c gcc -O3 -Wall -c -o deflate.o deflate.c gcc -O3 -Wall -c -o gzio.o gzio.c gcc -O3 -Wall -c -o infback.o infback.c gcc -O3 -Wall -c -o inffast.o inffast.c gcc -O3 -Wall -c -o inflate.o inflate.c gcc -O3 -Wall -c -o inftrees.o inftrees.c gcc -O3 -Wall -c -o trees.o trees.c gcc -O3 -Wall -c -o uncompr.o uncompr.c gcc -O3 -Wall -c -o zutil.o zutil.c ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzio.o infback.o + inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o . .
    You did copy the 'startup' directory to the same location as 'dmake.exe' as per the instructions in the Readme that comes with the dmake bundle ?

    I haven't had a chance to properly investigate the failure with ActivePerl. Maybe tomorrow, if I get a chance. (I get a few linking errors with tkwinX.c - which I think will be resolved by successfully linking to libimm32.a. Hopefully it won't be too difficult to fix.)

    Cheers,
    Rob
    Update: For the record, linking to libimm32.a and libcomctl32.a fixes the problem. I'm not sure why they don't get linked in automatically, as happens with my other builds of perl. As "proof of concept" I opened up the ActivePerl lib/Config_heavy.pl and inserted " imm32.lib comctl32.lib" at the beginning of the libs=' ... entry. That's probably not the best way to fix the problem - it's just a hack that enables Tk-804.027_500 to build using MinGW and dmake on ActivePerl 817.
      Hi Rob,
      What is startup directory?
      dmake error output :
      gcc -o ..\blib\arch\auto\Tk\Scrollbar\Scrollbar.dll -Wl,--base-file -W +l,dll.base -mdll Scrollbar.o -Wl,--image-base,0x3f0f0000 ../pTk/libpTk.lib C:\Perl\lib\CORE\perl58.lib -lkernel32 -luser32 -lg +di32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 + -lodbccp32 -lmsvcrt dll.exp dlltool --def Scrollbar.def --base-file dll.base --output-exp dll.exp gcc -o ..\blib\arch\auto\Tk\Scrollbar\Scrollbar.dll -mdll Scrollbar.o +-Wl,--image-base,0x3f0f0000 ../pTk/libpTk.lib C:\Perl\li b\CORE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -l +advapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lmsvcrt dll.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\blib\arch\aut +o\Tk\Scrollbar\Scrollbar.dll No root path(s) specified at C:/Perl/lib/ExtUtils/Command.pm line 105 C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Scrollbar.bs ..\blib\ar +ch\auto\Tk\Scrollbar\Scrollbar.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\blib\arch\aut +o\Tk\Scrollbar\Scrollbar.bs cp Scale.pm ..\blib\lib\Tk\Scale.pm AutoSplitting ..\blib\lib\Tk\Scale.pm (..\blib\lib\auto\Tk\Scale) C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib +\ExtUtils\typemap -typemap C:/Tk-804.027_500/Tk/typemap Scale.xs > Scale.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e m +v Scale.xsc Scale.c gcc -c -I.. -I../pTk/mTk/xlib -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRIC +T -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE - DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_ +READFIX -DHASATTRIBUTE -fno-strict-aliasing -O2 -DVE RSION=\"804.0275\" -DXS_VERSION=\"804.0275\" "-IC:\Perl\lib\CORE +" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D_ _USE_FIXED_PROTOTYPES__ Scale.c Scale.c: In function `boot_Tk__Scale': Scale.c:55: warning: unknown conversion type character `_' in format Scale.c:55: warning: too many arguments for format Running Mkbootstrap for Tk::Scale () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Scale.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Tk::Scale\", 'DLBASE' => 'Scale', 'DL_FU +NCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_V ARS' => []);" Set up gcc environment - 3.4.2 (mingw-special) dlltool --def Scale.def --output-exp dll.exp gcc -o ..\blib\arch\auto\Tk\Scale\Scale.dll -Wl,--base-file -Wl,dll.ba +se -mdll Scale.o -Wl,--image-base,0x364d0000 ../pTk/libp Tk.lib C:\Perl\lib\CORE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinsp +ool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 - lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 +-lmsvcrt dll.exp dlltool --def Scale.def --base-file dll.base --output-exp dll.exp gcc -o ..\blib\arch\auto\Tk\Scale\Scale.dll -mdll Scale.o -Wl,--image- +base,0x364d0000 ../pTk/libpTk.lib C:\Perl\lib\CORE\perl5 8.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -ls +hell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lm pr -lwinmm -lversion -lodbc32 -lodbccp32 -lmsvcrt dll.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\blib\arch\aut +o\Tk\Scale\Scale.dll No root path(s) specified at C:/Perl/lib/ExtUtils/Command.pm line 105 C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Scale.bs ..\blib\arch\a +uto\Tk\Scale\Scale.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\blib\arch\aut +o\Tk\Scale\Scale.bs cp PNG.pm ..\blib\lib\Tk\PNG.pm cd zlib && dmake -S -S libz.lib "CC=gcc " [ ar rcs libz.lib rm -f ] C:\Tk-804.027_500\PNG\zlib>ar rcs libz.lib C:\Tk-804.027_500\PNG\zlib>rm -f Usage: rm [-firRv] [-d|-s] file ... dmake: Error code 130, while making 'libz.lib' dmake: 'libz.lib' removed. dmake: Error code 255, while making 'zlib\libz.lib' dmake: Error code 255, while making 'subdirs'
      dmake test
      C:\Tk-804.027_500>dmake test cd pTk && dmake -S DEFINE="" C:\Perl\bin\perl.exe -MExtUtils::Command -e cp widget ..\blib\script\w +idget pl2bat.bat ..\blib\script\widget cd zlib && dmake -S -S libz.lib "CC=gcc " [ ar rcs libz.lib rm -f ] C:\Tk-804.027_500\PNG\zlib>ar rcs libz.lib C:\Tk-804.027_500\PNG\zlib>rm -f Usage: rm [-firRv] [-d|-s] file ... dmake: Error code 130, while making 'libz.lib' dmake: 'libz.lib' removed. dmake: Error code 255, while making 'zlib\libz.lib' dmake: Error code 255, while making 'subdirs'
        What is startup directory?

        You should find it in the zip file (http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/dmake-4.7-20061120-SHAY.zip). From the 'Readme.txt' that ships with that zip package:
        DMAKE needs a set of startup files that are located in a subdirectory +called "startup" where DMAKE.EXE lives, or in a directory specified by a DMAK +EROOT environment variable. So, to install it, just copy DMAKE.EXE and the +startup subdirectory to some location on your path.
        I don't know if that's the problem.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-23 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found