cygwin

Why git under cygwin asks for password?

纵饮孤独 提交于 2019-12-22 04:37:23
问题 I correctly pointed to key file in ssh config: $ cat ~/.ssh/config Host <host> IdentityFile /cygdrive/v/poma.pem $ ssh git@<host> PTY allocation request failed on channel 0 Welcome to GitLab, Roman! Connection to <host> closed. and using cygwin's git $ which git /usr/bin/git $ git --version git version 2.1.4 $ /cygdrive/c/Program\ Files\ \(x86\)/Git/bin/git.exe --version git version 1.9.5.msysgit.1 But when I try to push it displays a password prompt: $ git remote -v origin git@<host>:poma

why is cygwin so slow

丶灬走出姿态 提交于 2019-12-22 04:31:58
问题 I run a script on Ubuntu, and tested its time: $ time ./merger ./merger 0.02s user 0.03s system 99% cpu 0.050 total it spent less than 1 second. but if I used cygwin: $ time ./merger real 3m22.407s user 0m0.367s sys 0m0.354s It spent more than 3 minutes. Why did this happen? What shall I do to increase the executing speed on cygwin? 回答1: As others have already mentioned, Cygwin's implementation of fork and process spawning on Windows in general are slow. Using this fork() benchmark, I get

git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

╄→гoц情女王★ 提交于 2019-12-22 03:58:08
问题 I am working on project using git as a VCS. Development env is on winddows and project contains some long paths so I am forced to use cygwin with git. I have installed cygwin with git, created ssh key, uploaded key to server and that all works fine from console. But when I try to fetch, push, pull from IntelliJ I am receiving following error: D:/cygwin/usr/libexec/git-core/git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory fatal: unpack

OpenCV Windows setup with CLion

岁酱吖の 提交于 2019-12-21 20:51:16
问题 I want to setup OpenCV on windows for the CLion IDE. I tried with OpenCV 3.1 and 2.4 with the same result. I have Windows 10 64 bits. CLion is using the cygwin environement. What I did so far: 1. Downloaded the exe from OpenCV and runned it (it extracted a package). My path is E:/opencv 2. Added OpenCV_DIR variable and added it to path 3. Added this to my project CMakeLists.txt: set(OpenCV_LIB_PATH E:/opencv/build/x64/vc12/lib) set(OpenCV_LIB_DIR E:/opencv/build/x64/vc12/lib) set(OpenCV_LIBS

HTTPS request results in reset connection in Windows with Python 3

谁都会走 提交于 2019-12-21 20:06:56
问题 When I use the following function with the Python 3.2.3 package in cygwin it hangs on any request to any https host. It will throw with this error: [Errno 104] Connection reset by peer, after 60 seconds. UPDATE: I thought it was limited to only cygwin, but this also happens in Windows 7 64bit with Python 3.3. I'll try 3.2 right now. The error when using the windows command shell is: urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host UPDATE2(Electric

KDiff3 under cygwin git will not invoke

…衆ロ難τιáo~ 提交于 2019-12-21 19:51:29
问题 In keeping with a number of solutions posted on the internet I have installed KDiff3 and modified .gitconfig as below to make use of it. Nonetheless, when I run git diff HEAD^ HEAD within a repository to test it I get a diff performed by the default tool. I'm running cygwin git on Windows7-64. Can anyone explain why KDiff3 is not invoked? [diff] tool = kdiff3 [merge] tool = kdiff3 [difftool "kdiff3"] path = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\" keepBackup = false trustExitCode = false

Running command in background using cygwin from Windows cmd

為{幸葍}努か 提交于 2019-12-21 17:57:09
问题 I use cygwin from my Windows command line, I've always done everything quite happily except being able to run something in the background (i.e. putting & at the end of a command). Just to give you more context, I want to be able to start a Mercurial web server and still be able to keep using the command line window and even closing it without killing the server. For example: >hg serve & listening at http://localhost:8000/ (bound to *:8000) >echo "Still able to do this" Any workarounds to this

OpenCV 2.3 doesn't compile, undefined reference error

为君一笑 提交于 2019-12-21 17:56:49
问题 I'm using OpenCV in Windows 7 64bits and Netbeans 7.0. I tried to compile the next code using MinGW and cygwin but both fails with undefined references. When I use MAT or FLANN and others I can't compile, but I'm adding all libraries (I tried only adding Debug ones, Release ones, only needed ones... but fails). The same code in ubuntu works, but I need to compile it in windows too. I'm using the 2.3 compiled version (using CMake) and the installable one. #include "opencv2\opencv.hpp" #include

installing uwsgi on cygwin

≯℡__Kan透↙ 提交于 2019-12-21 17:51:27
问题 Have anyone managed to install uwsgi on cygwin (python 2.7) ? { uwsgi-2.0.11.2 } » python setup.py install running install using profile: buildconf/default.ini detected include path: ['/usr/lib/gcc/i686-pc-cygwin/4.9.2/include', '/usr/lib/gcc/i686-pc-cygwin/4.9.2/include-fixed', '/usr/include', '/usr/lib/gcc/i686-pc-cygwin/4.9.2/../../../../include/w32api'] Patching "bin_name" to properly install_scripts dir detected CPU cores: 1 configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D

C++ on Windows - the console window just flashes and disappears. What's going on? [duplicate]

孤街醉人 提交于 2019-12-21 17:22:12
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: Visual Studio Console App - Prevent window from closing. I'm starting to learn C++ on Windows and I'm trying a few different development environments: 1. Netbeans with Cygwin compiler 2. MS Visual Studio 2010 For either of them, when I write a very simple Hello World program, I build it and it's fine. But when I try to run the program, the command prompt window pops up really quick and then disappears right away