Darren Spruell wrote:
On 7/1/07, Alden Pierre <[EMAIL PROTECTED]> wrote:
Darren Spruell wrote:
> On 7/1/07, Alden Pierre <[EMAIL PROTECTED]> wrote:
>> Hello All,
>>
>> I'm having a hard time trying to install packages on my machine.
>> 1. PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/
>>
>> 2. pkg_add -i screen gives me the following:
>> sh: cannot create /var/tmp/pkgout.V6ybCkITOgB: File
>> exists
>> No packages available in the PKG_PATH
>> Can't resolve screen
>
> You probably didn't export PKG_PATH into your environment:
>
> $ env - ksh
> $ env
> _=/usr/bin/env
> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin
> $ PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/
> $ env
> _=/usr/bin/env
> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin
> $ sudo pkg_add -i screen
> Password:
> No packages available in the PKG_PATH
> Can't resolve screen
> $ export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/
> $ sudo pkg_add -i screen
> Ambiguous: choose package for screen
> 0: <None>
> 1: screen-4.0.3p0
> 2: screen-4.0.3p0-shm
> 3: screen-4.0.3p0-static
> Your choice:
>
> DS
>
I have it in my environment. echo $PKG_PATH comes back with the
correct results.
Did it actually get to your environment via 'export'? If you didn't
place it in the environment with export you will still get a value
from the current shell with 'echo $PKG_PATH'. Test with 'env | grep
PKG_PATH'
Your original posting didn't indicate that it was exported.
DS
Here is all of my exported variables from my .profile. env | grep
PKG_PATH comes back with the ftp site I have set
in my .profile.
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/
MAIL=/var/mail/$USER
FCEDIT=mg
EDITOR=mg
TERM=vt220
PS1='\D{%d/%m/%y %r} ${PWD}/ --> '
export EDITOR FCEDIT MAIL PATH TERM PKG_PATH
Regards,
Alden