ubuntu12.10安装NCL问题
NCL在Linux下安装很容易,但一定要选对版本,不然出错不容易察觉。NCL安装教程可参考:
问题1:我是按照教程2安装的,安装好后在终端中输入命令 ncl,提示:
bash: /usr/local/NCL/bin/ncl: 没有那个文件或目录
解决办法:原因在于我的ubuntu系统是64位的,下载的ncl版本却是32位,所以在下载ncl版本前一定要了解系统架构和gcc版本,可以用命令:uname –a 及 gcc –v 。选择64位版本再装一遍,成功!在网上看到的另一个解决方法(未测试):安装一个32位的支持库 sudo apt-get install ia32-libs
问题2:输入命令 ncl_convert2nc,提示:
bash: /usr/local/NCL/bin/ncl_convert2nc: /bin/csh: 坏的解释器: 没有那个文件或目录
解决办法:安装csh
sudo apt-get install csh
sudo apt-get install tcsh
在解决上面问题时还找到其它ncl安装过程中的问题:
1 、官网最后一步输入 ng4ex gsun01n后应该出现一张图,但是运行后出现” fatal:syntax error: line 0 before or near gsun01n”。
说明:其实这个问题很简单,我是在ncl里面输入的这句语言,其实是要在bash下输入,如果在bash下还是这个错误,google之,会发现官网也有解答,如下:
> cp $NCARG_ROOT/lib/ncarg/nclex/gsun/gsun01n.ncl .
> ncl gsun01n.ncl
>
> A window should pop up and you can click on it with your left mouse
> button to advance through the 5 frames of graphics.
>
> If this works, then I'm guessing the original problem is that you
> don't have "/bin/csh" on your system. This is needed in order to run
> "ng4ex"
说明你没有安装csh/tcsh,
$ sudo apt-get install csh
$ sudo apt-get install tcsh
2、 再试又出现问题“utserver: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory" , 解决方法如下:
For Fedora:
$ sudo ln -s /usr/lib/libssl.so.10 /usr/lib/libssl.so.0.9.8
$ sudo ln -s /lib/libcrypto.so.10 /lib/libcrypto.so.0.9.8
For Ubuntu:
$ sudo apt-get install libssl0.9.8:i386
参考文章:
1.NCL官网教程 http://www.ncl.ucar.edu/Download/install.shtml
3. http://bbs.06climate.com/home.php?mod=space&uid=1&do=blog&id=1327
作者:Parallel Life
出处:http://www.cnblogs.com/Parallel-Life/
同步博客:http://metman.info/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接
如有问题,可以通过jiangqingu@gmail.com 联系我,非常感谢。
posted on 2013-01-18 20:18 Parallel Life 阅读(1741) 评论(0) 编辑 收藏 举报