Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I am exploring options on how to create a document from Perl. Some of the options were to create a Word document (but I hear that sucks, partially because there is no real standard for their formats); RTF (as an alternative for the .doc); or LaTex to create a PDF. I happened to come across PDF::Create on CPAN (to see if I can bypass latex), but it won't even install. I am coming here to see if this is a bug, or if I'm just doing something wrong.

I am using Perl 5.16.0, on Red Hat 5.6. The complete error output is as follows:

Writing /home/fg4y8n/.cpan/Metadata Running install for module 'PDF::Create' Running make for M/MA/MARKUSB/PDF-Create-1.06.tar.gz Checksum for /home/fg4y8n/.cpan/sources/authors/id/M/MA/MARKUSB/PDF-Cr +eate-1.06.tar.gz ok Scanning cache /home/fg4y8n/.cpan/build for sizes ...................................................................... +......DONE Building M/MA/MARKUSB/PDF-Create-1.06.tar.gz Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'PDF-Create' version '1.06' Building PDF-Create MARKUSB/PDF-Create-1.06.tar.gz ./Build -- OK Running Build test t/01-basic.t .......... ok t/02-string.t ......... ok t/03-image.t .......... ok t/04-drawing.t ........ ok t/05-outline.t ........ ok t/06-annotation.t ..... ok t/07-fonts.t .......... ok t/09-cgi.t ............ Can't locate object method "catfile" via packa +ge "File::Spec" (perhaps you forgot to load "File::Spec"?) at t/09-cg +i.t line 19. # Looks like your test exited with 255 before it could output anything +. t/09-cgi.t ............ Dubious, test returned 255 (wstat 65280, 0xff0 +0) Failed 2/2 subtests t/99-wifi-parabola.t .. ok Test Summary Report ------------------- t/09-cgi.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 2 tests but ran 0. Files=9, Tests=119, 1 wallclock secs ( 0.06 usr 0.02 sys + 0.50 cus +r 0.09 csys = 0.67 CPU) Result: FAIL Failed 1/9 test programs. 0/119 subtests failed. MARKUSB/PDF-Create-1.06.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports MARKUSB/PDF-Create-1.06.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: MARKUSB/PDF-Create-1.06.tar.gz : make_test NO

File::Spec is installed and is up to date, so Iím not sure where thatís coming from.

P.S. Any advice on creating a document would be appreciated as well.

In reply to PDF::Create fails on install by ric00015

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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?

    What's my password?
    Create A New User
    and one hand claps...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (5)
    As of 2018-04-26 16:30 GMT
    Find Nodes?
      Voting Booth?