- 积分
- 355
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-10-11
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2015-1-15 16:28:14
|
显示全部楼层
改完过后重新运行出现以下结果:
NCAR Graphics NCL Example <gsun01n>
This example was set up to display the output to an
X11 window.
Copying gsun01n.ncl
Running NCL...
Copyright (C) 1995-2011 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.0.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
warning:GKS:GOPWK: --X driver error: error opening display
warning:GKS:GESC: --SPECIFIED WORKSTATION IS NOT OPEN
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:NhlGetValues:PID #-4 is invalid
fatal:Execute: Error occurred at or near line 10679 in file $NCARG_ROOT/lib/ncar g/nclex/gsun/gsn_code.ncl
fatal:Execute: Error occurred at or near line 11
Finished running 'ncl < gsun01n'...
电脑的gcc是4.6.3版本,ncl 6.0.0和6.1.2都试了
ncl安装过程是先解压,形成bin、include和lib文件夹并拷贝到:/usr/local/ncl目录,然后配置环境变量
export NCARG_ROOT=/usr/local/ncl
export NCARG_LIB=/usr/local/ncl/lib
export NCARG_INC=/usr/local/ncl/include
export PATH=/usr/local/ncl/bin:$PATH
export DISPLAY =:0.0
输入ncl也成功了 |
|