爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1331|回复: 3

[求助] 运行一个可执行文件报错,怎么解决?

[复制链接]
发表于 2014-2-28 15:08:39 | 显示全部楼层 |阅读模式

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

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

x
我在 ./PAVE-hourly-input-pm.exe 时报错如下:
bash: ./PAVE-hourly-input-pm.exe: cannot execute binary file
有谁知道是什么原因吗?新手请求指教,好难啊!

密码修改失败请联系微信:mofangbao
 成长值: 0
发表于 2014-2-28 17:06:12 | 显示全部楼层

回帖奖励 +2 金钱

信息量太少,看不出···
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-3-3 21:14:13 | 显示全部楼层

你好,谢谢你的回复首先!我的问题具体是这样的,我用一个fortran程序去转换一个文件的格式,然后我的f90文件名是PAVE-hourly-input-pm.f90 我就用命令去执行它 pgf90  PAVE-hourly-input-pm.f90 结果报错如下:

/tmp/pgf90t9Vb5K23EsBI.o: In function `wrfout':
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:158: undefined reference to `nf_open_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:158: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:158: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:170: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:170: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:175: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:175: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:180: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:180: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:185: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:185: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:190: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:190: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:195: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:195: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:200: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:200: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:205: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:205: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:210: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:210: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:215: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:215: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:220: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:220: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:225: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:225: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:230: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:230: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:235: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:235: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:240: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:240: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:245: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:245: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:250: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:250: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:255: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:255: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:260: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:260: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:265: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:265: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:270: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:270: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:275: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:275: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:280: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:280: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:285: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:285: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:290: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:290: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:295: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:295: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:300: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:300: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:305: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:305: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:310: undefined reference to `nf_inq_varid_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:310: undefined reference to `nf_get_vars_real_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:417: undefined reference to `init3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:417: undefined reference to `open3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:417: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:494: undefined reference to `write3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:494: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:497: undefined reference to `write3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:497: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:501: undefined reference to `write3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:501: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:505: undefined reference to `write3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:505: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:509: undefined reference to `write3_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:509: undefined reference to `m3exit_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:513: undefined reference to `nextime_'
/root/software/WRF/PAVE/shijie/WRFOUT-to-PAVE/./PAVE-hourly-input-pm.f90:513: undefined reference to `m3exit_'

请问您知道是什么原因吗?被这个问题困扰好久了,也没解决,刚接触觉得好难啊!
密码修改失败请联系微信:mofangbao
发表于 2014-3-3 21:55:34 | 显示全部楼层
感觉像是LINUX下的问题,还没仔细接触LINUX,不过可以看出来是链接错误,要更改环境变量。给你推荐个网页,上面有类似介绍
http://emuch.net/html/200604/237865.html
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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