moot has asked for the wisdom of the Perl Monks concerning the following question:
Well I was hoping to complete this task without bothering SoPW, but both google and super-search have not been my friends.
I'm building a newer version of perl (5.8.6) on a platform which is no longer supported and therefore has no package later than 5.6.1. It's being built on a system where I can't overwrite the existing perl (for various reasons) and will be deployed as a package to identical systems that lack for a compiler.
Sounds like a job for chroot, I thought - build new perl, install it in a chroot environment, and then package up from there.
However, the gods are not smiling. I receive the following error:
..this indicates to me that something is missing from the chroot environment (the same command launched from the same directory but without chrootiness works fine), but what? Attempts to run miniperl -Ilib -e with other code meets the 'Can't open perl script "-e"' error, but miniperl functions just fine as a stand-alone perl, i.e. when run without -e.# make install make install.perl install.man STRIPFLAGS= DESTDIR="" AutoSplitting perl library ./miniperl -Ilib -e 'use AutoSplit; autosplit_lib_modules(@ARGV)' lib +/*.pm Can't open perl script "-e": No such file or directory *** Error code 9 Stop in /perl-5.8.6 (line 371 of makefile). *** Error code 1 Stop in /perl-5.8.6 (line 440 of makefile).
Any ideas what could be missing? Has anymonk ever successfully installed perl in a chroot environment?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Building perl in chroot
by salva (Canon) on May 05, 2005 at 18:26 UTC | |
by moot (Chaplain) on May 05, 2005 at 19:06 UTC | |
by salva (Canon) on May 05, 2005 at 19:46 UTC | |
|
Re: Building perl in chroot
by jasonk (Parson) on May 05, 2005 at 19:17 UTC | |
by moot (Chaplain) on May 05, 2005 at 19:41 UTC | |
|
Re: Building perl in chroot
by polettix (Vicar) on May 05, 2005 at 19:51 UTC |