Installing Perl modules into chroot
I'm trying to build Perl modules inside OpenBSD 4.7 Apache chroot under /var/www but am having problems with some modules. After running `ldd /usr/bin/perl` I've copied the files to a directory structure under /var/www/usr and changed the Apache httpd.conf, and this all works.
I am using `perl -MCPAN -e shell` to install the modules. I've set 'makepl_arg PREFIX=/var/www/usr LIB=/var/www/usr' but when I try to build certain modules it fails on some dependencies.
For example, with 'CPAN> install CGI' it wants to install FCGI and downloads, but 'make test' fails and thus, CGI.pm doesn't install without force. This also happens with Apache::Session and some dependencies that fail 'make test' and won't install without force.
Of course, if I start httpd with -u and install Perl modules under /usr then there aren't any problems.
Before using the shell I downloaded the modules from CPAN to build them but ran into conflicts with different versions of dependencies, so have attempted to use the shell to install into chroot without success.
What are the right variables to set so I can get the modules to install under chroot /var/www? PREFIX, LIB, PERLLIB, PERL5LIB... ??
|