爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4634|回复: 2

编译WRFV3出不来几个exe?

[复制链接]

新浪微博达人勋

发表于 2011-11-5 20:13:07 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 浪迹天涯 于 2011-11-5 20:15 编辑

pgi和netcdf装好后,编译WRFV3时几个exe没有生产,查看日记,主要是有两段错误,如下:
  1. 错误一:
  2. pgf90 -w -Mfree -byteswapio -c -I/opt/netcdf/include -I../ioapi_share diffwrf.f
  3. diffwrf io_netcdf is being built now.
  4. /opt/netcdf/lib/libnetcdf.a(liboc_la-ocinternal.o): In function `ocinitialize':
  5. /usr/local/software/netcdf-4.1.1/libncdap3/oc/ocinternal.c:167: undefined reference to `curl_version_info'
  6. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchhttpcode':
  7. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:27: undefined reference to `curl_easy_getinfo'
  8. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocsetcurlproperties':
  9. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:283: undefined reference to `curl_easy_strerror'
  10. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified':
  11. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:297: undefined reference to `curl_easy_setopt'
  12. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:302: undefined reference to `curl_easy_setopt'
  13. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:303: undefined reference to `curl_easy_setopt'
  14. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:304: undefined reference to `curl_easy_setopt'
  15. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:305: undefined reference to `curl_easy_setopt'
  16. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:306: more undefined references to `curl_easy_setopt' follow
  17. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified':
  18. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:309: undefined reference to `curl_easy_perform'
  19. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:312: undefined reference to `curl_easy_getinfo'
  20. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:318: undefined reference to `curl_easy_strerror'
  21. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl_file':
  22. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:44: undefined reference to `curl_easy_setopt'
  23. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:49: undefined reference to `curl_easy_setopt'
  24. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:54: undefined reference to `curl_easy_setopt'
  25. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:59: undefined reference to `curl_easy_setopt'
  26. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:63: undefined reference to `curl_easy_perform'
  27. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:74: undefined reference to `curl_easy_getinfo'
  28. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:79: undefined reference to `curl_easy_strerror'
  29. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `occurlopen':
  30. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:221: undefined reference to `curl_easy_init'
  31. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:225: undefined reference to `curl_easy_setopt'
  32. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:229: undefined reference to `curl_easy_setopt'
  33. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl':
  34. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:93: undefined reference to `curl_easy_setopt'
  35. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:98: undefined reference to `curl_easy_setopt'
  36. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:103: undefined reference to `curl_easy_setopt'
  37. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:108: more undefined references to `curl_easy_setopt' follow
  38. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl':
  39. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:110: undefined reference to `curl_easy_perform'
  40. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:121: undefined reference to `curl_easy_getinfo'
  41. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:132: undefined reference to `curl_easy_strerror'
  42. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:113: undefined reference to `curl_easy_strerror'
  43. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `occurlclose':
  44. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:242: undefined reference to `curl_easy_cleanup'
  45. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_verify':
  46. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:103: undefined reference to `curl_easy_setopt'
  47. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:106: undefined reference to `curl_easy_setopt'
  48. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_cookies':
  49. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:88: undefined reference to `curl_easy_setopt'
  50. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:92: undefined reference to `curl_easy_setopt'
  51. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_proxy':
  52. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:49: undefined reference to `curl_easy_setopt'
  53. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:53: more undefined references to `curl_easy_setopt' follow
  54. make[2]: [diffwrf] Error 2 (ignored)
  55. make[2]: Leaving directory `/home/wlei/WRF/WRFV3/external/io_netcdf'
  56. make[2]: Entering directory `/home/wlei/WRF/WRFV3/external/io_int'
