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

Nested sort in bash

I'm trying to join one standard input with an unsorted file, let's say: awk '{print $1}' somefile | join /dev/stdin unsortedfile Is it possible to sort the file "at the moment" instead sorting it, saving it and subsequently using it in join? I was…
LinuxBlanket
  • 165
  • 1
  • 6
3
votes
1 answer

cannot compile anything with gcc on cygwin32; missing cygisl-10.dll

I have a problem wit compilation with gcc on 32-bit cygwin. The message is: C:/cygwin/lib/gcc/i686-pc-cygwin/4.9.3/cc1plus.exe: error while loading shared libraries: cygisl-10.dll: cannot open shared object file: No such file or directory And that…
ardabro
  • 1,907
  • 16
  • 31
3
votes
1 answer

Remove extra new line from cygwin command line

After opening the cygwin in windows we can see the current user and path in one line and the next command need to type in the next line. user@mycomputer /cygdrive/e/folder $ | Every time when I press the enter key it will go down by two line …
Nayana Adassuriya
  • 23,596
  • 30
  • 104
  • 147
3
votes
2 answers

Building sparkr with -Psparkr error

I am building spark using cygwin on a windows system. I can build fine when I do this and it works after git clone https://github.com/apache/spark dos2unix spark/build/mvn build/mvn -DskipTests clean package but when I try to use the -Psparkr…
user295944
  • 273
  • 4
  • 17
3
votes
1 answer

CMake Error: File /cygdrive/.../src/LLVMBuild.txt does not exist

I'm trying to build cling on Windows7 following the instructions here: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=[Install Path] ..\src cmake --build . --config [Release/Debug] --target cling I notice that the compiler cmake is using being…
zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
3
votes
2 answers

Scipy installation cygwin64 Windows10 fails at late stage

Installed cygwin64, including Python 2.7, on my new computer running Windows10. Python runs fine, adding modules like matplotlib or bitstream goes fine, but when trying to add scipy the build eventually, after about an hour, having successfully…
Pryderide
  • 153
  • 1
  • 10
3
votes
2 answers

ANTLR Warning: TestRig moved to org.antlr.v4.gui.TestRig

I have been trying to get ANTLR to work all day. I have used several websites including antlr.org, numerous StackOverflow queries and the textbook by Terence Parr. I am on a Windows 7 machine (work machine, can't change to Linux) but I have tried…
3
votes
1 answer

Bash screwing up execution order?

I'm generating some documentation using doxygen, which generates a lot of files in a folder. So as not to have to wait for the removal of the previous folder, I decided to move the folder in the current process, delete that moved folder in a…
Adrian
  • 10,246
  • 4
  • 44
  • 110
3
votes
1 answer

g++ compiler: compilation terminated

I have a very simple program: // hello.cpp #include using namespace std; int main() { cout << "Hello, world!" << endl; return 0; } When I used Command Prompt (Windows) and type: g++ -o hello hello.cpp I got this error: In file…
pexea12
  • 1,069
  • 2
  • 18
  • 36
3
votes
2 answers

Installing gfortran in Cygwin

I am trying to compile a modelling program in Cygwin using either a gfortran or g95 compiler. I have installed both compilers, but when I go to configure the program, it checks for the compilers and does not find then (error: Fortran compiler cannot…
3
votes
1 answer

SDL window isn't showing on Cygwin

I am trying to run an SDL application with very basic code on Cygwin, but I have the following error after calling SDL_Init: No available video device I have X11 packages installed, but that isn't solving the issue
Mansuro
  • 4,558
  • 4
  • 36
  • 76
3
votes
1 answer

Python GUI toolkit inside Cygwin without X?

Which Python GUI toolkit works inside Cygwin without X? I installed both Tkinter and PyQt and they both require an X server. I would like to avoid running X but I do want to write a GUI around some Python code that's running in a Cygwin environment.
the
  • 21,007
  • 11
  • 68
  • 101
3
votes
2 answers

Compile GTK+ with Cygwin

I have created an application in linux with GTK2 as GUI. It uses some linux-specific headers (e.g. arpa/inet.h) so to run under Windows I have to compile it with Cygwin. I downloaded the latest installer and choose to install GTK2 and its…
user197967
3
votes
1 answer

Using old version of Cygwin

I am trying to use the old version of 32 bit cygwin (1.7.22 - 1.7.32) which uses GCC 4.7.3 version. Just found one (cygwin 1.7.25) but during the standard installation (running with setup-x86.exe) it shows the following errors: The current ini file…
Arsen
  • 654
  • 8
  • 20
3
votes
0 answers

Unable to export environment variables in cygwin within a shell script

I created a setenvj1.6 shell script in my /usr/local/bin directory, in cygwin (Windows 7). setenvj1.6: export PATH=/cygdrive/c/bea/bea10/bea10g3/jdk160_05/bin:$PATH export JAVA_HOME=/cygdrive/c/bea/bea10/bea10g3/jdk160_05 echo Set for Java 1.6 when…
byronaltice
  • 623
  • 6
  • 18