Subject: Re: Re: Perl in chrooted area...?
To: Lubomir Sedlacik <salo@xtrmntr.org>
From: matthew sporleder <msporleder@gmail.com>
List: netbsd-users
Date: 10/31/2006 07:48:12
On 10/31/06, Lubomir Sedlacik <salo@xtrmntr.org> wrote:
> On Tue, Oct 31, 2006 at 08:34:51AM +0100, Mats wrote:
> > That was an excellent debugging command. I did chroot -u root
> > /home/www and that gave the following from the script, the print
> > command in perl couldn't be executed.
> > print: not found
> > When trying just type perl gave -
> > perl: 1: Syntax error: word unexpected (expecting ")")
> >
> > I'm still stucked but that gave me hope at least. Should I create
> > some tmp or null directory or something like that?
>
> looks like you are missing the dynamic linker (/libexec/ld.elf_so) in
> your chroot.  you can't run dynamically linked binaries without it.
>

You may also be missing the perl modules.  Check your @INC and make
sure it's duplicated in the chroot.