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... ??
|Thread||Thread Starter||Forum||Replies||Last Post|
|ftp jailing ftp-chroot||pico||OpenBSD Security||4||30th March 2010 06:44 AM|
|Problem setting up perl modules||badguy||OpenBSD Installation and Upgrading||4||10th August 2009 09:46 PM|
|kernel modules||Mr-Biscuit||FreeBSD General||0||2nd March 2009 05:18 AM|
|Chroot web-browsing||Oko||OpenBSD Security||1||29th December 2008 12:37 PM|
|c programming - Modules||corey_james||Programming||3||6th November 2008 07:49 PM|