Subject: | Your "perl Build.PL" doesn't honor Module::Build options like --install_base |
Hello,
It looks like you've hard coded in your Build.PL code all the options you wish to allow in your code via a call to GetOptions() and it didn't allow for installing your module in alternate locations. Or any of a dozen other options natively supported by Module::Build.
Other modules allow "perl Build.PL --install_base /<install-dir>" so that you can install your module in an alternate location when you don't have access to update the perl library tree.
This is the equivalent to "perl Makefile.PL INSTALL_BASE=/<install-dir>".
So maybe it's best to just ignore the result to GetOptions() & don't call die with a usage statement. Or just add a --help option to call die with the usage instead. GetOptions() doesn't monkey with @ARGV, so your call to it shouldn't bother Module::Build any. Though you may want to look into if there was any way to suppress the "Unknown option:" messages it writes to STDERR to avoid build confusion.
For more details & the options to support see
http://search.cpan.org/~leont/Module-Build-0.4214/lib/Module/Build.pm#INSTALL_PATHS
Curtis