I am trying to setup a directory that contains Perl modules that should be set aside to not interfere with a production system.
This works OK, with modules that use Module::Install. I just specify a “lib” option and all is well. Now I tried and tried and I simply cannot make this happen with Module::Build. For instance, this command:
./Build install --lib /foo
Will install the module in “/foo/share/perl/5.10.0“.
How can I get rid off the “share/perl/5.10.0” part?
PS: Yes, I have taken a long look at the documentation and found some promising sections, but I simply must admit that I seem to be too stupid to grok them.
See
install_path. It looks like (I haven’t tried) you can either put in.modulebuildrcor specify on the command line all of the path options:./Build install --install_base $CUSTOMPERLSTUFF \ --install_path lib=$CUSTOMPERLSTUFF/lib \ --install_path arch=$CUSTOMPERLSTUFF/lib