it seems as if the temp directory is not correctly defined on your system. Most likely
ns_config ns/parameters tmpdir
returns empty in your installation.
If this parameter is not set in the config file of the server, the tmp directory is taken from the environment variable TMPDIR. If this is not set, it is taken from the C macro P_tmpdir.