cygwin

"Bad Interpreter: No Medium" error when running Ruby from Git Bash

I'm seeing this error when I run: rake/gem from my Git Bash. Anyone know what it means? sh.exe": /c/Ruby/bin/gem: D:/Users/Luis/projects/oss/oci/installer2-trunk/ruby/bin/ruby.exe^M: bad interpreter: no medium Running under Windows/Cygwin - specifically in the Git Bash shell. ...

How to compile kscope on windows system?

kscope is a very nice gui tool on unix to analysis of sorce code i am using it for a while on my linux box. is there is any port of kscope on windows availbale? I know cygwin support kde env. but i am not able to compile kde on it. ...

Netcat anomaly in VMWare/Cygwin/Sockets environment

I'm happily running Ubuntu Linux in a VMWare box hosted on XP. My Linux application opens up your basic server socket port, to which I connect netcat (nc) as a client to listen in on the traffic I'm putting on that socket for the "real" clients. All's well. However, when I open up a Cygwin shell on the XP side and run nc from there it ...

how to use Linux lib such as timeval in windows

how to use Linux lib such as timeval in windows I have installed cygwin and dev c++ I don't like compliling in cygwin compliling under dev c++ always erro like `gettimeofday' undeclared (first use this function) unfortunately, I don't have enough harddisk space to install a linux or any vitual machine thanks a lot ...

Can grep (from command line) be set up to highlight the part of the line that matches?

I'm using grep from the command line via cygwin. I'm wondering if there's any way to get it to highlight the part of each line that matches the regex. The closest thing I'm seeing is the -o option, but that only outputs the matching area, and I'd like to see the entire line. ...

C++ Not Installed In Cygwin

I just installed Cygwin. And I can launch a bash shell from windows, do "ls", "emacs", "vi" , etc. However, when I do "g++" it says command not found. I thought g++ was installed by default in Cygwin? If that's not the case, what is the exactly categories under which I can add g++ as a package to my cygwin? Thanks! ...

Running XWindow programs in Cygwin

I installed all the necessary packages for running GUI programs in Cygwin. Right now, I have to do these things to launch an XWindow program: 1) /bin/startxwin.sh 2) It starts a separate window (the X Window?) 2) In that X Window, ssh -X user@server (this is the remote box where I want to run that box's programs) 3) Then in that X Wi...

issue commands to window/process started from batch file

Hello Internets :) I want to pass commands to a process started in a batch file, specifically Cygwin. For instance, if I start Cygwin with something like the following: start "window1" cmd.exe /c cygwin How might I execute 'ls' in "window1", in the same batch file from which I started Cygwin? ...

How to compile existing posix code for 64-bit Windows?

I'm ok with using Cygwin or MinGW, but I need to end up with 64-bit code, not 32-bit. This is because I will be calling the DLL from 64-bit managed C#. I can't seem to find and good references for setting up those tools to create 64-bit binaries. Also, it would be nice if the GCC was version 4, not version 3 as came with my Cygwin ins...

ANSI color support using Groovy on Windows XP

Trying out the examples found on pleac.sf.net, I'm not able to get an example of ANSI colors to work on my WinXP box (Works fine on MacOS). What I've found is that on my WinXP machine, in both cygwin & DOS prompts, groovysh --color (and 'groovysh --terminal=unix') shows escape codes rather than the expected colored prompt. grep --color w...

C++ Recursive File/Directory scanning using Cygwin

I'm looking to write a portable filesystem scanner, capable of listing all files on a given directory path recursively. To do this, I'm attempting to use cygwin for my compiler, making use of dirent.h and using the template: #include <dirent.h> #include <stdio.h> int main(void) { DIR *d; struct dirent *dir; d = opend...

How can i fix this debugging error.

hi, I have an executable built in windows(exe).I want to pass that exe to an out file built by Cygwin(DOS version). It is going well upto half the way. After that it is showing the following error,which is related to Cygwin dll files(ACL check) . Program received signal SIGSEGV, Segmentation fault. 0x6108829e in cygwin1!aclcheck () fro...

xemacs: dotemacs config so that one can paste without getting "funny" chars

Copying text from websites via browser, paste into xemacs (21.4) buffer, and tildes, quotes, etc. don't copy correctly. Example: he’s a dummy -> he\222s a dummy. Can YOU copy & paste it without problems? If so, please help - how to config my .emacs to solve this. Thanks. ...

Is there a way to use Cygwin to run shell scripts and use proper path seperators for java commands

I'm trying to use Cygwin to test startup scripts for a Java application that is going to run in a Linux environment. The troule is when I specify a boothclasspath or Classpath I need to use OS specific path seperators ";" for windows, and ":" for Linux. This happens because Java is still a native windows application and uses the native ...

Setting grep end of line character

I have a fairly simple bash script that does some grep to find all the text in a file that does not match a pattern. grep -v $1 original.txt >trimmed.txt The input file ends each line with the Windows line end characters, i.e., with a carriage return and a line feed CR LF. The output of this command (run in Cygwin) ends each line wit...

Is it possible to put Cygwin on a DVD for an offline install?

In connection with this question (not that many people seem to be on Server Fault yet). I'm trying to put the whole of Cygwin on a DVD, so I can have it with me for an offline install on a computer which doesn't have network connection. I downloaded setup.exe, put "download without install" and selected Current version and under "All"...

Trying to grep cygwin output from cvs commands

Hi All, I am trying to find an easy way to see what files I have modified in my checked out code by running either cvs update or cvs status and limiting the output to the files I have modified. I started by doing variations on: cvs update | grep "M " // this did nothing useful. cvs update | grep -e "M " * // this got me all the files...

Compiling fish shell under Cygwin?

Has anyone been able to correctly compile fish under Cygwin? I found this post about modifying configure.ac but I'm getting all sorts of errors. The usual configure, make, make install isn't working for me, maybe I'm doing something wrong here... Can someone please walk me through how to get it to compile? ...

Ocaml OpenGL example from wikipedia fails to compile

I am trying to get started with some basic Ocaml programming. To start I wanted to get the OpenGL example from wikipedia running. http://en.wikipedia.org/wiki/Ocaml let _ = ignore( Glut.init Sys.argv ); Glut.initDisplayMode ~double_buffer:true (); ignore (Glut.createWindow ~title:"OpenGL Demo"); let angle t = 10. *. t...

What to copy when moving cygwin from one machine to the other ?

I'm reinstalling everything on my machine, ..., and amongst those is cygwin. I'm trying to avoid reinstallation, partly because, I don't even know what is it that I installed last time in it. So my question is, can I just move the cygwin directory from one machine to another, and expect everything to work, or are there some other importa...