What Is Cygwin?
■ Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
■ A collection of tools which provide Linux look and feel.
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.
Note that the official support for Windows 95, Windows 98, and Windows Me will be discontinued with the next major version (1.7.0) of Cygwin.
What Isn't Cygwin?
■ Cygwin is not a way to run native linux apps on Windows. You have to rebuild your application from source if you want it to run on Windows.
■ Cygwin is not a way to magically make native Windows apps aware of UNIX ® functionality, like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.
昨天,费了很大力气,终于在Windows XP上把Cygwin给安装上了,真的有点非常规。
Cygwin的下载
登录到Cygwin官方网站(http://www.cygwin.com),或者直接执行http://www.cygwin.com/setup.exe,就可以下载到一个setup.exe文件,这个文件非常小,如下所示:

下面是下载的过程以及附加说明:
双击setup.exe文件,如图所示:









个人就选择了下载所有的文件,如上面所示,接着单击“下一步”按钮就开始下载了。
等待……,如果下载进度到90%以上,接近100%的时候停止了,那就“取消”掉下载。再重新执行上面的下载操作,尤其是选择上次下载的那个站点,速度很快,下载进度很多达到接近100%,直到下载完成为止。
下载完成后,可以查看自动生成的http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin%2f目录(绝对路径为G:\Downloads\http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin%2f\)。
Cygwin的安装
Cygwin的安装仍然需要使用setup.exe文件,如下所示:

单击setup.exe文件,如图所示:








安装完成后,应该可以看到,在安装目录中生成一个文件,如图所示:

第一次启动的时候,会自动在你的安装目录F:\cygwin下创建一个Home目录,如图所示:
