- 积分
- 21
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-16
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
小的参考http://bbs.06climate.com/forum.php?mod=viewthread&tid=33557前辈的帖子在ubuntu 14.10 麒麟下安装WRF,
在WPS 编译的步骤中无法生成ungrib.exe,其中编译得到的log文件如下
**** Compiling wps ****
make[1]: Entering directory '/home/mode/WPS/geogrid/src'
make[1]: 'geogrid.exe' is up to date.
make[1]: Leaving directory '/home/mode/WPS/geogrid/src'
( cd src/ngl ; make -i -r DEV_TOP="/home/mode/WPS" CC="gcc" FC="gfortran" RANLIB="ranlib " all )
make[1]: Entering directory '/home/mode/WPS/ungrib/src/ngl'
( cd g2 ; make -i -r DEV_TOP="/home/mode/WPS" all ; ranlib libg2_4.a )
make[2]: Entering directory '/home/mode/WPS/ungrib/src/ngl/g2'
Makefile:67: warning: overriding recipe for target '.F.o'
/home/mode/WPS/configure.wps:103: warning: ignoring old recipe for target '.F.o'
Makefile:72: warning: overriding recipe for target '.f.o'
/home/mode/WPS/configure.wps:99: warning: ignoring old recipe for target '.f.o'
Makefile:75: warning: overriding recipe for target '.c.o'
/home/mode/WPS/configure.wps:95: warning: ignoring old recipe for target '.c.o'
gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -l/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_jpeg2000.c
enc_jpeg2000.c:5:27: fatal error: jasper/jasper.h: 没有那个文件或目录
#include "jasper/jasper.h"
^
compilation terminated.
Makefile:75: recipe for target 'enc_jpeg2000.o' failed
make[2]: [enc_jpeg2000.o] Error 1 (ignored)
gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -l/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
dec_jpeg2000.c:5:27: fatal error: jasper/jasper.h: 没有那个文件或目录
#include "jasper/jasper.h"
^
compilation terminated.
Makefile:75: recipe for target 'dec_jpeg2000.o' failed
make[2]: [dec_jpeg2000.o] Error 1 (ignored)
gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -l/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_png.c
enc_png.c:5:17: fatal error: png.h: 没有那个文件或目录
#include <png.h>
^
compilation terminated.
Makefile:75: recipe for target 'enc_png.o' failed
make[2]: [enc_png.o] Error 1 (ignored)
gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -l/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
dec_png.c:5:17: fatal error: png.h: 没有那个文件或目录
#include <png.h>
^
compilation terminated.
Makefile:75: recipe for target 'dec_png.o' failed
make[2]: [dec_png.o] Error 1 (ignored)
/bin/rm -f libg2_4.a
ar ru libg2_4.a gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.o addfield.o addgrid.o addlocal.o getfield.o gb_info.o gf_getfld.o gf_free.o gf_unpack1.o gf_unpack2.o gf_unpack3.o gf_unpack4.o gf_unpack5.o gf_unpack6.o gf_unpack7.o gettemplates.o getlocal.o getdim.o getpoly.o gribcreate.o gribend.o gribinfo.o mkieee.o rdieee.o simpack.o simunpack.o cmplxpack.o compack.o misspack.o pack_gp.o reduce.o comunpack.o specpack.o specunpack.o jpcpack.o jpcunpack.o enc_jpeg2000.o dec_jpeg2000.o pngpack.o pngunpack.o enc_png.o dec_png.o gbytesc.o skgb.o ixgb2.o getidx.o getg2i.o getg2ir.o getgb2s.o getgb2r.o getgb2l.o getgb2.o getgb2p.o getgb2rp.o putgb2.o g2grids.o gdt2gds.o params.o params_ecmwf.o mova2i.o
ar: 正在创建 libg2_4.a
ar: enc_jpeg2000.o: 没有那个文件或目录
Makefile:56: recipe for target 'libg2_4.a' failed
make[2]: [libg2_4.a] Error 1 (ignored)
ranlib libg2_4.a
ranlib: 'libg2_4.a': 没有这个文件
Makefile:56: recipe for target 'libg2_4.a' failed
make[2]: [libg2_4.a] Error 1 (ignored)
make[2]: Leaving directory '/home/mode/WPS/ungrib/src/ngl/g2'
ranlib: 'libg2_4.a': 没有这个文件
Makefile:10: recipe for target 'g2/libg2_4.a' failed
make[1]: [g2/libg2_4.a] Error 1 (ignored)
ln -sf g2/libg2_4.a .
make[1]: Leaving directory '/home/mode/WPS/ungrib/src/ngl'
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=/home/mode/WRFV3 ; \
else \
WRF_DIR2=/home/mode/WRFV3 ; \
fi ; \
make -i -r ungrib.exe \
WRF_DIR="$WRF_DIR2" \
FC="gfortran" \
CC="gcc" \
CPP="/usr/bin/cpp -P -traditional" \
FFLAGS="-ffree-form -O -fconvert=big-endian -frecord-marker=4" \
CFLAGS="" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_UNGRIB" )
make[1]: Entering directory '/home/mode/WPS/ungrib/src'
Makefile:90: warning: overriding recipe for target '.F.o'
../../configure.wps:103: warning: ignoring old recipe for target '.F.o'
Makefile:95: warning: overriding recipe for target '.c.o'
../../configure.wps:95: warning: ignoring old recipe for target '.c.o'
/bin/rm -f ungrib.exe
if [ -z ] ; then \
gfortran -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
-L./ngl -lw3 -lg2_4 \
-L/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
-L. -lpgu ; \
else \
gfortran -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
-L/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
libpgu.a ; \
fi
/usr/bin/ld: cannot find -lg2_4
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'ungrib.exe' failed
make[1]: [ungrib.exe] Error 1 (ignored)
make[1]: Leaving directory '/home/mode/WPS/ungrib/src'
if [ -h ungrib.exe ] ; then \
/bin/rm -f ungrib.exe ; \
fi ; \
if [ -h ../ungrib.exe ] ; then \
/bin/rm -f ../ungrib.exe ; \
fi ; \
if [ -e src/ungrib.exe ] ; then \
ln -sf src/ungrib.exe . ; \
fi
make[1]: Entering directory '/home/mode/WPS/metgrid/src'
make[1]: 'metgrid.exe' is up to date.
make[1]: Leaving directory '/home/mode/WPS/metgrid/src'
求解决方法 感激不尽!
|
|