cygwin

Help needed installing cygwin: may be ini file problem

筅森魡賤 提交于 2019-12-19 18:15:10
问题 I'm trying to install cygwin on my Windows 7 machine. I get the setup by starting the install on http://www.cygwin.com/. I choose "Install from Internet" (which links to http://www.cygwin.com/setup.exe), then select successively in the Wizard: All users + Unix text files local package directory = C:\Cygwin direct connection download site = mirror.cs.vt.edu (I tried a few others and ran into similar problems; if there is one in particular someone highly recommends, I will gladly try it). I get

简述-如何在Windows中编译Linux Unix的代码

南楼画角 提交于 2019-12-19 18:13:21
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 第一步:下载安装新版Cygwin软件。该软件的官方网站: http://cygwin.com/    Cygwin软件的作用是让Windows拥有Unix-like环境的软件。所以,GCC等编译器自然也就会包含在里面。不过,对于开发者,Cygwin是一个开发环境。而对于用户来说Cygwin是一个运行环境。    注意:要编译C++或者C程序的话,再安装时在选择组件这一步需要选中Devel 选项下的gcc-core,gcc-g++,make 以及Lib选项卡下的glib2,glib2-devel,glib2-runtime。 第二步:修改 cygwin.bat文件。   找到cygwin项目安装目录下的cygwin .bat文件,用记事本将其打开。修改成如下形式:    @echo off C: set CYGWIN=tty notitle glob set PATH=%PATH%;c:\cygwin\bin;c:\cygwin\sbin;c:\cygwin\usr\bin;c:\cygwin\usr\sbin;c:\cygwin\usr\local\bin set LD_LIBRARY_PATH=c:\cygwin\lib;d:\cygwin\usr\lib;c:\cygwin\usr\local\lib

使用bat来运行cygwin,执行脚本(命令)

隐身守侯 提交于 2019-12-19 17:49:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 这是一个没有意义的问题。 既然要跑脚本。为啥不直接在linux服务器上运行。 这个不是个人能决定的。 一般我都将功能写成jar,或者py, 然后编写bat文件, 如果是java的话,“java -jar XXX.jar” 如果是python,的话, “python XX.py”; 但是shell的话就略麻烦了。 查询了一下,下面的方法有用。 解决方案一: 在Cygwin目录中找到.bashrc或者.bash_profile文件, 添加你的命令到文件末尾。 这样做的话每次启动Cygwin都会执行你的命令。 解决方案二: @echo off C: chdir C:\cygwin\bin bash --login -i -c "your command" 来源: oschina 链接: https://my.oschina.net/u/867090/blog/150837

Run bash command in Cygwin from another application

不想你离开。 提交于 2019-12-19 09:24:25
问题 From a windows application written on C++ or python, how can I execute arbitrary shell commands? My installation of Cygwin is normally launched from the following bat file: @echo off C: chdir C:\cygwin\bin bash --login -i 回答1: From Python, run bash with os.system , os.popen or subprocess and pass the appropriate command-line arguments. os.system(r'C:\cygwin\bin\bash --login -c "some bash commands"') 回答2: The following function will run Cygwin's Bash program while making sure the bin directory

How to get date/time when file was placed in a directory on Windows?

徘徊边缘 提交于 2019-12-19 08:26:47
问题 Is there a way to tell when a file was moved to a certain directory? I'm being asked why a script of mine did not find a file in a certain directory. The file was created last January but I suspect it was placed in the directory after the script was run. Is there a way for me to confirm my suspicion? Viewing the file properties gives me the created, modified, and accessed times, and the first two do not change when moving files from one directory to another. EDIT: I have cygwin installed, if

Starting Hbase : cygpath: can't convert empty path

守給你的承諾、 提交于 2019-12-19 07:35:00
问题 I hope somebody can help me with this problemoo: Starting hbase, I get this error: $ ./start-hbase.sh cygpath: can't convert empty path cygpath: can't convert empty path soporte@localhost's password: localhost: starting zookeeper, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-zookeeper-CNEOSYLAP.out localhost: cygpath: can't convert empty path starting master, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-master-CNEOSYLAP.out cygpath: can't convert empty path

Makefile on Cygwin

拈花ヽ惹草 提交于 2019-12-19 07:34:51
问题 I'm trying to use makefile on Windows 7 x64 with Cygwin. I type "make" and the error that i get is: make: * No targets specified and no makefile found. Stop. Makefile: CC = g++ CFLAGS = -g -Wall -pedantic HDRS = node.h stack.h SRCS = stack.cpp main.cpp OBJS = $(patsubst %.cpp, %.o, $(SRCS)) proj3:$(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) %.o: %.cpp $(HDRS) $(CC) $(CFLAGS) -c $< .PHONY:clean clean: -rm -f *.o *~ *core* proj3 None of the files are missing. 回答1: Question SOLVED: i had makefile in my

Starting Hbase : cygpath: can't convert empty path

青春壹個敷衍的年華 提交于 2019-12-19 07:34:29
问题 I hope somebody can help me with this problemoo: Starting hbase, I get this error: $ ./start-hbase.sh cygpath: can't convert empty path cygpath: can't convert empty path soporte@localhost's password: localhost: starting zookeeper, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-zookeeper-CNEOSYLAP.out localhost: cygpath: can't convert empty path starting master, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-master-CNEOSYLAP.out cygpath: can't convert empty path

BC command not working in CYGWIN

蹲街弑〆低调 提交于 2019-12-19 07:29:02
问题 I have downloaded CygWin(32-bit) and installed (on Windows 7 32 bit System ) today to run shell script but i found one problem that bc command isn't working. I am getting error -bash: bc: command not found . So please help me out! 回答1: You need to select the bc package for installation from the "Select Packages" window. By default setup installs only base category that is ~ 50 packages, while the full availability is ~ 4000. https://cygwin.com/packages/x86/bc/bc-1.06.95-2 回答2: On Windows

Installing/compiling in Cygwin/MinGW - How to set the include “path”? (symbolic link?)

ぐ巨炮叔叔 提交于 2019-12-19 07:09:06
问题 I have been trying to install/compile C libraries in Windows 7 using Cygwin and MinGW. However, I am getting errors like these during make : sys/resource.h: No such file or directory sys/times.h: No such file or directory I previously thought it might be a problem with the specific libraries and asked here: Various issues installing igraph in Visual Studio 2010 and Cygwin/MinGW ("sys/time.h not found"), but after encountering the same error with different libraries, I think the problem lies