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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Convert GSM 7bit packed to text using Cygwin

Using cygwin, I need to convert GSM 7bit to text. For example F832 --> xe
Aly79's user avatar
  • 3
0 votes
1 answer
22 views

Default nano permissions in Cygwin?

I'm very new to learning bash, so I installed Cygwin so I don't have to go too in-depth with it to start. I also installed nano, but when I write anything through nano, it always saves with rw-r--r-- ...
Jenna's user avatar
  • 1
-1 votes
0 answers
15 views

how to make my project executable in cygwin, I'm confused [closed]

I don't know how to make my project executable in cygwin I can't create my project executable
Ali Raza's user avatar
0 votes
1 answer
41 views

Trying to static link a cygwin compiled program using either gcc or mingc with issues

I have a sizable program, multiple Mb, that compiles and runs fine using gcc and cygwin1.dll, but I cannot figure out how to statically compile it so that I can distribute it without cygwin1.dll, ...
Randall Becker's user avatar
-3 votes
1 answer
119 views

Cygwin system("pause"); and system("cls"); error

This is my C++ code: #include <iostream> #include <cstdlib> using namespace std; int main() { cout << "Hello, world!" << endl; system("pause"); ...
Pavlo's user avatar
  • 3
0 votes
0 answers
31 views

Making Windows paths work in RSync through Cygwin, when getting paths from Python script

I am trying to make a Python GUI app that interfaces with RSync through Cygwin. I have gotten the subprocess done but RSync errors out due to the paths not being Unix compatible. I know that paths ...
noExplorer's user avatar
0 votes
0 answers
65 views

rtld-Rules:40: *** This makefile is a subroutine of elf/Makefile not to be used directly. when building glibc

I'm trying to build glibc on cygwin but I keep on getting this error [ALL ] rtld-Rules:40: *** This makefile is a subroutine of elf/Makefile not to be used directly. Stop. [ALL ] make[4]: ...
7dog123's user avatar
0 votes
0 answers
24 views

fatal error: sys/times.h: no such file or directory When I'm trying to compile C code it gives me an error [duplicate]

I'm trying to compile c code which I uploaded from github. I have installed mingw, also tried to install cygwin compiler but I have such kind of error fatal error: sys/times.h: no such file or ...
Keti Dzebniauri's user avatar
0 votes
0 answers
26 views

Extract the top n lines from a .zip file that is password protected

We have multiple large .zip files (500 GB+ compressed, 5 TB+ uncompressed). Each .zip file contains one compressed file, that compressed file is password protected. We would like to use either a UNIX (...
Matthew Walk's user avatar
  • 1,024
0 votes
1 answer
78 views

Windows: Determine OS version in C from Cygwin

I've got some code that's running in the Cygwin environment, which makes Windows look like Unix. I want to get the OS version but the Posix function call uname doesn't exist. Is there another way to ...
s_question's user avatar
1 vote
1 answer
45 views

ConvertStringSidToSidA("S-1-22-1-1", &sid) fails with invalid sid for Unix_User+1

I tried a simple three line hello world program, which tries to get the SID for Unix_User+1: bash -c 'getent passwd "Unix_User+1"' Unix_User+1:*:4278190081:4278190081:U-Unix_User\1,S-1-22-1-...
Cedric Blancher's user avatar
0 votes
0 answers
50 views

How to recognize Dual-Shock 4 controller with libhidapi0 library?

I'm currently trying to complete a school lab from home with cygwin (can't use WSL due to Cygwin dependencies) and I keep getting the following error after running " ./ds4rd.exe -d 054C:09CC -D ...
Adan's user avatar
  • 16
0 votes
0 answers
32 views

Selenium unable to find chromedriver in cygwin

I have a simple setup with Selenium in Cygwin [main] $ pip show selenium Name: selenium Version: 4.13.0 Summary: Home-page: https://www.selenium.dev Author: Author-email: License: Apache 2.0 Location: ...
Ben J's user avatar
  • 2,292
