[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20021118: netCDF installation: mkdir: cannot create directory ...



Dear Lam YiHua,

> To: address@hidden
> From: Lam YiHua <address@hidden>
> Subject: make install
> Organization: UCAR/Unidata

The above message contained the following:

> I'd met such "make install" problem.
> Then I created these directories for--prefix.
> I can conclude that, "makefile" cannot create new directories.
> 
> ---------------------
> 
> make[1]: Entering directory `/DownloadedSourceCodes/netcdf-3.5.0/src'
> 
> Making `install' in directory /DownloadedSourceCodes/netcdf-3.5.0/src/libsrc
> 
> make[2]: Entering directory `/DownloadedSourceCodes/netcdf-3.5.0/src/libsrc'
> test -d /DownloadedSourceCodes/netcdf-3.5.0/usr/local/lib || mkdir 
> /DownloadedSourceCodes/netcdf-3.5.0/usr/local/lib
> mkdir: cannot create directory 
> `/DownloadedSourceCodes/netcdf-3.5.0/usr/local/lib': No such file or directory

The problem is not with the make(1) utility or with the makefile.  The
problem is that the mkdir(1) utility cannot create the directory

    /DownloadedSourceCodes/netcdf-3.5.0/usr/local/lib

This is, probably, because one of the the parent directories

    /DownloadedSourceCodes/netcdf-3.5.0/usr/local/

or

    /DownloadedSourceCodes/netcdf-3.5.0/usr/

does not exist. Did you use the "--prefix=..." option and, if so, did
you specify an existing directory? If not, then execute the "configure"
script again -- only use an existing directory for the "--prefix"
option. I suspect that you should use something like the following:

    ./configure --prefix=/DownloadedSourceCodes/netcdf-3.5.0 ...

This will install the netCDF package under the directory

    /DownloadedSourceCodes/netcdf-3.5.0

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>