- 积分
- 6164
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-12-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
按照这个http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/Build_cnvgrib.pdf安装cnvgrib,zlib,libpng,jasper都安装在/opt文件夹下,也安装了g2lib,w3lib,最后安cnvgrib,出现如下警告,没有理它,
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o gds2gdt.o gds2gdt.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o pds2pdt.o pds2pdt.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o pds2pdtens.o pds2pdtens.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o cnvgrib.o cnvgrib.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o cnv12.o cnv12.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o cnv22.o cnv22.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o cnv21.o cnv21.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o gdt2gds.o gdt2gds.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o makepds.o makepds.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o putgbexn.o putgbexn.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o makepdsens.o makepdsens.f
pgf90 -O3 -g -I /var/ftp/pub/share/ncoops/g2lib-1.4.0 -c -o setbit.o setbit.f
pgf90 -o cnvgrib gds2gdt.o pds2pdt.o pds2pdtens.o cnvgrib.o cnv12.o cnv22.o cnv21.o gdt2gds.o makepds.o putgbexn.o makepdsens.o setbit.o -L/opt/cnvgrib/lib -lg2 -L/opt/cnvgrib/lib -lw3 -L/opt/jasper-1.900.1/lib -L/opt/libpng-1.6.17/lib -L/opt/zlib-1.2.8/lib -ljasper -lpng -lz
/opt/jasper-1.900.1/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
jas_stream.c:(.text+0x1599): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
转化gfs数据时出错,bash: cnvgrib: command not found,这是什么原因呢?请各位大侠指导啊。以下是我的makefile文件
SHELL=/bin/sh
#
SRCS= gds2gdt.f pds2pdt.f pds2pdtens.f cnvgrib.f cnv12.f cnv22.f \
cnv21.f gdt2gds.f makepds.f putgbexn.f makepdsens.f setbit.f
OBJS= gds2gdt.o pds2pdt.o pds2pdtens.o cnvgrib.o cnv12.o cnv22.o \
cnv21.o gdt2gds.o makepds.o putgbexn.o makepdsens.o setbit.o
# Tunable parameters
#
# FC Name of the fortran compiling system to use
# LDFLAGS Flags to the loader
# LIBS List of libraries
# CMD Name of the executable
# PROFLIB Library needed for profiling
#
# G95 Fortran Compiler
#
FC = pgf90
#
#
# Gfortran (GPL) Fortran Compiler
#
# FC = gfortran
#
#LDFLAGS = -p -bnoquiet -bloadmap:mug
#LDFLAGS = -pg
LDFLAGS =
INC = -I /var/ftp/pub/share/ncoops/g2lib-1.4.0
LIBS = -L/opt/cnvgrib/lib -lg2\
-L/opt/cnvgrib/lib -lw3\
-L/opt/jasper-1.900.1/lib -L/opt/libpng-1.6.17/lib -L/opt/zlib-1.2.8/lib -ljasper -lpng -lz
CMD = cnvgrib
PROFLIB = -lprof
# To perform the default compilation, use the first line
# To compile with flowtracing turned on, use the second line
# To compile giving profile additonal information, use the third line
# WARNING: SIMULTANEOUSLY PROFILING AND FLOWTRACING IS NOT RECOMMENDED
#FFLAGS = -O3 -pg -qrealsize=4 $(INC)
FFLAGS = -O3 -g $(INC)
#FFLAGS = -F
#FFLAGS = -Wf"-ez"
# Lines from here on down should not need to be changed. They are the
# actual rules which make uses to build a.out.
#
all: $(CMD)
$(CMD): $(OBJS)
$(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
# Make the profiled version of the command and call it a.out.prof
#
$(CMD).prof: $(OBJS)
$(FC) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS)
clean:
-rm -f $(OBJS)
clobber: clean
-rm -f $(CMD) $(CMD).prof
void: clobber
-rm -f $(SRCS) makefile
|
|