From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 21:32:14 2003 Return-Path: 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 3F02337B401 for ; Wed, 16 Apr 2003 21:32:14 -0700 (PDT) Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mx1.FreeBSD.org (Postfix) with SMTP id B9A4243F85 for ; Wed, 16 Apr 2003 21:32:13 -0700 (PDT) (envelope-from tom_hines@yahoo.com) Message-ID: <20030417043213.11673.qmail@web11502.mail.yahoo.com> Received: from [68.50.228.42] by web11502.mail.yahoo.com via HTTP; Wed, 16 Apr 2003 21:32:13 PDT Date: Wed, 16 Apr 2003 21:32:13 -0700 (PDT) From: Tom Hines To: Kris Kennaway In-Reply-To: <20030415070347.GA62600@rot13.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd questions Subject: Re: pkg_add ignoring PKG_PATH! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 04:32:14 -0000 --- Kris Kennaway wrote: > On Mon, Apr 14, 2003 at 09:40:26PM -0700, Tom Hines > wrote: > > > cp838536-b# set PKG_PATH=/usr/ports/packages > > cp838536-b# pkg_add -n ispell-3.2.06_3.tgz > > pkg_add: can't stat package file > 'ispell-3.2.06_3.tgz' > > ktrace suggests setting > PKG_PATH=/usr/ports/packages/All and using > pkg_add -n ispell-3.2.06_3 Are-Harald Brenne wrote: > shouldn't you be using 'setenv' instead, unless you > switched shell? Check with > # echo $PKG_PATH Aha! You're right. I was using set, which just sets the shell variable and not the environment. That explains why pkg_add wouldn't work from the command line. And the reason it wouldn't work from portupgrade was because I was using an old config file that had those environment settings commented out. I noticed in the new pkgtools.conf.sample file that those lines have been uncommented. Ken, that trace you suggested let me see that PKG_PATH wasn't set. That, along with Are's suggestion helped me figure it out. Thanks to Ken and Are! Tom __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com