The original home of Ncview is http://meteora.ucsd.edu/~pierce/ncview_home_page.html
This is a fork from Ncview 2.1.2. Ncview is (C)opyright by David W. Pierce and released under the GNU GPL v3 (see INSTALL
).
## Building on OS X 10.6
Grap the source from http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.10.tar.bz2
$ ./configure
$ make
$ make install
Grap the source from http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.2.1.1.tar.gz
$ export HDF_PATH=<prefix>/hdf5-1.8.10/hdf5/
$ export CPPFLAGS=-I$HDF_PATH/include
$ export LDFLAGS=-L$HDF_PATH/lib
$ export LD_LIBRARY_PATH=$HDF_PATH/lib
$ ./configure
$ make
$ sudo make install
http://downloads.sourceforge.net/liblo/liblo-0.26.tar.gz
$ ./configure
$ make
$ sudo make install
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
$ ./configure CC=/usr/bin/gcc-4.2 --x-libraries=/usr/X11/lib --x-includes=/usr/X11/include
The first line is necessary for pkg-config
to pick up liblo. As a shortcut, ./hh_config
can be used.
This will configure a build without support for udunits and png. The executable will be /usr/local/bin/ncview
. To build a local binary, add --prefix=`pwd`
.
$ make
$ sudo make install
(sudo
is not needed with the local prefix)
If one needs to run autoreconf
, the following is necessary first:
$ sudo cp -v m4macros/*.m4 /opt/local/share/aclocal/