Problem with PKG_TMPDIR

Hi everybody,

I have a OS FreeBSD 9.0-RELEASE and I wanted to install a DHCP package but I have an error message:
Code:
pkg_add: find_play_pen: can't find enough temporary space to extract the files, please set your PKG_TMPDIR environment variable to a location with at least 0 bytes free..

My directory is almost empty, I don't understand...
 
Make sure PKG_TMPDIR is really defined within the environment under which you're running pkg_add:
# echo $PKG_TMPDIR

Make sure there really is enough space on the partition where "PKG_TMPDIR" is located.
# df -h `echo $PKG_TMPDIR`

The compressed package may seem small, but once extracted it may be many times bigger.
 
Fist, thank you for your answer, so I tried :
# echo $PKG_TMPDIR

but I have this message:
Code:
Undefined variable
but how define it ?
 
By default root uses the C shell, so environment variables get defined like this:
# setenv PKG_TMPDIR /some_location

And to make sure it remains defined when you log out or reboot you add that line to /root/.cshrc
 
Please post the output of [cmd=]df -h[/cmd] and [cmd=]cat /etc/make.conf[/cmd]
 
In fact, i had not enough memory with my virtual Box machine (2 GB ^^) so it's normal..

Sorry

Thank you
 
Back
Top