cygwin

git tries to stat //HEAD when searching for a repo, leading to huge delays on Cygwin

北城以北 提交于 2019-12-23 04:12:25
问题 I have a fancy shell prompt that executes git rev-parse --is-inside-work-tree to determine whether we're currently inside a working directory. This causes git to walk up the directory hierarchy looking for a containing git repo. For example, when invoked from my home directory, it stats the following paths, in order: /home/me/.git /home/me/.git/HEAD /home/me/HEAD /home /home/.git /home/.git/HEAD /home/HEAD / /.git /.git/HEAD //HEAD The last name ( //HEAD ) interacts badly with Cygwin, which

fflush(stdin) does not work compiled with gcc in cygwin but does compiled with visual studio 2010

蹲街弑〆低调 提交于 2019-12-23 03:39:07
问题 I am (re-)learning programming and I started with C. My IDE (if I may say so) is cygwin (32Bit) and Visual-Studio 2010 both on Windows7. I am always compiling the code I write with gcc (cygwin) as well as with the VS2010 compiler. I do so, I guess, because I think it is a good way of learning. Anyway I just learned about fflush(stdin), i.e. flushing the stdin buffer. Seems a good functionality because else, using scanf appears to be a pain. So I wrote the code below based on an example from

Starting WildFly 8.2 under a user with limited permissions

走远了吗. 提交于 2019-12-23 03:07:52
问题 I'm trying to start WildFly 8.2 under a user that doesn't have permissions to write in a WildFly home directory and it's subdirectories. For this purpose I've copied standalone directory to a user home directory. Here is a command I use to start WildFly in cygwin: $ /cygdrive/c/Program\ Files/wildfly-8.2.0.Final/bin/standalone.sh -Djboss.server.base.dir='C:\Users\above_mentioned_user\standalone' -c standalone.xml And here is an output of this command: cygpath: can't convert empty path =======

running hadoop on Windows-7 64 bit

自古美人都是妖i 提交于 2019-12-23 02:52:14
问题 I am running hadoop on windows-7 64 bit and getting this error: Exception in thread "main" java.io.IOException: Cannot run program "chmod": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) at org.apache.hadoop.util.Shell.runCommand(Shell.java:149) at org.apache.hadoop.util.Shell.run(Shell.java:134) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286) at org.apache.hadoop.util.Shell.execCommand

Convert char to lowercase in batch

£可爱£侵袭症+ 提交于 2019-12-23 01:37:26
问题 I am having trouble trying to convert a windows path into the cygwin-style linux like path. C:\path\to\file will be /cygdrive/c/path/to/file for instance. I have everything working except for converting the uppercase drive letter pulled out of the path to lowercase. The link everyone gives for these questions is: http://www.robvanderwoude.com/battech_convertcase.php and the for loop under "SET, Take Two" seemed the most appropriate. This is what I have so far: @ECHO OFF SETLOCAL

windows10编译OpenJDK8

允我心安 提交于 2019-12-22 23:29:58
Windows10编译OpenJDK8 前言 本文基于win10(64位)编译openjdk8,碰到各种问题被卡住,最终还好编译完成,总结如下,希望对你有帮助 1. 环境准备 Windows 10 oracleJDK8 官方下载地址: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 选择windows x64下载 需要登录,可以查看这篇: https://blog.csdn.net/Virgil_K2017/article/details/90260880 Openjdk8源码 一篇我的博客有下载链接: https://blog.csdn.net/qq_23091073/article/details/83178848 官方下载链接: http://hg.openjdk.java.net 如何从官方下载: https://www.cnblogs.com/haimishasha/p/9909055.html Cygwin 官方下载链接: http://www.cygwin.com/setup-x86_64.exe 安装帮助博客: https://blog.csdn.net/u010356768/article/details/90756742 推荐一个工具apt

installing gfortran in cygwin: gfortran: cyglto_plugin.dll not found

狂风中的少年 提交于 2019-12-22 14:47:31
问题 I'm trying to get the gfortran compiler with cygwin. When attempting to compile a hello world program, I get the following error: gfortran: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found compilation terminated. To install the compiler, I used the cygwin setup and selected gcc-fortran: GNU compiler collection libgfortran3: GCC fortran runtime library I also mistakenly selected the toolchains for mingw, even though I don't have the mingw compiler (as far as I'm aware). g++,

Error when installing crosstool-ng on cygwin (_libintl_gettext)

為{幸葍}努か 提交于 2019-12-22 13:01:04
问题 I have a problem with installing crosstool-ng on cygwin. I have downloaded last package here to root cygwin folder, then: ./configure ALL OK make - error! Complete error log: $ make SED 'ct-ng' SED 'scripts/crosstool-NG.sh' SED 'scripts/saveSample.sh' SED 'scripts/showTuple.sh' GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' LD 'conf' zconf.tab.o:zconf.tab.c:(.text+0x1799): undefined reference to `_libintl_gettext' zconf.tab.o:zconf.tab.c:(.text+0x48f8): undefined reference to `

Nodejs process.stdin.resume() doesn't work in Cygwin

喜你入骨 提交于 2019-12-22 12:52:19
问题 Trying to make a CLI type program - waiting for user input. In Cygwin, the script just exits. Just this in the script process.stdin.resume() Seems to work on a Linux VM. Works on Windows Command line also. Im assuming 'terminal' stuff regarding Cygwin.. 回答1: The symptom is that Cygwin process.stdin.on('data', cb); and process.stdin.on('end', cb); doesn't get called. I found a workaround for it Versions > ver Microsoft Windows [Version 6.1.7601] $ uname -a CYGWIN_NT-6.1 localhost 1.7.28(0.271

Python's subprocess does not interpret “~” as expected on cygwin

五迷三道 提交于 2019-12-22 10:41:19
问题 Section 17.1.1.1. of the documentation states: If shell is True, the specified command will be executed through the shell. This can be useful if you are using Python primarily for the enhanced control flow it offers over most system shells and still want convenient access to other shell features such as shell pipes, filename wildcards, environment variable expansion, and expansion of ~ to a user’s home directory. However, on cygwin , output from bash isn't the same as from Python's subprocess