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
3
votes
1 answer

Perforce Line Endings per file

My Perforce-based project supports both Linux and Cygwin platforms with the same shell scripts (e.g. build_project.sh). But Perforce defaults line endings for text files to the local platform (Docs). This causes \r\n newlines in the .sh scripts,…
Tim
  • 2,708
  • 1
  • 18
  • 32
3
votes
2 answers

Local Git repository does not exist after successful clone from cygwin bash

When I clone to the directory (that does not exists) referred to via absolute path, git does not complain about anything, report 0 exit code but the directory is not created. Git complies the directory do exist when I retry: user@host /tmp $ git…
Oliver Gondža
  • 3,386
  • 4
  • 29
  • 49
3
votes
4 answers

rsync, 'uid/gid impossible to set' cases cause future hard link failure, how to fix?

I am using rsync version 3.1.1 protocol version 31 with cygwin version 2.3.1(0.291/5/3). I believe that I need to chown all my Win7 files, with unknown uid/gid's, which rsync would copy, BEFORE the first rsync is run on these files. On unknown…
KiloOne
  • 312
  • 1
  • 6
  • 20
3
votes
0 answers

error: "the procedure entry point.." when running exe after compiling with gcc / cygwin

I am learning c and I am using code::block I have wrote this code "from ansi c book" #include #include float convertToCelsius(float f); int main() { int start = 0; int step = 5; int upper = 300; …
Muhammad Nour
  • 2,109
  • 2
  • 17
  • 24
3
votes
1 answer

How to build hsdis.dll for Windows 32-bit?

I am trying to build hsdis.dll in my laptop 32-bit Windows. I read http://dropzone.nfshost.com/hsdis.htm instructions and got to know that I will have to follow those steps. I saw that I have to use the mingw64-i686-gcc-core. I followed the steps,…
sdafad
  • 359
  • 1
  • 2
  • 7
3
votes
2 answers

Unexpected results with std::thread under Cygwin

I'm not sure whether std::thread is supposed to be working under Cygwin. The only posts I find are years old and deal with compiler errors. So this problem is a bit different. I am porting an application from Linux to Cygwin. It uses multiple…
TFM
  • 717
  • 6
  • 21
3
votes
0 answers

Character Encoding in Visual Studio Output Window

I'm trying to properly format the text inside the Visual Studio 2010 output window. I've research a few options and none of them work, either because I couldn't figure out how to implement a solution or the attempted solution didn't work. The…
Andrew
  • 1,423
  • 1
  • 17
  • 26
3
votes
3 answers

Compiling node.js on Cygwin

I'm trying to build node.js on my Windows XP box (Yes, it IS painful, thanks.) using Cygwin following Ryans instructions here. Sadly calling "./configure" from the node source directory barfs up this: $ ./configure /home/LWE/sources/node.js/wscript:…
selfawaresoup
  • 15,473
  • 7
  • 36
  • 47
3
votes
3 answers

Cygwin: Linux kernel make clean not working

I am trying to compile Linux kernel on Windows using Cygwin. When I try make distclean it gives me the following error: make distclean make[1]: *** Documentation/Kbuild: Is a directory. Stop. Makefile:1188: recipe for target…
user1177187
  • 461
  • 1
  • 5
  • 15
3
votes
0 answers

Asynchronous method call in Python without creating threads or forking process?

Some years ago, (for comparison) synchronous JavaScript ajax requests were deprecated because of the overhead. I’m in the following situation : def ssh_network_operation_with_paramiko(string): …
user2284570
  • 2,891
  • 3
  • 26
  • 74
3
votes
0 answers

Files in Cygwin are always executable

I installed Cygwin on my Windows 10 machine, but I found that all the files in Cygwin are executable, whatever the file extensions are. How should I set the file permissions correctly.
yufw
  • 71
  • 3
3
votes
1 answer

Why GIT Fetch failed from IntelliJ and works from cygwin shell

I am using git with cygwin. Fetching and cloning remote repo works from cygwin shell. But fails from IntellJ IDEA with message: Fetch failed: fatal: unpack-objects failed When try execute git pull from cygwin it works, but from IntelliJ fails with…
gandra404
  • 5,727
  • 10
  • 52
  • 76
3
votes
0 answers

Error importing DLL using python.ctypes on Cygwin

I am using Cygwin (2.2.1) on wind7 to run a python script that loads a dll and I tried using cdll form ctypes. However I get OSError: Exec format error when I run the script, and I do not know how to deal with it. I also tried giving the path to the…
Castiel
  • 547
  • 1
  • 4
  • 10
3
votes
1 answer

git showing all files chmod to 100644 from 100755

Today I tried to just install tmux on cygwin and afterwards all of a sudden I was getting changes on all of my files. They all changed permissions from 100755 to 100644 out of no where and I have no way of getting rid of them... I thought git…
Matt Hintzke
  • 7,744
  • 16
  • 55
  • 113
3
votes
1 answer

Deactivate readline autocompletion

I am trying to deactivate the readline autocompletion after I have used it. Therefore I want to write a decorator like this: #!python from contextlib import contextmanager import readline def main(): with readline_autocompletion(): …
Salo
  • 1,936
  • 15
  • 24