Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 21:32:13 -0700 (PDT)
From:      Tom Hines <tom_hines@yahoo.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: pkg_add ignoring PKG_PATH!
Message-ID:  <20030417043213.11673.qmail@web11502.mail.yahoo.com>
In-Reply-To: <20030415070347.GA62600@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Kris Kennaway <kris@obsecurity.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030417043213.11673.qmail>