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
38
votes
11 answers

Cygwin make error : *** target pattern contains no `%'

I got this error while (re)building, using cygwin make.exe version :3.81. Error : *** target pattern contains no `%'.
Reno
  • 33,594
  • 11
  • 89
  • 102
38
votes
8 answers

Cygwin git tab completion

I installed Cygwin on windows and one of the default packages is git tab completion, but I don't have tab completion. I did some searching and found a note saying it isn't enabled by default. I copied the skel .bashrc and .bash_profile to ~ and in…
JAyenGreen
  • 1,385
  • 2
  • 12
  • 23
37
votes
5 answers

Appending a line break to an output file in a shell script

I have a shell script that I am executing in Cygwin (maybe this is the problem). For this bit of code, I simply want to write the first line, and append a line break: echo "`date` User `whoami` started the script." >> output.log echo >>…
Ode
  • 465
  • 1
  • 5
  • 12
37
votes
5 answers

gdb: exit program without exiting gdb

I am debugging a program using gdb. First I load my executable, then I continue to run the program. I sometimes want to interrupt execution of my program, so I do Ctrl + C. My problem is that this closes both my program and gdb. How can I exit my…
Randomblue
  • 112,777
  • 145
  • 353
  • 547
37
votes
4 answers

Git slows down Emacs to Death - How to Fix this?

Opening a file (either by typing Ctrl-x f, AKA Find File) or by typing f on that file in Dired mode), is painfully slow in working directories that have a .git subdirectory. Even the simplest file (50 lines with mostly comments) could take up to 8…
WinWin
  • 7,493
  • 10
  • 44
  • 53
37
votes
2 answers

Store https passwords with cygwin's Git

I am using Cygwin and Git. Every time I push/pull to a repo on Bitbucket with a https url I am asked to enter a password. Is there a way to store these credentials (like with ssh-keys)? I tried to install Windows Credential Store for Git but I…
Cim
  • 371
  • 1
  • 3
  • 5
36
votes
5 answers

Why cannot I chmod in Cygwin on Windows 8 CP?

I can't chmod group permission in Cygwin on Windows 8 so that I can't ssh connect to a server using an ssh key. Bash prompt warning: "Permissions 0660 for '/home/KeepZero/.ssh/id_rsa' are too open. It is required that your private key files are NOT…
KeepZero
  • 897
  • 3
  • 9
  • 11
36
votes
5 answers

Android ndk-build iostream: No such file or directory

I'm having a problem with compiling a .cpp file using the ndk-build tool (Windows 7 with Cygwin). The error appears when I try to compile the .cpp file with #include: jni/native.cpp:5:20: error: iostream: No such file or directory Here is my .cpp…
Andrey Zavarin
  • 1,483
  • 2
  • 13
  • 12
35
votes
0 answers

SSL certificate issue when trying to clone Git repository within Cygwin

Possible Duplicate: HTTPS github access I am trying to clone a Git repository from Cygwin running on Windows 7. I am entering the command git clone http://github.com/scottgonzalez/node-chat and getting this result: Cloning into…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
35
votes
7 answers

how to install apt-cyg for Cygwin?

taken form here - explaining how to install apt-cyg Install apt-cyg You may have heard of programs like apt-get (Ubuntu), yum/dnf (Fedora), pacman (Arch), or brew (Mac OS X)... .. .The analogous program for Cygwin is called apt-cyg. Installing…
AIon
  • 12,521
  • 10
  • 47
  • 73
34
votes
3 answers

Using Component Object Model (COM) on non-Microsoft platforms

I'm regularly running into similar situations : I have a bunch of COM .DLLs (no IDL files) which I need to use and invoke to be able to access some foreign (non-open, non-documented) data format. Microsoft's Visual Studio platform has very nice…
DrYak
  • 1,086
  • 1
  • 10
  • 15
34
votes
1 answer

Cygwin or Git Bash command window?

I'm new to Git. I downloaded Git and installed on my Windows. I saw Git provides a Git Bash command window. I also have Cygwin installed on my machine. Both Git Bash and Cygwin provide Git command line utilities. So my question is: Which one is the…
tonga
  • 11,749
  • 25
  • 75
  • 96
33
votes
1 answer

How can I use a shebang in a PowerShell script?

I have several PowerShell scripts that I'd like to invoke directly as a command from a Bash shell in Cygwin. For example, if I write a script with the filename Write-Foo.ps1, I'd like to execute it as a command from any working directory: $…
Cy Rossignol
  • 16,216
  • 4
  • 57
  • 83
33
votes
9 answers

Cygwin: using a path variable containing a windows path (with a space in it)

I want to add some dirs to my PATH. Unfortunately these dirs are located in windows path containing space (like the Documents and Settings) I've unsuccessfully tried to: Create a variable: 43598811@E250BZD20015026 ~ $…
Guillaume
  • 5,488
  • 11
  • 47
  • 83
33
votes
4 answers

How to make a symbolic link with Cygwin in Windows 7

Recently I have tested to write an Android application with native code in C/C++. The problem is in making symbolic links when using the Android NDK. After some googling, some say to use Cygwin. I have installed it now. How can I make a symbolic…
aemon
  • 789
  • 2
  • 7
  • 13