0 votes
0 answers
23 views

Python C Extension Module loading issue on Cygwin

We have a real-time messaging Python module available on various platforms, including Linux, macOS, Windows, and Raspberry Pi. It is written in C/C++ and has been working correctly on these platforms. ...
mesibo's user avatar
  • 4,020
1 vote
1 answer
26 views

Build grafana from source Win-32bit (Searching for -lmingwex and -lmingw32)

I have successfully built grafana from source for Windows 64-bit (GOARCH=amd64) and now i am trying to build it for windows 32-bit (GOARCH=386). Unfortunately i get the following error via Cygwin ...
asimkon's user avatar
  • 943
1 vote
0 answers
28 views

How to close stdin from expect script

The problem is how to feed cat command from expect script and notify it about EOF. The script: #!/usr/bin/expect spawn bash -c "echo READY; foo=\$(cat); echo DONE" expect "READY\r\n&...
Alexey Semenyuk's user avatar
0 votes
0 answers
63 views

Visual Studio Code C/C++ Compile Run extension compiling error

I can't compile my code using the "C/C++ Compile Run" extension I press F6 and then i get the following Error: "...cygwin64/lib/gcc/x86_64-pc-cygwin11/cc1plus.exe:error while loading ...
Ziad Farag's user avatar
1 vote
0 answers
65 views

Grafana build from source error (undefined: server.Initialize + undefined: server.InitializeForCLI)

I am trying to build grafana from source with golang version 1.20.1 in Windows 10. Unfortunately i get the following error via Cygwin: $ go run build.go build Version: 10.1.0, Linux Version: 10.1.0, ...
asimkon's user avatar
  • 943
0 votes
0 answers
79 views

C++ 20 in clang compiler

I want to use clang compiler in my Windows 10 OS so i downloaded the Cygwin and installed it. Generally compilation works but when i set flag -std=c++20 (or -std=c++2a) clang generates some errors: #...
Physicist's user avatar
0 votes
0 answers
32 views

