# 编译和安装

#### 操作步骤

1. 执行以下命令解压源码包。

```
cd
/path/to
tar xf ncview-2.1.5.tar.gz
```


2. 执行以下命令进入源码目录安装编译。

```
cd ncview-2.1.5
CC=mpicc CXX=mpicxx FC=mpifort ./configure LDFLAGS="-L
/path/to/libexpat
/lib64" CPPFLAGS="-I
/path/to/libexpat/
include" --prefix=
/path/to/ncview
--with-nc-config=
/path/to/netcdf
/bin/nc-config --with-udunits2_incdir=
/path/to/udunits/
include --with-udunits2_libdir=
/path/to/udunits/
lib
make -j 64
make install
```
