从谷歌上搜索并下载netcdf 。在主文件件夹下解压。解压文件中有一个install的文件,打开里面有安装步骤。3步:
./configure
make check
make install 如是权限不够,在ubuntu 和linux mint14 中则改成 sudo make install
install 关于安装的部分具体如下:
To install netCDF, uncompress and unpack the tar file, then change to
the distribution directory:
gunzip netcdf-3.6.2.tar.gz
tar -xf netcdf-3.6.2.tar
cd netcdf-3.6.2
Now run the usual configure, make check, make install cycle:
./configure
make check
make install
The configure script will try to find necessary tools in your path.
When you run configure you may optionally use the -prefix argument to
change the default installation directory. For example, the following
will install the library in /usr/local/lib, the header file in
/usr/local/include, and the utilities in /usr/local/bin.
./configure --prefix=/usr/local
The default install root is /usr/local (so there's no need to use the
prefix argument if you want the software installed there).
By default the netCDF configuration will build static libraries
only. For shared libraries as well, use the -enable-shared option to
configure.
If all this doesn't work, then you might have to read the next
chapter. Better luck next time!
./configure
make check
make install 如是权限不够,在ubuntu 和linux mint14 中则改成 sudo make install
install 关于安装的部分具体如下:
To install netCDF, uncompress and unpack the tar file, then change to
the distribution directory:
gunzip netcdf-3.6.2.tar.gz
tar -xf netcdf-3.6.2.tar
cd netcdf-3.6.2
Now run the usual configure, make check, make install cycle:
./configure
make check
make install
The configure script will try to find necessary tools in your path.
When you run configure you may optionally use the -prefix argument to
change the default installation directory. For example, the following
will install the library in /usr/local/lib, the header file in
/usr/local/include, and the utilities in /usr/local/bin.
./configure --prefix=/usr/local
The default install root is /usr/local (so there's no need to use the
prefix argument if you want the software installed there).
By default the netCDF configuration will build static libraries
only. For shared libraries as well, use the -enable-shared option to
configure.
If all this doesn't work, then you might have to read the next
chapter. Better luck next time!