in reply to PayFlow Pro problem
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:
I changed it to:my $LIBS = '-L./lib -L. -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:my $libdir = "/dir/to/install/stuff"; my $LIBS = "-L$libdir -lpfpro -lMSVCRT ";
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.< 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") ) {
Good luck.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PayFlow Pro problem
by ilcylic (Scribe) on Apr 06, 2007 at 23:56 UTC | |
|
Re^2: PayFlow Pro problem
by Anonymous Monk on Jan 06, 2006 at 17:38 UTC |