DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th July 2010
gpatrick gpatrick is offline
Shell Scout
 
Join Date: Nov 2009
Posts: 103
Thanked 0 Times in 0 Posts
Default 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... ??
Reply With Quote
  #2   (View Single Post)  
Old 19th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,435
Thanked 214 Times in 189 Posts
Default

You may find this thread in misc@ helpful. Or not.

http://marc.info/?l=openbsd-misc&m=125492131312085&w=2
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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 06:18 AM
Chroot web-browsing Oko OpenBSD Security 1 29th December 2008 01:37 PM
c programming - Modules corey_james Programming 3 6th November 2008 08:49 PM


All times are GMT. The time now is 01:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick