From owner-freebsd-questions Thu Aug 22 7:14:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A4E37B400 for ; Thu, 22 Aug 2002 07:14:24 -0700 (PDT) Received: from iota.root-servers.ch (iota.root-servers.ch [193.41.193.195]) by mx1.FreeBSD.org (Postfix) with SMTP id 5157443E91 for ; Thu, 22 Aug 2002 07:14:23 -0700 (PDT) (envelope-from gaml@buz.ch) Received: (qmail 13203 invoked from network); 22 Aug 2002 14:14:16 -0000 Received: from dclient217-162-129-22.hispeed.ch (HELO gaxp1800.root.li) (217.162.129.22) by 0 with SMTP; 22 Aug 2002 14:14:16 -0000 Date: Thu, 22 Aug 2002 16:14:47 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.60q) Educational Reply-To: Gabriel Ambuehl X-Priority: 3 (Normal) Message-ID: <2778657750.20020822161447@buz.ch> To: questions@freebsd.org Subject: Weird chroot/ruby problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm trying to setup a chroot environment with the following stuff: Perl PHP (CGI interpreter) Python Ruby To copy with the libraries, I've simply copied over /usr/lib and /usr/local/lib (recursively, of course) but that somehow doesn't seem to cut it. Now everything but Ruby works perfectly: #chroot . /bin/sh #/usr/local/bin/ruby /usr/libexec/ld-elf.so.1: Shared object "libruby.so.16" not found # ls -l /usr/local/lib/libruby* lrwxr-xr-x 1 0 0 13 Aug 21 18:55 /usr/local/lib/libruby.so -> libruby.so.16 -rwxr-xr-x 1 0 0 690764 Aug 21 18:55 /usr/local/lib/libruby.so.16 # /usr/bin/perl print "hello world"; # So libruby IS there but doesn't seem to get load for some weird reason and the other interpreters work as expected. I'd greatly appreciate any tips/pointers to docs on this. Furthermore, I've been asking myself what the best option to provide sendmail like services (we use qmail) out of a jail would be? I assume I can't use the vanilla qmail sendmail replacement as that one would try to write to the queue directly? TIA & regards, Gabriel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message