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

[netCDF #DTO-685623]: error at the time of installing netcdf4.1.3



Hi Dipak,

> I was  tried to install netcdf-4.1.3 by using the following command in my
> Linux server.
> 
> *$./configure --prefix=/shome/2007asz8296/netcdf-4.1.3 --disable-netcdf-4
> $make check install*
> 
> but I'm getting the following error, kindly help me how to resolve this
> error.
> 
> ==================
> All 7 tests passed
> ==================
> make[3]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/examples/CXX'
> make[2]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/examples/CXX'
> make[2]: Entering directory `/shome/2007asz8296/netcdf-4.1.3/examples'
> make[2]: Nothing to be done for `check-am'.
> make[2]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/examples'
> make[1]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/examples'
> make[1]: Entering directory `/shome/2007asz8296/netcdf-4.1.3'
> make[1]: Nothing to be done for `check-am'.
> make[1]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3'
> Making install in include
> make[1]: Entering directory `/shome/2007asz8296/netcdf-4.1.3/include'
> make[2]: Entering directory `/shome/2007asz8296/netcdf-4.1.3/include'
> make[2]: Nothing to be done for `install-exec-am'.
> test -z "/shome/2007asz8296/netcdf-4.1.3/include" || /bin/mkdir -p
> "/shome/2007asz8296/netcdf-4.1.3/include"
> /usr/bin/install -c -m 644 netcdf.h
> '/shome/2007asz8296/netcdf-4.1.3/include'
> /usr/bin/install: `netcdf.h' and
> `/shome/2007asz8296/netcdf-4.1.3/include/netcdf.h' are the same file
> make[2]: *** [install-includeHEADERS] Error 1
> make[2]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/include'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory `/shome/2007asz8296/netcdf-4.1.3/include'
> make: *** [install-recursive] Error 1
> [2007asz8296@ajaymeru netcdf-4.1.3]$
> [2007asz8296@ajaymeru netcdf-4.1.3]$

I think the problem is that you specified the source directory where you were 
building
netCDF to also be the destination directory where the library and executables 
should
be installed.  The default installation directory is /usr/local, but if you 
want installation
to be somewhere else specified with --prefix=... as an option to the configure 
script,
it should not be the same as the directory from which the configure script was 
invoked.

If you try again after a "make distclean" but using a different directory for 
--prefix=...
or just using the default by not specifying --prefix, it should install OK.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: DTO-685623
Department: Support netCDF
Priority: Normal
Status: Closed