Download and unzip project tree to some directory like /home/user/ncdump-json
[user@server]# yum install cmake
[user@server]# yum install netcdf-devel
[user@server]# cd /home/user/ncdump-json
[user@server]# cmake . -DCMAKE_EXE_LINKER_FLAGS="-lm"
[user@server]# make
[user@server]# make install
The last three steps look like this:
[user@server]# cmake . -DCMAKE_EXE_LINKER_FLAGS="-lm"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/ncdump-json
[user@server]# make
[ 16%] Building C object CMakeFiles/ncdump-json.dir/src/dumplib.c.o
[ 33%] Building C object CMakeFiles/ncdump-json.dir/src/nciter.c.o
[ 50%] Building C object CMakeFiles/ncdump-json.dir/src/indent.c.o
[ 66%] Building C object CMakeFiles/ncdump-json.dir/src/vardata.c.o
[ 83%] Building C object CMakeFiles/ncdump-json.dir/src/ncdump.c.o
[100%] Building C object CMakeFiles/ncdump-json.dir/src/nctime.c.o
Linking C executable ncdump-json
[100%] Built target ncdump-json
[user@server]# make install
[100%] Built target ncdump-json
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/ncdump-json
Installation on Fedora Linux 17:
Download and unzip project tree to some directory like /home/user/ncdump-json
The last three steps look like this: