in reply to Local CPAN modules
Been there, done that. :-)
What I do is simply do this:
- Untar everything (check if it's untarred already)
- Loop:
- If Build.PL exists:
- Run $^X -I$install_base/lib Build.PL --install_base $install_base, and catch the output.
- Check for /ERROR: Prerequisite (\S+) isn't installed/. If found, go to next item in loop.
- Run $^X Build install (if failed, go to next item)
- Delete current build from to-do hash.
- Run $^X -I$install_base/lib Makefile.PL LIB=$install_base/lib PREFIX=$install_base, and catch the output.
- Check for /prerequisite\s*(\S+)\s.*not found/. If found, go to next item in loop.
- Run make install (if failed, go to next item)
- Delete current build from to-do hash.
- If Build.PL exists:
- After each iteration of the loop, if the size of the to-do hash is non-zero and hasn't changed (meaning some prereqs may not be satisfied, or some installs failed), bail. (This is important :->)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Local CPAN modules
by Jeppe (Monk) on Feb 05, 2008 at 11:01 UTC |
In Section
Seekers of Perl Wisdom