最近在学习Linux下相关的东西,但是在系统上装了双系统,有的时候在windows系统下用着用着的时候,看着Linux相关的书籍,突然要转到Linux系
统下觉得很不方便,又想使用Linux下的Bash,make,以及熟悉一下g++,gcc以及gdb的使用,因此就想着能不能在windows系统下在不安装虚拟机的情
况下,使用Linux的这些东西呢,于是乎就找到了Cygwin,首先看看Cygwin的官方介绍:参考网址:点击打开链接
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.
Cygwin能做什么?
- Windows的Dos Scripts功能非常薄弱,命令行工具也非常少;如果您对Linux比较熟悉,那么Cygwin可以帮助您在Windows下面使用强大的Bash,以及使用数量繁多的Linux命令,通过Scripts,可以更加高效的完成系统管理工作 [站长维护的Windows服务器上都安装有Cygwin,所有的系统维护,数据备份,SCP自动同步,都是在Cygwin下面处理的。]
- 如果您刚进入Linux的世界,使用Cygwin可以让你在Windows下面练习Linux的Bash,以及常用工具。而不需要安装Linux,也不用担心Windows被破坏。
安装过程:
1、前面的展开+号可以看到所属部分有哪些部件,比如在Devel下面就很很多我们需要的东西,是开发所需要的,即
gcc-core
gcc-mingw
gdb