netcdf一个编译报错

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
####然后一路狂奔。。。。。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值