Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: PDF::Create fails on install

by monkey_boy (Priest)
on Nov 26, 2013 at 23:29 UTC ( #1064496=note: print w/ replies, xml ) Need Help??


in reply to PDF::Create fails on install


The part of that test code below:

use strict; use File::Basename; use PDF::Create; use Test::More tests => 2; use Config; my $pdfname = $0; $pdfname =~ s/\.t/\.pdf/; my $cginame = File::Spec->catfile(dirname($0) . "/09-cgi-script.pl");

It doesnt use File::Spec, so i dont think that test could ever pass, seems like a bug of the author & as the others pass you could safely force the install.


This is not a Signature...


Comment on Re: PDF::Create fails on install
Select or Download Code
Replies are listed 'Best First'.
Re^2: PDF::Create fails on install
by DrHyde (Prior) on Nov 27, 2013 at 11:29 UTC
    Presumably it used to work because one of the other modules being pulled in used File::Spec, but the current version of whatever that module was doesn't. This is why you should always declare *all* your pre-requisites in Makefile.PL, even those that you know are pulled in by other pre-reqs, and you should always 'use' *all* the modules you refer to.

      This is why you should always declare *all* your pre-requisites in Makefile.PL, even those that you know are pulled in by other pre-reqs, and you should always 'use' *all* the modules you refer to.

      Can I assume that you do not mean that you should also list those packages that you do not directly use?

      For example, let's assume that I use the Foo::Bar package, and Foo::Bar uses Biz::Bang and Biz::Biff under the hood. I also make a call to Biz::Biff::frobnitz() from within my code. I am assuming that you are saying:

      • I should do a use Biz::Biff.
      • I should list Foo::Bar and Biz::Biff as prerequisites.
      I am also assuming that you are not saying that I should list Biz::Bang as a prerequisite, as that is an implementation detail of Foo::Bar, and unrelated to my own code.

      I just want to clarify my understanding, since my parser is coming up with two different meanings of your statement. If this is the correct reading of your statement, I agree 100%. As a clarification, I would probably s/your pre-requisites/your direct pre-requisites/.

      --MidLifeXis

        You assume correctrly.
Re^2: PDF::Create fails on install
by ric00015 (Beadle) on Nov 26, 2013 at 23:55 UTC

    Ah, thanks. I'll just ignore the error, force install the module and report it as a bug.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (16)
As of 2015-07-29 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls