爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 25746|回复: 36

[脚本编辑] GrADS for mac 安装及运行

[复制链接]

新浪微博达人勋

发表于 2017-2-9 22:25:14 | 显示全部楼层 |阅读模式

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

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

x
估计用mac的人对grads的安装和运行比较烦恼,我最开始是直接装了双系统,后来切换系统觉得很麻烦,捣鼓了一下终于在mac上装好了,本帖是参考“龍_彳亍_天_下的回复然后试着去做,蛮有效的,感谢,整理了之后分享一下~!
首先,在官网上选择适合自己的版本下载安装包 http://cola.gmu.edu/grads/downloads.php(这个没什么技术含量下载解压安装就好啦),我自己的mac已经更新到10.12.3 了,看了一下官网上的grads最新匹配的版本才10.9,不过没关系,照样能用~(貌似还要有XQuartz,因为我的电脑本身就有所以没在意,没有的童鞋还是下载一下吧~)


下载了之后,另外在官网上http://cola.gmu.edu/grads/downloads.php 找到:
“Supplementary Files
The font and map files are supplementary data sets that are required in order to run GrADS. Their default location is: /usr/local/lib/grads/. If you do not have write permission for this directory you can place the files elsewhere, but you must also change the environment variable GADDIR so the GrADS executables will know where to find these files. You can download the data files separately by clicking here: data2.tar.gz.”
下载data2.tar.gz并解压缩,将data2文件放在你grads解压安装包目录下。


之后就打开终端程序(terminal)输入cd回车,然后输入touch .bash_profile回车,open .bash_profile回车,这时会弹出一个文本框,
输入# grads
export GADDIR=/Users/lanruoyu/Desktop/grads/bin/data2
export GASCRP=/Users/lanruoyu/Desktop/grads/bin/lib    *(安装包里没有,但还是先把它写上)
export PATH=/Users/lanruoyu/Desktop/grads/bin:$PATH  *(grads的路径)
然后关掉该文本,在终端上输入source .bash_profile回车,这样就好啦


最后直接关掉终端,在grads解压安装包目录里找到一个叫grads的exec文件,双击就会再次弹出终端,接下来就跟windows里的grads操作一样,我测试了一个nc文件是可读可画图的~


密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-1 18:01:06 | 显示全部楼层
dyld: Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib
  Referenced from: /Users/lc/Desktop/grads-2.1.1.b0/bin/grads
  Reason: image not found
Trace/BPT trap: 5
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
弹出了一堆这个。。求问是什么问题呀
密码修改失败请联系微信:mofangbao
回复 支持 4 反对 0

使用道具 举报

新浪微博达人勋

发表于 2017-2-10 09:04:15 | 显示全部楼层
不错不错,很实用很强大
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-2-10 15:15:27 | 显示全部楼层
学习学习,一起进步。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-12 22:06:43 | 显示全部楼层
微笑的橙子 发表于 2017-3-1 18:01
dyld: Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib
  Referenced from: /Users/lc/Desktop ...

我也遇到了这个问题。。。然后就没办法用GrADS了嘤嘤嘤。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-13 12:13:11 | 显示全部楼层
杨老菊 发表于 2017-3-12 22:06
我也遇到了这个问题。。。然后就没办法用GrADS了嘤嘤嘤。。。

可以的可以的!!!!!我瞎鼓捣鼓捣好了!!!!!感觉就是到处下下下下一堆东西
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-13 12:25:18 | 显示全部楼层
杨老菊 发表于 2017-3-12 22:06
我也遇到了这个问题。。。然后就没办法用GrADS了嘤嘤嘤。。。

根据“风云骤”大大的指点这是因为GrADs没下好嗯
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-13 13:52:33 | 显示全部楼层
杨老菊 发表于 2017-3-12 22:06
我也遇到了这个问题。。。然后就没办法用GrADS了嘤嘤嘤。。。

你看第一行:Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib
这个就是在/opt/local/lib/目录下缺少相关文件导致编译没有成功,估计是你gcc或者个fortran编译器没有安装好
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-3-15 18:59:52 | 显示全部楼层
微笑的橙子 发表于 2017-3-13 12:13
可以的可以的!!!!!我瞎鼓捣鼓捣好了!!!!!感觉就是到处下下下下一堆东西

我的电脑在安装了编译器以后还是有问题呢。。。求问这位童鞋具体都下载安装了什么?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-5-3 23:18:22 | 显示全部楼层
楼主,请问是这样的情况怎么回事

Last login: Wed May  3 23:19:37 on ttys001
macdeMacBook-Pro:~ mac$ /Users/mac/Documents/grads/grads-2.1.1.b0/bin/grads ; exit;
dyld: Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib
  Referenced from: /Users/mac/Documents/grads/grads-2.1.1.b0/bin/grads
  Reason: image not found
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[进程已完成]
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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