爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10880|回复: 19

NCL安装问题(不出图)

[复制链接]
发表于 2013-10-13 22:11:36 | 显示全部楼层 |阅读模式

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

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

x
NCL 不显示图形在Linux下装上NCL后设置环境变量为:
export NCARG_ROOT=/home/liuxy/ncl
export PATH=$NCARG_ROOT/bin:$PATH

ncl 调试时出现错误
敲入命令: ng4ex gsun01n
显示如下:
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-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
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: 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:NhlGetValues:PID #-4 is invalid
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 10679 in file $NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl


fatal:["Execute.c":8126]:Execute: Error occurred at or near line 11




Finished running 'ncl < gsun01n'...
刚刚接触NCL,啥也不懂,请问这是什么问题,请各位帮忙解决一下,谢谢啦~~


密码修改失败请联系微信:mofangbao
发表于 2013-10-13 22:51:00 | 显示全部楼层
DISPLAY  这个需要设置,具体怎么设百度一下
密码修改失败请联系微信:mofangbao
发表于 2013-10-14 07:04:14 | 显示全部楼层
本帖最后由 ayzqs 于 2013-10-14 07:05 编辑

你的环境变量没设好吧

#ncl

export NCARG_ROOT=/home/xxx/WRF/NCL
export NCARG_LIB=/home/xxx/WRF/NCL/lib
export NCARG_INC=/home/xxx/WRF/NCL/include
export PATH=$PATH:/home/xxx/WRF/NCL/bin
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-10-14 08:12:04 | 显示全部楼层
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-10-14 08:22:40 | 显示全部楼层
ayzqs 发表于 2013-10-14 07:04
你的环境变量没设好吧

#ncl

刚刚试着又改了一下,不小心改错了,结果整个xshell都出现问题了
密码修改失败请联系微信:mofangbao
发表于 2013-10-14 08:40:31 | 显示全部楼层
两米阳光 发表于 2013-10-14 08:12
在大型机上安装不是不需要设置的吗

是的~~~我在大型机上没设置~~~
密码修改失败请联系微信:mofangbao
发表于 2013-10-14 08:40:46 | 显示全部楼层
两米阳光 发表于 2013-10-14 08:22
刚刚试着又改了一下,不小心改错了,结果整个xshell都出现问题了

额~~~慢慢来~~~祝你成功
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-10-14 08:46:49 | 显示全部楼层
本帖最后由 两米阳光 于 2013-10-14 09:08 编辑
andrewsoong 发表于 2013-10-14 08:40
额~~~慢慢来~~~祝你成功

为什么好多种环境变量的设置方法呢 不知道哪个是对的 一个个的尝试。。。。
密码修改失败请联系微信:mofangbao
发表于 2013-10-14 08:52:10 | 显示全部楼层
两米阳光 发表于 2013-10-14 08:46
我能问一下,修改了.bashrc后什么命令都不好用了咋办呢?都是command not found

改回来吧~~~或者找管理员~~~
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-10-14 09:24:38 | 显示全部楼层
ayzqs 发表于 2013-10-14 07:04
你的环境变量没设好吧

#ncl

按照你的这么改的,还是同样的错误显示
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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