(lib64_libmingwex_a-dirent.o):(.text+0x2bc): undefined reference to `__strcpy_chk'

I'm trying to build the cygwin toolchain for Linux but When compiling Binutils I got this error. /usr/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/...
7dog123's user avatar
0 votes
0 answers
53 views

error occurs when trying to build pintool with make

OS : windows 10 Intel Pin version : pin-3.28 msvc visual studio version : visual studio 2022 conmmunity cygwin 2.926, GNU make 4.4 i was try to use make for building mypintool.dll but make is ...
co123's user avatar
  • 1
0 votes
0 answers
63 views

Error: C compiler cannot create executables when configuring Concorde TSP solver for Windows/Cygwin

Trying to install Concorde TSP solver on Windows/Cygwin (ultimately for use in the R package TSP) and I'm running into errors when configuring the software. I've installed cygwin and followed the ...
mda2894's user avatar
1 vote
0 answers
27 views

Cygwin MySQL installation asks for a root password. How can I get it?

I saw that in order to connect MYSQL database on cygwin, this statement must be e on itxecuted: mysql -u root -p -h 127.0.0.1 However, as far as I know, there's no root user on cygwin. How can I get ...
ForeignerJammes's user avatar
0 votes
1 answer
128 views

download RPM files in windows

Is there a simple way to download rpm files and all its dependencies in a windows machine? later on I will be transferring all the rpm files to a offline rhel 8 machine and install them there. I've ...
Noob's user avatar
  • 3
0 votes
0 answers
25 views

issues with Find File in xemacs

Xemacs (V 21.4.22) is my primary editor on my Windows 10/cygwin machine. Everything worked find for WXP, W7, ... up to W10. Now when I use File/Open, the Find File window started by xemacs occupies my ...
Ben Blackwell's user avatar
-2 votes
2 answers
119 views

How to use the ‘find’ command (from Cygwin) to print the list of values (file size, file name), no matter what chars occur in a directory/file name?

Given a path to some directory (i.e. path/to/directory), I want to obtain the output in the following format: 100|path/to/directory/a/file1.txt 200|path/to/directory/b/file2.txt 321|path/to/directory/...
lyrically wicked's user avatar
0 votes
0 answers
18 views

Unable to import module in jupyter notebook, but able to import it in the terminal interpreter

I installed yfinance library (from jupyter notebook) and then tried to import it in jupyter notebook. But it did not work. I also tried to uninstall it and install it from terminal. But it still did ...
MsA's user avatar
  • 2,663
0 votes
3 answers
66 views

grep -v (invert match) matching word and line following match. -A -B not working

I would like to format output of the loop of command which checks correction of DNS settings of two domains across 12 dns servers for i in {1..12} ; do nslookup hostname1.fqdn ns$i.provider.fqdn; ...
AdamG's user avatar
  • 51
0 votes
1 answer
68 views

Cygwin breaks net use Z: /delete in scripts?

Cygwin somehow breaks unmounting of network shares, but ONLY if the net use /delete happens in a bash shell script. Example: Mount SMB network share on Z: Do not touch Z:! Then do a net use /delete in ...
Martin Wege's user avatar
0 votes
0 answers
19 views

Cygwin printf double variable seems to waste memory

I try to run a simple program that print a double value in infinite loop. When monitoring I see that memory increase from few Mb to 1 Gb!? I run it under CYGWIN_NT-10.0-19045 DESKTOP-U1587BG 3.4.7-1....
natan's user avatar
  • 11
0 votes
0 answers
87 views

Python 2.7 on new cygwin versions (as of 2023)

How to install Python 2.7 on new cygwin versions (as of 2023)? Packages for python 2 seem not to be available. Only Python 3 is available.
wolfrevo's user avatar
  • 6,731
0 votes
0 answers
39 views

Having trouble passing in file path for Cygwin

Whenever I am trying to compile my project, it cannot find my header file #include "sw_src/include/generic.h". I'm trying to use -I to pass in the file so Cygwin can find it, but it keeps ...
anonymouslyAJ's user avatar
-1 votes
1 answer
45 views

How can I detect focus lost in mintty under Cygwin?

Does mintty under Cygwin in any way support the events of losing and gaining focus? I'm looking for the equivalent of WM_KILLFOCUS from Windows or autocmd FocusLost * call ... from gvim, but under ...
Irfy's user avatar
  • 9,363
1 vote
0 answers
141 views

bash: poetry: command not found when I try to install it with cygwin

I try to install spotdl on Windows but is very complicated, poetry package has always problem to install So I try to use cygwin to install it, but unsuccessfully 1. These are commands to install: git ...
Alex Doc's user avatar
  • 167
-1 votes
1 answer
51 views

'stdio.h' file not found

red arrow shows up upon hover :'stdio.h' file not found compiles without any errors I am pretty new to c (just started).I checked in cygwin directory the files do exist idk why this shows up tho. ...
Mohammed Atif's user avatar
0 votes
0 answers
19 views

PermissionError: [Errno 1] Operation not permitted in Cygwin terminal

I am trying to run a python script in Cygwin, however I am getting this error: $ python3 simulation.py probes/test1.xml Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/...
p4sh4bsc's user avatar
0 votes
0 answers
37 views

lsusb to /dev (webcam)

I plugin a webcam. I could see new device with command lsusb lsusb Bus 002 Device 023: ID eb1a:2571 Web Cam But I cannot see any new device in /dev I tested with different webcam and got same issue, ...
user3867146's user avatar
3 votes
1 answer
93 views

Perl - opening a file in binary with final character 0x1A/EOF/Ctrl-Z

I have inherited some old perl code with the following comment and code. I strongly suspect the comment is both outdated and only refered to operation under Windows anyway, but I'd like to be certain. ...
Mort's user avatar
  • 3,399
0 votes
2 answers
103 views

how to print remaining portion of each line after a pattern match using sed

I have the following text in my file. log-2023-06-30-082821.txt:2023-06-30 08:30:32.648 log-2023-06-30-082821.txt:2023-06-30 08:32:07.235 log-2023-06-30-083220.txt:2023-06-30 08:32:55.831 log-2023-06-...
Jawad Ali Qamar's user avatar
1 vote
0 answers
56 views

Influence of TZ env variable on python's date time modules in cygwin [duplicate]

The TZ env variable in cygwin contains local timezone info $ echo $TZ America/New_York The datetime module prints UTC if TZ is set $ /usr/local/anaconda3/python Python 3.10.9 | packaged by ...
user3477071's user avatar
0 votes
0 answers
34 views

cannot find -lzbar when trying to run "python.exe .\setup.py bdist_wheel" on zbarlight

I followed this: https://ruvi-d.medium.com/getting-zbarlight-to-work-on-windows-a3dc643dba18 I got an error - "I get "ValueError("Unknown MS Compiler version %s " % msc_ver)" ...
Rony Tesler's user avatar
  • 1,291
0 votes
1 answer
23 views

find listing pruned folder when searching using -newer argument

$ tree -D . ├── [Jun 25 18:46] dir1 │   └── [Jun 25 18:51] file1 └── [Jun 25 17:59] dir2 └── [Jun 25 18:46] file2 2 directories, 2 files $ ls -l /tmp/since -rw-r--r-- 1 xxx None 0 Jun 25 18:...
user3477071's user avatar
0 votes
3 answers
73 views

How to suppress "DLL not found" popup in cygwin?

I have written a bash script running in a Windows Cygwin environment that pulls our current sources from a GitLab server, compiles it, and runs the unit tests. Problem is: If something's wrong with ...
digory doo's user avatar
  • 2,017
0 votes
0 answers
10 views

TortoiseSVN Credentials

TortoiseSVN cannot access credentials from under cygwin-sshd, unless I'm also logged in via Remote Desktop. Environment: Win2019 Server with TortoiseSVN and Cygwin. svn server is on the corporate VPN, ...
Underhill's user avatar
  • 422
0 votes
1 answer
43 views

How to Debug Eclipse's "CMake Compilation DB" Provider

Above Provider is throwing following error: "A Problem has occured - Parsing compilation database of project ExampleProject" Is there a way to see get an exact error? Edit: Error log can be ...
kuch3n's user avatar
  • 441
1 vote
2 answers
88 views

Java package not found when compiling code

I am a JAVA Novice, and I am trying to run the NASA DAA-Displays project found here: daa-display/NASA on my local computer. However, when I trying to run one of the makefile, I am getting an error. ...
Hemil Mehul Shah's user avatar
0 votes
1 answer
418 views

How do I use/install ICU and make use of it in my C++ Visual Studio 2022 project?

I am quite new to C++ and have been trying to use the ICU library for the past few days. I have followed this guide on the ICU GitHub, to little avail. I found that I can #include <icu.h> ...
LeaG's user avatar
  • 23
0 votes
2 answers
99 views

Cannot install numpy in Cygwin even after installing python-devel

I have tried multiple times deleting my cygwin64 folder and reinstalling cygwin with python37 and python37-devel and trying to run pip3 install numpy==1.21.6 but I keep getting the message ...
ffffffyyyy's user avatar
0 votes
1 answer
84 views

Error during configuration: C compiler cannot create executables (Concorde TSP)

I'm currently experiencing an issue while trying to install and configure a software package (Concorde TSP solver) on my Windows machine using Cygwin. I've followed the installation instructions ...
ale.tenorio's user avatar
0 votes
1 answer
59 views

Error while installing WFDB packages : make[1]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib' make: *** [Makefile:307: install] Error 2

I need to use some applications like rdsamp inside WFDB to read signal files (.dat file records) inside WFDB database . I followed steps in https://archive.physionet.org/physiotools/wfdb-windows-quick-...
Raeesul Asad's user avatar

1
2 3 4 5
158