CKO



Installation Instructions for Ncedit

If have a PC running Linux you might want to download a statically linked executable from the tools page of the CKO website.

To install the NetCDF file editor, ncedit, from source distribution you should perform the following steps:

  1. Check whether the following software is installed on your system: If not, click on the links to download this software and install it. You also will need a working C++ compiler and STL. GCC will be fine.
  2. If you don't have the source distribution yet, download it from the tools page of the CKO website.
  3. First, create a new directory, e.g., ncedit, and change to this directory.
    mkdir ncedit
    cd ncedit
  4. Unpack the the source distribution, e.g., with
    gunzip -c ../ncedit.tar.gz | tar xvf -
  5. Configure the software with
    ./configure
    This 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" ./configure
    In 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" ./configure
    In case you have to specify more directories you can add additional -I and -L directives.
  6. Compile the tools with
    make
  7. To install ncedit in bin subdirectory of the installation directory you specified to the configuration script at step 5, enter the command
    make install

Camiel Severijns
Last modified: Thu Mar 15 09:41:12 CET 2001