I’ve noticed if you want to provide documentation on how to take certain steps in installing and developing on a software development stack, there are radically different steps depending on the coder’s operating system. Say, for example, you wanted to describe how to do something in PHP, you would have one user running WAMP on Windows, and another using Homebrew on Mac. Is the best way to make a universal environment Cygwin? I suppose the other option is to make use of a linux virtual machine, but depending on system performance, that could be a resource hog. Thanks for any input.
Can we calculate the (real, user and sys) time for the C program in Windows using Cygwin and Powershell, like we do in Linux using time command utility ?
I use cygwin with mintty on my windows 10 computer. I have git installed via cygwin. This is the error I get:
$ cordova plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git You have been opted out of telemetry. To change this, run: cordova telemetry on. Failed to fetch plugin https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: npm: Command failed with exit code 1 Error output: npm ERR! code 1 npm ERR! Command failed: C:\cygwin64\bin\git.EXE clone --mirror -q https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git --config core.longpaths=true npm ERR! /cygdrive/c/Users/egune/AppData/Roaming/npm-cache/_cacache/tmp/git-clone-51f64ba3/C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git: No such file or directory npm ERR!
Windows 10 Enterprise 1803
Ubuntu 18 (WSL app)
I’ve installed the appropriate Xorg stuff in both Cygwin and WSL – and it works fine for the local machines.
I.e. In either
WSL Ubuntu or
Cygwin I can…
- Start an instance of VcXsrv using
XLaunchannd accepting all the defaults.
- Export my display
- Start either a
WSL Ubuntu 18terminal
export DISPLAY=":0" xclock
…and the GUI xclock app comes up no issues no issues.
However, it does NOT work if I
ssh -X to another system. I.e.
ssh -X 126.96.36.199 # Remote computer export DISPLAY="188.8.131.52:0" xclock
Notice that I DON’T get an error (such as
Cannot open display.
xclock THINKS it’s running just fine, and the display data is going somewhere just fine …BUT the xclock GUI appears noweher on my system.
Am I missing something? Do I need to set X-forwarding somewhere?
xhost + has no effect.
I installed cygwins X Server to be able to X forward on Windows 10 as explained here. Now the installation completed and it finished without problems, but when I try to start the XWin Server as explained on the offical site a window opens shortly but immediately closes again. I tried to use the command
C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin" instead of using the shortcut but the same thing happens. A window opens briefly but no output in the console. What am I missing? I also tried to launch it with the XLaunch library but that also didn’t work.