Re: [Module-build-general] Proposal for Module::Build installation dirs
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-05-16 16:52:07
|
On Friday, May 16, 2003, at 10:29 AM, Jeff Macdonald wrote: > Ack, builddir should of been destdir and when I rerun the compile > destdir does what it should do. Good. > It also turns out it's not what I want. destdir is mostly useful for package managers, it's not generally useful for installing into a private location like ~/lib . > It seems I want sitelib (but maybe I'm mis-understanding what sitelib > is): > > From the README: > > > Alternatively, you could specify the "sitelib" parameter when you run > the "Build.PL" script: > > perl Build.PL sitelib=/my/secret/place/ Ack, sorry - that part of the documentation has been wrong for several releases now. It'll get fixed for the next release. >> Incidentally, Module::Build already lets you install to whatever >> directory you want, it's just not pretty: >> >> perl Build.PL config='siteperl=/foo/bar sitearch=/foo/bar/i386-linux >> installscript=/foo/bar/bin' > > Yes, it's butt ugly and requires me to know about %Config and > what my archname is. Yup. And I guess I shouldn't comment on this technique anymore, since it's now "the old way", and won't even necessarily work with version 0.19 once we get something better figured out. > I guess just setting sitelib isn't enough or > doesn't do what I thought it would do. Here's some output of Build, > I apologize for long lines below. I realize that it pass the tests > but it does issue warnings and it also shows the @INC problem and > it trying to install into a directory it doesn't have permission to. > Let me know how I can help (I'm about to try that patch you just sent > out): I'm hopeful that the patch will fix the warnings about B::Module::Info, by fixing the @INC problem. The permission warnings are of course because it's not paying attention to where you told it to install, which is a separate issue and what we'll have to hash out here. -Ken |