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
57
votes
5 answers

pygobject-2.28.6 won't configure: No package 'gobject-introspection-1.0' found, how do I resolve?

I'm trying to get pygobject-2.28.6 to compile in cygwin (version in repository is 2.28.4 which has some issues). Here is the tail of ./configure: checking for GLIB - version >= 2.24.0... yes (version 2.34.3) checking for ffi... checking for FFI...…
Stupac
  • 631
  • 1
  • 6
  • 6
57
votes
3 answers

How to use GCC with Microsoft Visual Studio?

I am creating a very large project (a few thousand lines) and so would rather not use Notepad++. An IDE would make it so much easier. I have experience with Microsoft Visual Studio and love it. Is there some easy way to use Cygwin's GCC from within…
MasterGberry
  • 2,800
  • 6
  • 37
  • 56
56
votes
5 answers

Enable native NTFS symbolic links for Cygwin

Recent NTFS and Windows implement symlinks: NTFS junction point can be used as directory symlink since NTFS 3.0 (Windows 2000) using linkd or junction tools. NTFS symbolic link can also be used as symlink (for both file and directory) since Windows…
oHo
  • 51,447
  • 27
  • 165
  • 200
54
votes
2 answers

Installing new versions of Python on Cygwin does not install Pip?

While I am aware of the option of installing Pip from source, I'm trying to avoid going down that path so that updates to Pip will be managed by Cygwin's package management. I've recently learned that the latest versions of Python include Pip. …
redyoshi49q
  • 679
  • 1
  • 5
  • 7
54
votes
5 answers

How do I use cygwin behind the corporate firewall

I'm in a Microsoft IE environment, but I want to use cygwin for a number of quick scripting tasks. How would I configure it to use my windows proxy information? Ruby gems, ping, etc are all trying to make direct connections. How can I get them to…
MattK
  • 1,521
  • 1
  • 12
  • 25
53
votes
21 answers

Best terminal environment for Cygwin/Windows?

Today I run Cygwin with rxvt using the following startup line: rxvt -bg black -sl 8192 -fg white -sr -g 150x56 -fn "Fixedsys" -e /usr/bin/bash --login -i This gives me a resizeable native Windows window which is much better than the standard "DOS…
Anders Sandvig
  • 20,720
  • 16
  • 59
  • 73
53
votes
7 answers

How to resolve configure guessing build type failure?

When I configure (under cygwin environment), an error occurred, Message are following: $ ./configure ................. checking build system type... /bin/sh: ./config.guess: No such file or directory configure: error: cannot guess build type; you…
sean
  • 1,252
  • 3
  • 14
  • 29
53
votes
2 answers

How would I find the cygwin version which has been installed on my machine

Cygwin - How would I find the Cygwin's version which has been installed on my machine? (Windows Vista)
user339108
  • 12,613
  • 33
  • 81
  • 112
53
votes
8 answers

installing cygwin: setup.ini missing from http://mirrors.kernel.org

I'm trying to install cygwin on a windows 2008 server. I managed to get a hold of the cygwin setup.exe version 2.721. Since cygwin.com is down at the moment, i tried several mirrors found through the google cache of the cygwin mirrors. I ran into…
mles
  • 4,534
  • 10
  • 54
  • 94
52
votes
4 answers

How to use regex OR in grep in Cygwin?

I need to return results for two different matches from a single file. grep "string1" my.file correctly returns the single instance of string1 in my.file grep "string2" my.file correctly returns the single instance of string2 in my.file but grep…
rob
  • 8,134
  • 8
  • 58
  • 68
52
votes
3 answers

The program can't start because cygwin1.dll is missing... in Eclipse CDT

I've had Eclipse for Java on my computer for a few years, and decided to install the CDT and learn C. I installed both MinGW and Cygwin and the CDT detects and tries to use them when I make a new project. I choose File > New C++ Project and choose…
Shawn Walton
  • 1,714
  • 2
  • 14
  • 23
52
votes
5 answers

Prevent duplicates from being saved in bash history

I'm trying to prevent bash from saving duplicate commands to my history. Here's what I've got: shopt -s histappend export HISTIGNORE='&:ls:cd ~:cd ..:[bf]g:exit:h:history' export HISTCONTROL=erasedups export PROMPT_COMMAND='history -a' This works…
JPLemme
  • 4,374
  • 6
  • 31
  • 35
52
votes
7 answers

Compilation error: "stddef.h: No such file or directory"

Whenever I try to compile this code it always ends up with this error: In file included from /usr/include/wchar.h:6:0, from /usr/lib/gcc/i686-pc-cygwin/4.9.2/include/c++/cwchar:44, from…
Louie
  • 673
  • 1
  • 7
  • 11
51
votes
9 answers

How do I execute a file in Cygwin?

How can I execute a.exe using the Cygwin shell? I created a C file in Eclipse on Windows and then used Cygwin to navigate to the directory. I called gcc on the C source file and a.exe was produced. I would like to run a.exe.
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
51
votes
3 answers

How do I download SCP and ssh on Cygwin?

I have downloaded Cygwin on windows 8 and use it for python scripts. How do I get SCP and ssh on Cygwin without having to use WinSCP and Putty?
Asher
  • 811
  • 3
  • 10
  • 19