From owner-freebsd-questions@FreeBSD.ORG Fri Oct 2 14:00:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53614106566B for ; Fri, 2 Oct 2009 14:00:09 +0000 (UTC) (envelope-from troy@kocherfamily.org) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 125B78FC0C for ; Fri, 2 Oct 2009 14:00:08 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so364970qwi.7 for ; Fri, 02 Oct 2009 07:00:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.16.73 with SMTP id n9mr2845038qca.70.1254490179449; Fri, 02 Oct 2009 06:29:39 -0700 (PDT) Date: Fri, 2 Oct 2009 08:29:39 -0500 Message-ID: <1e3f5d680910020629x52510b74o5763c6c25eea8787@mail.gmail.com> From: Troy Kocher To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Ezjail, Perl, upgrading & best practices advise please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 14:00:09 -0000 All, Couple issues: 1) I need some understanding on how to deploy and upgrade perl properly in this jailed environment. 2) I need some help on my current tangle of Perl library complaints Issue #1: In a jailed environment how many installations of perl are recommended (ie 1 host system 2 basejail 3 each jail) ? =A0My sense would be that one on the host and one in the basejail, would be the most efficient. =A0If that is the case how do I upgrade the perl in the basejail? =A0How do I handle different versions of perl installed in each of the jails? Issue #2: =A0My lack of understanding has me in a mess currently. =A0My host environment is using (perl-threaded-5.8.9_3), in jail #1 I have (perl-5.8.9_3) when I try to use cpan here is what happens: jail1#perl -MCPAN -e 'shell' Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9301) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) print() on closed filehandle FOUT at /usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 193. readline() on closed filehandle FIN at /usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 301. print() on closed filehandle FOUT at /usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 203. Terminal does not support GetHistory. Lockfile removed. In Jail #2 another issue. . : jail2#pkg_info |grep perl mod_perl2-2.0.3_3,3 Embeds a Perl interpreter in the Apache2 server p5-DBI-1.60.1 The perl5 Database Interface. Required for DBD::* modu= les p5-Devel-Symdump-2.0800 A perl5 module that dumps symbol names or the symbol table p5-Error-0.17012 Perl module to provide Error/exception support for perl= : Er p5-GD-2.35_1 A perl5 interface to Gd Graphics Library version2 p5-GD-Graph-1.44.01_1 Graph plotting module for perl5 p5-MIME-Tools-5.426,2 A set of perl5 modules for MIME p5-Scalar-List-Utils-1.19,1 Perl subroutines that would be nice to have in the perl cor p5-Storable-2.18 Persistency for perl data structures p5-Term-ReadKey-2.30 A perl5 module for simple terminal control p5-Test-Harness-3.10 Run perl standard test scripts with statistics p5-Test-Simple-0.80 Basic utilities for writing tests in perl p5-Time-HiRes-1.9712,1 A perl5 module implementing High resolution time, sleep, an perl-5.8.8_1 then I try cpan jail2# perl -MCPAN -e 'shell' /libexec/ld-elf.so.1: Shared object "libm.so.4" not found, required by "per= l" Troubleshooting this complaint on jail2 I discovered the time stamp on the host was different than the time stamp on the basejail. Anyway I'm puzzled, and I'm not really sure where to go from here. . I'd appreciate any help.. Thanks Troy