Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Taken from my command line: Please help, I must be doing something wrong as I am having a hard time installing it using nmake as well.
C:\Documents and Settings\Administrator>ppm install Win32::Printer
ppm install failed: Can't find any package that provides Win32::Printer

C:\Documents and Settings\Administrator>cpan Win32::Printer
Set up gcc environment - 3.4.5 (mingw-vista special r3)
CPAN: Term::ANSIColor loaded ok (v3.02)
CPAN: Storable loaded ok (v2.34)
Reading 'C:\Perl\cpan\Metadata'
Database was generated on Sun, 09 Dec 2012 12:07:03 GMT
Running install for module 'Win32::Printer'
Running make for W/WA/WASX/Win32-Printer-0.9.1.zip
CPAN: Digest::SHA loaded ok (v5.71)
'-qdt' is not recognized as an internal or external command,
operable program or batch file.
Checksum for C:\Perl\cpan\sources\authors\id\W\WA\WASX\Win32-Printer-0.9.1.zip ok
CPAN: Archive::Zip loaded ok (v1.30)
CPAN: CPAN::Meta loaded ok (v2.120630)

CPAN.pm: Building W/WA/WASX/Win32-Printer-0.9.1.zip

Set up gcc environment - 3.4.5 (mingw-vista special r3)
Inlude FreeImage image support? y: y
Inlude Ghostscript PDF support? y: y

DO NOT FORGET TO SET A Postscript PRINTER AS DEFAULT FOR THE TESTS TO SUCCEED!

Inlude ebbl barcode support? y: y
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for Delayimp.lib
Writing Makefile for Win32::Printer
Writing MYMETA.yml and MYMETA.json
CPAN: Module::CoreList loaded ok (v2.70)
cp Printer/Direct.pm blib\lib\Win32\Printer\Direct.pm
cp Printer/Enum.pm blib\lib\Win32\Printer\Enum.pm
cp Printer.pm blib\lib\Win32\Printer.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\
typemap -typemap typemap Printer.xs > Printer.xsc && C:\Perl\bin\perl.exe -MExt
Utils::Command -e mv -- Printer.xsc Printer.c
C:\Perl\site\bin\gcc.exe -c -I.\3PLibs\FreeImage -I.\3PLibs\Ghostscript -I.\3PL
ibs\ebbl -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS
-DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_
USE_32BIT_TIME_T -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2
-DVERSION=\"0.9.1\" -DXS_VERSION=\"0.9.1\" -DFREE -DGHOST -DEBBL -DWIN_IMPOR
T "-IC:\Perl\lib\CORE" Printer.c
Printer.xs: In function `XS_Win32__Printer__CreatePen':
Printer.xs:910: warning: assignment makes integer from pointer without a cast
Printer.xs: In function `XS_Win32__Printer__GetWinMetaFile':
Printer.xs:1260: error: syntax error before "_int16"
Printer.xs:1260: warning: no semicolon at end of struct or union
Printer.xs:1261: error: `_int16' undeclared (first use in this function)
Printer.xs:1261: error: (Each undeclared identifier is reported only once
Printer.xs:1261: error: for each function it appears in.)
Printer.xs:1267: error: `METAFILE_HEADER' undeclared (first use in this function
)
Printer.xs:1267: error: `PMETAFILE_HEADER' undeclared (first use in this functio
n)
Printer.xs:1274: error: syntax error before "MfHdr"
Printer.xs:1279: error: `lpszMetaFile' undeclared (first use in this function)
Printer.xs:1287: error: `MfHdr' undeclared (first use in this function)
Printer.xs:1301: warning: passing arg 2 of `GetMetaFileBitsEx' makes integer fro
m pointer without a cast
Printer.xs:1304: error: `hdc' undeclared (first use in this function)
Printer.c: At top level:
Printer.c:2108: error: syntax error before "void"
Printer.c:2108: error: syntax error before "PerlInterpreter"
Printer.xs: In function `XS_Win32__Printer__EBbl':
Printer.xs:1332: warning: assignment makes integer from pointer without a cast
Printer.xs:1337: error: `__try' undeclared (first use in this function)
Printer.xs:1337: error: syntax error before '{' token
Printer.xs:1346: error: `pen' undeclared (first use in this function)
Printer.xs:1347: error: `prepen' undeclared (first use in this function)
Printer.xs:1347: error: `hdc' undeclared (first use in this function)
Printer.xs:1348: error: `ebc' undeclared (first use in this function)
Printer.xs:1349: error: `RETVAL' undeclared (first use in this function)
Printer.xs:1349: error: `string' undeclared (first use in this function)
Printer.xs:1349: error: `x' undeclared (first use in this function)
Printer.xs:1349: error: `y' undeclared (first use in this function)
Printer.xs:1352: error: `emf' undeclared (first use in this function)
Printer.xs: At top level:
Printer.xs:1356: error: syntax error before '(' token
Printer.c:2178: error: syntax error before '(' token
Printer.c:2178: error: syntax error before ')' token
Printer.c:2180: error: syntax error before '=' token
Printer.c:2180: error: syntax error before '++' token
Printer.c:2182: error: syntax error before "PerlInterpreter"
Printer.xs: In function `XS_Win32__Printer__LoadBitmap':
Printer.xs:1401: error: `__try' undeclared (first use in this function)
Printer.xs:1401: error: syntax error before '{' token
Printer.xs:1408: error: `Type' undeclared (first use in this function)
Printer.xs:1409: error: `Image' undeclared (first use in this function)
Printer.xs:1409: error: `BmpFile' undeclared (first use in this function)
Printer.xs:1411: error: `lpbmi' undeclared (first use in this function)
Printer.xs:1412: error: `hdc' undeclared (first use in this function)
Printer.xs:1413: error: `du' undeclared (first use in this function)
Printer.xs:1415: error: `resolutionX' undeclared (first use in this function)
Printer.xs:1416: error: `resolutionY' undeclared (first use in this function)
Printer.xs:1422: error: `RETVAL' undeclared (first use in this function)
Printer.xs: At top level:
Printer.xs:1433: error: syntax error before '(' token
Printer.c:2281: error: syntax error before '=' token
Printer.c:2281: error: syntax error before '++' token
Printer.c:2283: error: syntax error before "PerlInterpreter"
Printer.xs: In function `XS_Win32__Printer__GhostPDF':
Printer.xs:1828: warning: assignment makes integer from pointer without a cast
Printer.xs:1830: error: `__try' undeclared (first use in this function)
Printer.xs:1830: error: syntax error before '{' token
Printer.xs: At top level:
Printer.xs:1840: error: syntax error before '(' token
Printer.c:2847: error: syntax error before '=' token
Printer.c:2847: error: syntax error before '++' token
Printer.c:2849: error: syntax error before "PerlInterpreter"
.xs: In function `XS_Win32__Printer__Inject':
Printer.xs:1892: error: `PSINJECTDATA' undeclared (first use in this function)
Printer.xs:1892: error: syntax error before "psd"
Printer.xs:1896: error: `PSIDENT_PSCENTRIC' undeclared (first use in this functi
on)
Printer.xs:1899: error: `psd' undeclared (first use in this function)
Printer.xs:1905: error: `POSTSCRIPT_IDENTIFY' undeclared (first use in this func
tion)
Printer.xs:1906: error: `POSTSCRIPT_INJECTION' undeclared (first use in this fun
ction)
dmake.exe: Error code 129, while making 'Printer.o'
WASX/Win32-Printer-0.9.1.zip
C:\Perl\site\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.38)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible


In reply to Re^2: win32::printer 5.16 will not install by blenkhn
in thread win32::printer 5.16 will not install by blenkhn

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (6)
    As of 2014-07-11 04:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      When choosing user names for websites, I prefer to use:








      Results (218 votes), past polls