Basically, the problem is what the error says. The module can't find that file, so it can't load it. The makefile for this module is a bit strange, and it puts things in strange places.

Normally I avoid messing directly with a Makefile.PL, but in this case I had to. If you look at the code in Makefile.PL, you'll see they try to play games with the various libs where things are installed. Depending on where you run the install and how your system is configured, it may or may not put things in the correct place.

My solution was to modify the $LIBS variable they set at the top of the Makefile.PL. The original looks like:

my $LIBS = '-L./lib -L. -lpfpro -lMSVCRT ';
I changed it to:
my $libdir = "/dir/to/install/stuff"; my $LIBS = "-L$libdir -lpfpro -lMSVCRT ";
Assuming that directory exists and you can write to it, you can follow through the rest of the file and make these changes:
< mkdir("lib",0744); --- > # mkdir("lib",0744); < copy("../lib/$file","lib/$file"); --- > copy("../lib/$file","$libdir/$file"); < chmod($m,"lib/$file"); < if ( !(-e "lib/$file") ) { --- > chmod($m,"$libdir/$file"); > if ( !(-e "$libdir/$file") ) {
I admit this is less than elegant, but I couldn't figure out what they were trying to do and this got things working for me.

Good luck.


In reply to Re: PayFlow Pro problem by cbrandtbuffalo
in thread PayFlow Pro problem by Anonymous Monk

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!
  • 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, details, 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, summary, 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.