Questions tagged [cygwin]

Cygwin is a collection of GNU and other Unix-like FOSS tools which run on MS Windows and provide functionality similar to a GNU/Linux distribution while (mostly) conforming to POSIX specifications. Use this tag for questions about developing programs and/or scripts to run in this environment. Questions on the *use* of tools in a Cygwin environment are more appropriate for Super User (https://superuser.com).

Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. Cygwin provides native integration of Windows-based applications, data, and other system resources with applications, software tools, and data of the Unix-like environment. Thus it is possible to launch Windows applications from the Cygwin environment, as well as to use Cygwin tools and applications within the Windows operating context.

Cygwin consists of two parts: a dynamic-link library () as an API compatibility layer providing a substantial part of the API functionality, and an extensive collection of software tools and applications that provide a Unix-like look and feel.

Cygwin is:

  • a collection of tools which provide a Linux look and feel environment for Windows.
  • a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.

Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
  • 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.

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 and Windows NT4.

Official Website: http://www.cygwin.com/

Useful Links:

7878 questions
43
votes
5 answers

What is the current full install size of Cygwin?

Every source I found online says a full installation of Cygwin takes over 1 GB, but mine is only 100 MB. I was pretty sure I downloaded everything from the mirror servers, but the install took less than 5 minutes to complete instead of hours, as I'd…
TopTierTracker
  • 487
  • 1
  • 6
  • 10
42
votes
3 answers

Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8

I am getting the following warning when compiling my cocos2d-x project with cygwin. `/cygdrive/e/project/MyGame/proj.android ` /cygdrive/e/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: WARNING:APP_PLATFORM android-9 is larger than…
glo
  • 1,408
  • 3
  • 25
  • 54
41
votes
6 answers

Using expect to pass a password to ssh

How can I use expect to send a password to an ssh connection. say the password was p@ssword and the ssh command was ssh me@127.0.0.1 What would I do with expect to a make it input the password when it says me@127.0.0.1's password: ? The proper…
Malfist
  • 31,179
  • 61
  • 182
  • 269
41
votes
5 answers

Pdflatex for windows

Does anyone know how to convert .tex files to .pdf in windows? I tried cygwin but it said the command "pdflatex" was not recognised Thanks Philip
Phil
  • 421
  • 1
  • 4
  • 4
41
votes
8 answers

How can I run Cygwin Bash Shell from within Emacs?

I am running GNU Emacs on Windows so entering: M-x shell launches the Windows command-line DOS shell. However, I would like to instead be able to run the Cygwin Bash Shell (or any other non-Windows shell) from within Emacs. How can this be easily…
Ray
  • 187,153
  • 97
  • 222
  • 204
41
votes
8 answers

How to get Git 1.8 in Cygwin?

According to http://cygwin.com/packages/git/ the latest available Cygwin package is 1.7.9-1. I would like to update git to at least 1.8.0. Can I do this?
mnaoumov
  • 2,146
  • 2
  • 22
  • 31
41
votes
5 answers

How do I install Perl libraries in Cygwin?

I'm a C/C++/Java/Unix geek by trade, but now I have to write a Perl program in Windows. So I've got Cygwin, Eclipse with EPIC installed, and simple test programs run. I do not have a Unix machine available to me that I can run Eclipse on. But I need…
stu
  • 8,461
  • 18
  • 74
  • 112
40
votes
6 answers

Installing additional packages for Cygwin

To install additional packages for Cygwin, do I just need to run the setup.exe again and choose from the packages list? Also, doing this won't harm my computer in terms of 2 Cygwin instances being installed or problems of that kind (I'm kind of a…
osse
  • 1,533
  • 5
  • 18
  • 25
40
votes
8 answers

Invoking python under CygWin on Windows hangs

Installing a new Windows system, I've installed CygWin and 64 bit Python (2.7.3) in their default locations (c:\cygwin and c:\Python27\python), and added both the CygWin bin and the Python directory to my path (in the user variable PATH). From the…
James Kanze
  • 150,581
  • 18
  • 184
  • 329
39
votes
6 answers

How do I terminate all the subshell processes?

I have a bash script to test how a server performs under load. num=1 if [ $# -gt 0 ]; then num=$1 fi for i in {1 .. $num}; do (while true; do { time curl --silent 'http://localhost'; } 2>&1 | grep real done) & done …
ykaganovich
  • 14,736
  • 8
  • 59
  • 96
39
votes
3 answers

What packages should I install with Cygwin to make it not bloated but also have everything I would need as a developer?

Normally, I run Linux in a VM, however, most of my VMs are on an external HDD and I might or might not have one with me. I figure Cygwin would be a good alternative for lightweight functionality when I need something Linux like and don't have a VM…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
39
votes
16 answers

Cygwin no available download site

I have tried from my office it show available download site. Then I used same installer (setup-x86_64.exe) at home it not show anything. Both my pc (office and home) i set up google dns. Is it because im using wireless connection at home? Please…
Syafeuq
  • 429
  • 1
  • 4
  • 9
39
votes
11 answers

Why does GCC-Windows depend on cygwin?

I'm not a C++ developer, but I've always been interested in compilers, and I'm interested in tinkering with some of the GCC stuff (particularly LLVM). On Windows, GCC requires a POSIX-emulation layer (cygwin or MinGW) to run correctly. Why is…
benjismith
  • 16,559
  • 9
  • 57
  • 80
39
votes
4 answers

error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)

Please don't confuse with the title as it was already asked by someone but for a different context The below code in Visual C++ Compiler (VS2008) does not get compiled, instead it throws this exception: std::ifstream input (fileName); while…
asyncwait
  • 4,457
  • 4
  • 40
  • 53
38
votes
5 answers

Install rsync with cygwin

I would like to backup a dir in Win XP on a Solaris server via rsync. I installed cygwin but when I type rsync I get 'command not found'. How can I install rsync? And how can I install ssh. I have installed Poderosa as ssh client (a sort of putty).
rtacconi
  • 14,317
  • 20
  • 66
  • 84