netcdf 编译及遇到的报错
szip
./configure --prefix="${WORKSPACE}${LIBS}/szip" --build=arm-linux
make -j
make check
make install
zlib
./configure --prefix=/sh2/home/szjn0511/rmaps-rise/softwarea/zlib
make
make install
hdf5
./configure --with-zlib=$software/lib/zlib --with-szlib=$software/lib/szip --enable-fortran --enable-cxx --prefix=$software/lib/hdf5 CC=gcc CXX=g++ FC=gfortran
make
make install
netcdf 4.1.1
./configure --prefix=$software/lib/netcdf-cxx4 --enable-shared --disable-dap --with-zlib=$software/lib/zlib --with-szlib=$software/lib/szip --with-hdf5=$software/lib/hdf5 --enable-cxx-4 --enable-netcdf4 --enable-separate-fortran CC=gcc CXX=g++ F77=gfortran FC=gfortran
make
make -j
或
netcdf-fortran
./configure --prefix="$software/netcdf-cxx" LDFLAGS="-L$software/szip/lib -L$software/zlib/lib -L$software/hdf5/lib -L$software/netcdf-cxx/lib" CPPFLAGS="-I$software/hdf5/include -I$software/szip/include -I$software/zlib/include -I$software/netcdf-cxx/include" CC=gcc FC=gfortran FF=gfortran
make -j
make check
make install
netcdf-C
./configure --prefix="$software/netcdf-cxx" LDFLAGS="-L$software/szip/lib -L$software/zlib/lib -L$software/hdf5/lib -L$software/netcdf-cxx/lib" CPPFLAGS="-I$software/hdf5/include -I$softwareszip/include -I$software/zlib/include -I$software/netcdf-cxx/include" CC=gcc FC=gfortran FF=gfortran
make -j
make check
make install
netcdf-C++
./configure --prefix="$software/netcdf-cxx" LDFLAGS="-L$software/szip/lib -L$software/zlib/lib -L$software/hdf5/lib -L$software/netcdf-cxx/lib" CPPFLAGS="-I$software/hdf5/include -I$software/szip/include -I$software/zlib/include -I$software/netcdf-cxx/include" CC=gcc FC=gfortran FF=gfortran
make -j
make check
make install
报错一 netcdf 找不到命令 texi2dvi
make: texi2dvi command not found
原因:编译其他软件时有报错,执行了检查编译的 make check ,netcdf执行 make check 会删除一些文档
解决方法:重新解压一份 重新编译
错误解决方法: yum install texinfo-tex
错误解决方法引起的报错二:
netcdf-f90.texi:6982: raising the section level of @unnumberedsubsec which is too low make[2]: *** [netcdf-f90.info] Error 1
####然后一路狂奔。。。。。