Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Problems with "rename"

Hello,

 I had problems installing netcdf on my machine (SGI 4D35 running IRIX 4.0.2)
because I had the TMPDIR environment variable set to "/usr/tmp". tempnam()
will use the content of the variable instead of the directory name in the
parameter list. Therefore, I always got the message "cross-device link" and
the program aborted.
My (not very elegant) solution looks like this:

in file: src/file.c, line: 452, function: ncredef ()

/*
 * unicos ignores the first arg to tempnam
 * always seems to want to put the file in another file system
 */
/* IRIX too, so here's a little hack for SGI's ..... */
        if (getenv("TMPDIR")) putenv ("TMPDIR=.");


Dominik
Dominik Ulmer, Geologisches Institut, Albertstr.23-B
D-7800 Freiburg i.Br., FRG
Phone +49 761 203-2408   Fax +49 761 203-2463
e-mail: dominik@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690