- 积分
- 1176
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-10-31
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
循着帖子 http://bbs.lasg.ac.cn/?action-viewthread-tid-37043 单机安装ncl,问题层出不穷,好不容易到试运行xy04n.ncl,出现错误提示:
warning:GKS:GOPWK: --X driver error: DISPLAY environment variable not set
fatal:Workstation with PID#8 is not open
fatal:Unable to open Workstation-Can't Create
fatal:Unable to access object with id:-4
fatal:_NhlCreate:Invalid Parent id #-4
fatal:NhlDraw: Invalid Layer Id: -4
fatal:Unable to update Workstation with PID#-4
fatal:Unable to clear Workstation with PID#-4
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 158 in file xy04n.ncl
搜一下发现官网 http://www.ncl.ucar.edu/Download/cygwin.shtml troubleshooting problems 亦有此类问题,在确保DISPLAY设置无误的情况下仍然无果,后来偶然发现是windows防火墙在作怪。
倘若出现上述错误,可考虑先运行 startxwin,在弹出来的白色界面下试运行xy04n.ncl,其间防火墙会弹出是否让x server运行,当然要同意啦!然后从白色界面退出,继续在cygwin terminal下运行脚本,就一切ok了。
|
|