From owner-freebsd-ports@FreeBSD.ORG Mon Jul 23 12:33:10 2007 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4453616A419 for ; Mon, 23 Jul 2007 12:33:10 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id EF71A13C45B for ; Mon, 23 Jul 2007 12:33:09 +0000 (UTC) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id E62B1125420; Mon, 23 Jul 2007 14:15:41 +0200 (CEST) Date: Mon, 23 Jul 2007 14:15:41 +0200 From: Anton Berezin To: Paul Schmehl Message-ID: <20070723121541.GA6905@heechee.tobez.org> Mail-Followup-To: Anton Berezin , Paul Schmehl , ports@FreeBSD.org References: <8D581F838EDB1D04DE531B0B@paul-schmehls-powerbook59.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8D581F838EDB1D04DE531B0B@paul-schmehls-powerbook59.local> User-Agent: Mutt/1.4.2.3i X-Powered-By: FreeBSD http://www.freebsd.org/ Cc: ports@FreeBSD.org Subject: Re: How to include new dirs in @INC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 12:33:10 -0000 On Sun, Jul 22, 2007 at 11:08:44PM -0500, Paul Schmehl wrote: > I'm working on a port upgrade, and I'm copying some perl modules to > %%SITE_PERL%%/mach/newdir. Unfortunately, the scripts won't run because > the perl modules aren't included in @INC. How do I update @INC to include > the new path? (I have USE_PERL= yes in the Makefile.) Is there a script > I have to run? Is there an ldconfig for perl? In theory, one might set environment variable PERLLIB or PERL5LIB. This won't work for scripts that run with euid and ruid that differ. Alternatively, the scripts using the modules in a non-standard location must be modified to "use lib qw(/path)", which modifies @INC. Alternatively, Perl itself needs to be recompiled with new paths. Alternatively, you need to figure out whether you can place the modules into a standard location. It looks like you are trying to do that, but clearly you are doing something wrong. What are the names of the modules and their packages? \Anton. -- We're going for 'working' here. 'clean' is for people with skills... -- Flemming Jacobsen