爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 吴闫521

ncl安装时,解压文件出现问题

[复制链接]
 楼主| 发表于 2016-1-7 12:29:17 | 显示全部楼层
风之精灵 发表于 2016-1-7 10:51
根据错误提示:“fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)”,
很有 ...

export NCARG_ROOT=/usr/local/ncl
export PATH=$NCARG_ROOT/bin:$PATH
export DISPLAY=:0.0
export NCARG_LIB=/usr/local/ncl/lib
export NCARG_INC=/usr/local/ncl/include
我看了下是一样的,我其他的设置的对吗,麻烦您啦
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-7 12:55:49 | 显示全部楼层
风之精灵 发表于 2016-1-7 10:51
根据错误提示:“fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)”,
很有 ...

您好,能把你的具体安装步骤告我下吗谢谢啦,安的实在太麻烦了,
密码修改失败请联系微信:mofangbao
发表于 2016-1-7 13:28:18 | 显示全部楼层
吴闫521 发表于 2016-1-7 12:55
您好,能把你的具体安装步骤告我下吗谢谢啦,安的实在太麻烦了,

第一次都是这样的 NCL的工作环境是linux/unix,这和我们平时使用的windows截然不同,无论是安装CygWin还是linux系统和其上的软件,都可能会让你有小烦恼。这都是小麻烦,熟悉一段时间就好了。好了,下面是我的安装目录和安装文件,以及环境设置截图,有问题你再提出来吧
密码修改失败请联系微信:mofangbao
发表于 2016-1-7 13:29:35 | 显示全部楼层
这下面是安装目录和环境设置语句
安装目录.png
环境设置.png
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-7 14:56:53 | 显示全部楼层
风之精灵 发表于 2016-1-7 13:29
这下面是安装目录和环境设置语句

好的非常感谢,我再试试
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-7 15:15:07 | 显示全部楼层
风之精灵 发表于 2016-1-7 13:29
这下面是安装目录和环境设置语句

您看下这是我的安装目录
linuxwy@linuxwy-virtual-machine:~$ cd /usr/local
linuxwy@linuxwy-virtual-machine:/usr/local$ ll
总用量 44
drwxr-xr-x 11 root root 4096  1月  6 16:30 ./
drwxr-xr-x 12 root root 4096  1月  6 15:24 ../
drwxr-xr-x  2 root root 4096 10月 21 23:48 bin/
drwxr-xr-x  2 root root 4096 10月 21 23:48 etc/
drwxr-xr-x  2 root root 4096 10月 21 23:48 games/
drwxr-xr-x  2 root root 4096 10月 21 23:48 include/
drwxr-xr-x  5 root root 4096 10月 21 23:55 lib/
lrwxrwxrwx  1 root root    9  1月  5 17:23 man -> share/man/
drwxr-xr-x  5 root root 4096  1月  6 19:14 ncl/
drwxr-xr-x  2 root root 4096 10月 21 23:48 sbin/
drwxr-xr-x  8 root root 4096 10月 21 23:55 share/
drwxr-xr-x  2 root root 4096 10月 21 23:48 src/
linuxwy@linuxwy-virtual-machine:/usr/local$ cd ncl
linuxwy@linuxwy-virtual-machine:/usr/local/ncl$ ll
总用量 52
drwxr-xr-x  5 root root  4096  1月  6 19:14 ./
drwxr-xr-x 11 root root  4096  1月  6 16:30 ../
drwxr-xr-x  2 root root  4096  1月  6 17:18 bin/
-rw-r--r--  1 root root 17046  1月  6 19:14 cpex08.f
-rw-r--r--  1 root root  5566  1月  6 19:14 cpexcc.f
-rw-r--r--  1 root root  3423  1月  6 20:47 gsun01n.ncl
drwxr-xr-x  3 root root  4096  1月  6 17:18 include/
drwxr-xr-x  3 root root  4096  1月  6 17:18 lib/
linuxwy@linuxwy-virtual-machine:/usr/local/ncl$
环境变量设置
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi
#ncl
export NCARG_ROOT=/usr/local/ncl
export PATH=$NCARG_ROOT/bin:$PATH
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-7 15:19:06 | 显示全部楼层
风之精灵 发表于 2016-1-7 13:29
这下面是安装目录和环境设置语句

我是在root权限下安装的,普通用户名没有权限在/usr/local/下新建文件夹,和这有关系吗
密码修改失败请联系微信:mofangbao
发表于 2016-1-7 15:35:57 | 显示全部楼层
吴闫521 发表于 2016-1-7 15:19
我是在root权限下安装的,普通用户名没有权限在/usr/local/下新建文件夹,和这有关系吗

/usr目录下新建文件必需使用root权限,但在编辑~/.bashrc文件设置环境变量,就不需要了
密码修改失败请联系微信:mofangbao
发表于 2016-1-7 15:37:02 | 显示全部楼层
你现在终端输入ncl,会有什么提示
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-7 15:48:06 | 显示全部楼层
风之精灵 发表于 2016-1-7 15:37
你现在终端输入ncl,会有什么提示

这是在普通用户名下

linuxwy@linuxwy-virtual-machine:~$ ncl
ncl: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
linuxwy@linuxwy-virtual-machine:~$

在root下

root@linuxwy-virtual-machine:/home/linuxwy# ncl
Copyright (C) 1995-2015 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.3.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
ncl 0>
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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