cygwin下安装NCL

1.安装cygwin

到cygwin官网https://www.cygwin.com/下载安装程序,setup-x86.exe,注意能下载这个安装程序, setup-x86_64.exe64位不支持ncl安装

2.双击运行 setup-x86.exe,从镜像网站中下载安装包至本地,不要在线安装,选择文件下载至local,并且手动点击,实现所有的程序包的下载。在选择镜像网站的时候,可以选择后缀为.jp的,也就是日本服务器,速度较快,全部下载之后大概有17G,可能需要一天时间下载

3.安装cygwin,双击 setup-x86.exe开始安装程序,选择从本地文件安装程序,在软件安装的时候,需要特别安装以下插件,以保证后续的ncl安装成功

  • Category "Devel": install "autoconf", "binutils", "bison", "byacc", "flex", "gcc", "gcc4", "gcc4-fortran", "gcc-g++", "gdb", "make", "makedepend", "openssl-devel".
  • Category "Editors": [optional] some popular editors that you might want for editing your files include "nedit", "emacs", and "vim".
  • Category "Graphics": [optional] install "ghostscript" for viewing PostScript files, "ImageMagick" for "convert"
  • Category "Libs": "expat", "libcurl4", "libexpat-devel", "libgfortran4", "libidn-devel", "libxml2", "libtirpc", "zlib"
  • Category "Net": `install "libcurl-devel", "libcurl4", and "openssh".
  • Category "Shells": install "bash", "sh-utils", "pdsh", and "tcsh".
  • Category "X11": install all of the required packages that the "Installing Cygwin/X" section mentions (see #15 where it lists all the "X11" packages and whether they are required or optional).

4.下载ncl,选择ncl在cygwin环境下的安装包ncl_ncarg-6.5.0-CYGWIN_NT-10.0-WOW_i686.tar.gz,下载https://www.earthsystemgrid.org/dataset/ncl.650.dap/file.html

5.安装ncl

mkdir /usr/local

cd /usr/local

gunzip /cygwin/home/JohnDoe/ncl_ncarg-6.5.0.CYGWIN_NT-10.0-WOW_i686.tar.gz

tar -xvf /cygwin/home/JohnDoe/ncl_ncarg-6.5.0.CYGWIN_NT-10.0-WOW_i686.tar

6.设置环境变量,生效环境变量,大功告成!

Every user of NCL needs to set their environment before they can use NCL. You can do this by opening your "c:\cygwin\home\xxx\.bashrc" (or "c:\cygwin\home\xxx\.bash_profile" if ".bashrc" doesn‘t exist) file with a UNIX editor and adding the lines:

export NCARG_ROOT=/usr/local

export PATH=/usr/local/bin:$PATH

csh/tcsh:

source ~/.cshrc

source ~/.tcshrc

bash/ksh:

. ~/.bashrc

. ~/.bash_profile

7.中间可能出现的问题

a.在cygwin中安装ncl之后,运行ncl毫无反应,没有报错也没有进入ncl

可能原因:很有可能是安装64位的cygwin,导致没有结果

Important note: Cygwin comes with two versions of the setup program. They are called setup-x86.exe and setup-x86_64.exe. Download the setup-x86.exe one, because the other one is for 64-bit Cygwin. NCL can‘t be installed under 64-bit Cygwin because there are many external packages that NCL depends on that aren‘t buildable under 64-bit Cygwin.

b.安装ncl之后,运行ncl,报错显示缺少一些.dll文件,例如 error while loading shared libraries: cygmpfr-4.dll:cannot open shared object file: No such file or directory等

原因:安装cygwin的时候选择默认安装插件,没有手动选择自己需要的,导致没有安装

解决方法:先检查cygwin的安装包是否包含上述插件,没有则下载完成安装包,重新安装,在安装的过程中不要需要默认形式,手动install,尤其注意选择步骤3中的几个插件,否则可能出错

参考网站:

http://www.ncl.ucar.edu/Download/cygwin.shtml

https://www.cygwin.com/

原文地址:https://www.cnblogs.com/zhanggl12138/p/9879136.html

时间: 2024-08-29 09:47:46

cygwin下安装NCL的相关文章

cygwin下安装应用 cyg-apt Package nano not found or ambiguous name, exiting 更新不成功

cygwin是windows上使用linux的一个软件,非常轻量好使. 在linux中可以apt-get来安装软件,在cygwin中安装软件方式有两种: 1. 重新运行setup安装程序,然后选择安装即可. 2. 使用apt-cyg来安装软件 首先安装cygwin程序,官网上下载即可.过程中安装 wget tar gawk bzip2 安装cyg-apt 网上的教程都是 wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg -P /bin ch

在cygwin下安装ns2

首先下载ns2.可以到sourceforge去下载最新的all-in-one版本2.31,url为http://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689&release_id=492770. 也可以在ns首页下载较老的版本,如2.28或2.29.其实较老的版本也有好处:一是比较稳定,最新的版本可能是个实验版本:二是老的版本和一些教程上使用的版本匹配,学习过程中不会遇到什么奇怪的问题. 下载

Windows下使用NCL(Cygwin模拟Linux环境)

参考自:http://bbs.lasg.ac.cn/bbs/thread-37043-1-1.html 1.下载 所需文件均可在此下载:http://yunpan.cn/cQsvAEe3Axs2Z  访问密码 2fa2 下载文件放到D:/anzhuang/目录下,cygwin.rar需解压,另一个ncl压缩文件不需要解压 2.安装Cygwin/X 1)点击cygwin文件夹下的setup.exe 2)点击“下一步”,出现“Choose Installation Type”,请选择“Install

Windows 7下安装Cygwin亲历烦恼记录

重要声明:本文是我的2011.10在我的以前的ITPUB博客上发表的又一篇文章,记录了安装与下载Cygwin这个WINDOWS下LINUX模拟环境所经历的一些挫折.时至今日,我相信它还会对我的51CTO新开课程<基于CocoStudio开发跨平台拇指空当接龙游戏>的学员的学习具有重要参考价值,所以把它搬动到此地. 另外,提醒学员们注意:既然你选择了COCOS2D-X这种开发工具,必须意味着你具有想创建跨主流移动平台(在本人看来应当是:iPhone,Android和非常有可能对于前者将会在各方面

Win下安装Cygwin中的SSH服务

windows和linux各有其优越性,可以安装在同一台电脑上,但切换要重启.同时拥有两台电脑,一台装win,一台装linux,自然非常好,但具备此条件的不多.本文介绍cygwin,它可以让你在win下拥有linux开发环境,并且不用切换. 简单的讲述一下cygwin的安装和配置,入门级教程,还请各位一二. 首先到http://www.cygwin.com 下载setup.exe到本地目录, 点击运行,Next-> 选Install from Internet,Next-> 填写Root Di

windows下安装cygwin及配置(转)

reference:https://cygwin.com/install.html 对于使用Windows操作系统作为开发平台同时又喜欢类unix环境的朋友(Windows不是最方便的开发环境),这里是在Cygwin环境下安装Rails的步骤 安装 Cygwin     先去http://www.cygwin.com/setup.exe下载setup.exe,运行,得到这个界面: 点下一步,出现这个界面: 选择"Install from Internet",当然,如果本地已经下载了你所

cygwin下vim安装neocomplete出现if_lua没有启用的错误

对vim配置neocomplete自动补全插件,安装完成之后出现"neocomplete does not work this version of Vim. It requires Vim 7.3.885 or above and "if_lua" enabled Vim."的错误提示,neocomplete插件无法启动. 从错误信息来看,是if_lua模块没有启用.使用vim --version命令可输出的版本号是7.4,满足版本要求.neocomplete官方

cygwin的安装使用

Cygwin 是一个用于 Windows 的类 UNIX shell 环境. 它由两个组件组成:一个 UNIX API 库,它模拟 UNIX 操作系统提供的许多特性:以及 Bash shell 的改写版本和许多 UNIX 实用程序,它们提供大家熟悉的 UNIX 命令行界面.前一个组件是一个 Windows 动态链接库 (DLL).后一个组件是一组基于 Cygwin DLL 的程序,其中许多是用未经修改的 UNIX 源代码编译的.它们合在一起提供大家熟悉的 UNIX 环境. 这篇文章我们要安装 C

cygwin完全安装步骤方法(组图)

我们可以到Cygwin的官方网站下载Cygwin的安装程序,地址是: http://www.cygwin.com/ 或者直接使用下载连接来下载安装程序,下载连接是: http://www.cygwin.com/setup.exe 下载完成后,运行setup.exe程序,出现安装画面.直接点"下一步",出现安装模式的对话框,如下图所示: 我们看到有三种安装模式: Install from Internet,这种模式直接从Internet安装,适合网速较快的情况: Download Wit