To install the NetCDF file editor, ncedit, from source distribution you should perform the following steps:
mkdir ncedit cd ncedit
gunzip -c ../ncedit.tar.gz | tar xvf -
./configureThis starts execution of a script that tries to retrieve all the information that is needed to correctly configure the software for compilation and installation. By default, ncedit will be installed in the current directory. If you want to change this use the --prefix=path option. For example, to install ncedit in your personal ~/bin directory, invoke the script as follows:
./configure --prefix=$HOME
In the case the configuration script fails it most likely does because it could not find one or more of the libraries that are needed. In this case you should specify the locations of the header and library files by setting the shell variables CPPFLAGS and LDFLAGS. For example, if the netcdf header files are located in /usr/local/free/include and the library file in /usr/local/free/lib you would invoke the script as follows
CPPFLAGS="-I/usr/local/free/include" LDFLAGS="-L/usr/local/free/lib" ./configureIn case you are using csh or tcsh instead of a Bourne shell derived shell this becomes
env CPPFLAGS="-I/usr/local/free/include" LDFLAGS="-L/usr/local/free/lib" ./configureIn case you have to specify more directories you can add additional -I and -L directives.
make
make install