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
2 answers

ediff doesn't work in emacs on windows

Running GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN on windows 10. Have been trying to get ediff to work without any success. I've been using it for many years at my old work without any problems with a similar but not identical…
Tombe
  • 41
  • 1
  • 3
3
votes
2 answers

How to use BeyondCompare from git mergetool in cygwin?

How to use BeyondCompare from "git mergetool" in cygwin?
Vincent Scheib
  • 17,142
  • 9
  • 61
  • 77
3
votes
2 answers

Shell Script to find JPG and MOV files

Background iPhone has live photo's, i thought i could use VLC on Windows or some iPhone app to take a still of the desired frame. Long story short, you can but the quality of the image as well as the resolution is drastically lowered. So i gave up…
codeCompiler77
  • 508
  • 7
  • 22
3
votes
1 answer

Babun or Cygwin with Meteor

Opening a normal cmd prompt on Windows and typing: meteor Will work correctly. But won't work in Cygwin (or Babun): zsh: command not found: meteor How to make it work ?
Yves Lange
  • 3,914
  • 3
  • 21
  • 33
3
votes
2 answers

Cygwin: why we required "export SHELLOPTS; set -o igncr"

When I tried running my shell script earlier it said end of file error. But after running the following two commands it started running fine. export SHELLOPTS set -o igncr please explain what is the reason behind this.
3
votes
2 answers

Apache Spark with Hadoop distribution failing to run on Windows

I tried running spark-1.5.1-bin-hadoop2.6 distribution (and newer versions of Spark with same results) on Windows using Cygwin. When trying to execute spark-shell script in the bin folder, I get below output: Error: Could not find or load main class…
L.S.
  • 31
  • 3
3
votes
1 answer

How can I get Haskell readline installing under Cygwin?

Here's the message I get when trying to install in via cabal-install: $ cabal install --extra-include-dirs="C:\no_spaces\cygwin\usr\include" --extra-lib-dirs="C:\no_spaces\cygwin\lib" readline Resolving dependencies... Configuring…
Keith
  • 65
  • 2
3
votes
2 answers

File permissions in cygwin and MVFS

I am using Cygwin with a dll version of 1.5.19 (yes, out-of-date, I know, but we're doing it for configuration control reasons). All my files (existing and newly created) show up with permissions 644, despite a umask of 022. Also, using chmod…
mbyrne215
  • 2,304
  • 4
  • 21
  • 16
3
votes
2 answers

gcc 4.5.1 configure options for C++0x thread support

I am trying to compile gcc 4.5.1 for cygwin with support for C++0x threads. However, the resulting gcc does not recognize the -pthread option. My configure command is: ./configure --enable-bootstrap --enable-shared --enable-shared-libgcc …
Salil
  • 9,534
  • 9
  • 42
  • 56
3
votes
0 answers

error: 'log1p' is not a member of 'std'

I create a simple main function and above it, I include armadillo library. #include I compiled it using g++ (version of GCC is 5.3) and under cygwin 64bit on windowse 8. I turned on c++11 option and added -larmadillo for linking to…
saliva
  • 31
  • 1
3
votes
2 answers

git error : ssh: Could not resolve hostname?

ssh: Could not resolve hostname C: hostname nor servname provided, or not known fatal: The remote end hung up unexpectedly ? ive set up a git repo useing --bare ( i even dont know what it mean ) im following the Using Git and Dropbox together…
Adam Ramadhan
  • 22,712
  • 28
  • 84
  • 124
3
votes
0 answers

compiling YCM for vim under cygwin windows with visual studio and cmake

So, I'm trying to compile YouCompleteMe plugin for vim in windows using visual studio as documented. The current cmake that ships with cygwin doesn't have a generator for visual studio so I installed the official cmake through an installer and…
SimbaClaws
  • 1,389
  • 2
  • 9
  • 13
3
votes
1 answer

Run git from windows via cygwin

I'm using Cygwin and have configured my git settings there(ssh keys, usernames, etc). How can i make cywin's git callable from windows shell so it uses cygwin's bash and it's settings? Kinda like git-for-windows does, i can call git from cmd.exe but…
Kristian
  • 3,283
  • 3
  • 28
  • 52
3
votes
2 answers

Grepping a 1M row file with 320K patterns stored in another file

I tried to grep a 1M row '|' separated file with 320K patterns from another file with piping to Ole Tange's parallel package and piping the matched results into another file. I am using Cygwin on Windows 7 with 24 cores and 16GB physical memory. The…
andrnev
  • 410
  • 2
  • 12
3
votes
1 answer

How to test for administrator privileges in an msysgit/Cygwin script?

How do you test if you have administrator privileges in a script for msysgit/Cygwin? On my machine, opening Git Bash as admin and running whoami still outputs James, not root. I guess you could probably do something like if touch /C/file.txt && rm…
James Ko
  • 32,215
  • 30
  • 128
  • 239