复制代码
  1. 错误二:
  2. pgf90 -o wrf.exe -O2 -fast -w -Mfree -byteswapio wrf.o ../main/module_wrf_top.o libwrflib.a /home/wlei/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/wlei/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/wlei/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/wlei/WRF/WRFV3/external/io_int/libwrfio_int.a /home/wlei/WRF/WRFV3/external/esmf_time_f90/libesmf_time.a /home/wlei/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/wlei/WRF/WRFV3/frame/module_internal_header_util.o /home/wlei/WRF/WRFV3/frame/pack_utils.o /home/wlei/WRF/WRFV3/external/io_netcdf/libwrfio_nf.a -L/opt/netcdf/lib -lnetcdf
  3. /opt/netcdf/lib/libnetcdf.a(liboc_la-ocinternal.o): In function `ocinitialize':
  4. /usr/local/software/netcdf-4.1.1/libncdap3/oc/ocinternal.c:167: undefined reference to `curl_version_info'
  5. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchhttpcode':
  6. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:27: undefined reference to `curl_easy_getinfo'
  7. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocsetcurlproperties':
  8. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:283: undefined reference to `curl_easy_strerror'
  9. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified':
  10. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:297: undefined reference to `curl_easy_setopt'
  11. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:302: undefined reference to `curl_easy_setopt'
  12. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:303: undefined reference to `curl_easy_setopt'
  13. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:304: undefined reference to `curl_easy_setopt'
  14. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:305: undefined reference to `curl_easy_setopt'
  15. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:306: more undefined references to `curl_easy_setopt' follow
  16. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchlastmodified':
  17. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:309: undefined reference to `curl_easy_perform'
  18. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:312: undefined reference to `curl_easy_getinfo'
  19. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:318: undefined reference to `curl_easy_strerror'
  20. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl_file':
  21. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:44: undefined reference to `curl_easy_setopt'
  22. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:49: undefined reference to `curl_easy_setopt'
  23. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:54: undefined reference to `curl_easy_setopt'
  24. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:59: undefined reference to `curl_easy_setopt'
  25. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:63: undefined reference to `curl_easy_perform'
  26. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:74: undefined reference to `curl_easy_getinfo'
  27. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:79: undefined reference to `curl_easy_strerror'
  28. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `occurlopen':
  29. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:221: undefined reference to `curl_easy_init'
  30. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:225: undefined reference to `curl_easy_setopt'
  31. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:229: undefined reference to `curl_easy_setopt'
  32. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl':
  33. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:93: undefined reference to `curl_easy_setopt'
  34. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:98: undefined reference to `curl_easy_setopt'
  35. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:103: undefined reference to `curl_easy_setopt'
  36. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:108: more undefined references to `curl_easy_setopt' follow
  37. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `ocfetchurl':
  38. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:110: undefined reference to `curl_easy_perform'
  39. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:121: undefined reference to `curl_easy_getinfo'
  40. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:132: undefined reference to `curl_easy_strerror'
  41. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:113: undefined reference to `curl_easy_strerror'
  42. /opt/netcdf/lib/libnetcdf.a(liboc_la-http.o): In function `occurlclose':
  43. /usr/local/software/netcdf-4.1.1/libncdap3/oc/http.c:242: undefined reference to `curl_easy_cleanup'
  44. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_verify':
  45. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:103: undefined reference to `curl_easy_setopt'
  46. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:106: undefined reference to `curl_easy_setopt'
  47. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_cookies':
  48. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:88: undefined reference to `curl_easy_setopt'
  49. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:92: undefined reference to `curl_easy_setopt'
  50. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_proxy':
  51. /usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:49: undefined reference to `curl_easy_setopt'
  52. /opt/netcdf/lib/libnetcdf.a(liboc_la-curlfunctions.o):/usr/local/software/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:53: more undefined references to `curl_easy_setopt' follow
  53. make[1]: [em_wrf] Error 2 (ignored)
  54. make[1]: Leaving directory `/home/wlei/WRF/WRFV3/main'
复制代码

具体的问题还是不大清楚,看上面的显示会查找netcdf-4.1.1解压后的文件夹,有哪位大侠解答一下!



密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2011-11-7 13:09:31 | 显示全部楼层
问题已解决,确实是netcdf出问题,我重别的机器拷一个编译好的,就可以l了~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-6-26 22:58:50 | 显示全部楼层
楼主 我想请问一下 这个问题你知道是什么原因吗 我装了netcdf 可以运行 ncdump  但是在编译read——nc   fortran文件的时候 就出现了类似的错误  程序在解压包中寻找东西
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表