Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^5: INSTALLSCRIPT Not Workingby bergbrains (Acolyte) |
on Oct 04, 2010 at 18:07 UTC ( [id://863394]=note: print w/replies, xml ) | Need Help?? |
It's just a matter of time before I forget the solution I found here, so I know I'll be back one day and wanted to clear up what I found as a solution here and what the problem actually appears to have been. First of all, EXE_FILES is obviously not the solution. Forget that. Neither was the problem in ExtUtils::MakeMaker, rather it was with the way that CPANPLUS was building and executing the "perl Makefile.PL". What seems to have been happening is that, in addition to the value that I was setting for PREFIX or INSTALL_BASE for the makemakerflags, the entire line was being appended to the value of PREFIX, so I'd wind up with something like this in my Makefile after the configuration was executed: INSTALL_BASE = /home/nypntdev/iprs_perl INSTALLSCRIPT=/home/nypntdev/iprs_perl/x86_64/binThe solution was to populate the PERL_MM_OPT environment variable that is used by ExtUtils::MakeMaker. http://search.cpan.org/~mschwern/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm#PERL_MM_OPT says: Command line options used by MakeMaker->new(), and thus by WriteMakefile(). The string is split on whitespace, and the result is processed before any actual command line arguments are processed.So, there you have it.
In Section
Seekers of Perl Wisdom
|
|