登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 chongzika 于 2017-11-7 16:46 编辑
使用的gcc g++ 首先安装zlib库
- ./configure --prefix=/software/zlib-1.2.6
export ZLIB=/software/zlib-1.2.6
export ZLIBLIB=/software/zlib-1.2.6/lib
export ZLIBINC=/software/zlib-1.2.6/include
export LD_LIBRARY_PATH=/software/zlib-1.2.6/lib:$LD_LIBRARY_PATH 安装hdf5
configure--with-zlib=/software/zlib-1.2.6 --prefix=/software/hdf5-1.8.18
显示 I/O filters (external):deflate(zlib) export HDF5=/software/hdf5-1.8.18
[size=14.6667px]export PATH=/software/hdf5-1.8.18/[size=14.6667px]bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/software/hdf5-1.8.18/lib
安装netcdf-4.4.1.1
./configure--prefix=/software/NETCDF LDFLAGS=-L/software/hdf5-1.8.18/lib CPPFLAGS=-I/software/hdf5-1.8.18/include
netcdf-C安装的时候 显示找不到zlib库,只能选择[size=14.6667px]--disable-netcdf-4 --disable-dap
configure:error: Can't find or link to the z library. Turn off netCDF-4 and opendap with --disable-netcdf-4--disable-dap, or see config.log for errors. ./configure --prefix=/software/NETCDF LDFLAGS=-L/software/hdf5-1.8.18/lib CPPFLAGS=-I/software/hdf5-1.8.18/include --disable-netcdf-4 --disable-dap
接着安装netcdf-cxx4-4.3.0 ./configure--prefix=/software/NETCDF LDFLAGS=-L/software/NETCDF/libCPPFLAGS=-I/software/NETCDF/include configure: error: NetCDF must be built with netCDF-4 enabled. 这就尴尬了。。。而且我是要 enabled netCDF-4 的
|