cygwin

What's the Cygwin/Red Hat equivalent to Debian's manpages-dev, manpages-posix-dev?

I'm using Cygwin, and just discovered to my dismay that the package naming scheme is derived from Red Hat. I need the development man pages, called manpages-dev and manpages-posix-dev on Debian-based distros, and can't locate the Cygwin/RH equivalents. What are they? If they're not available, what's the canonical documentation to use in...

Cygwin "git clone" gives "remote end hung up unexpectedly" against Ubuntu 10.04.1

I am in the process of figuring out how to get Eclipse (Windows 7) working against our freshly git-migrated CVS repository which I have put in gitosis on an Ubuntu 10.04.1 LTS host. All software is installed with apt-get (git, gitosis, etc.). Eclipse with egit hangs when trying to check out, so I am playing with command line clients. ...

Incredible failure saving a git commit message via emacs in cygwin

EDIT: I'm using pico now for git messages, so I won't really need the solution anymore. But if you have suggestions, out of curiousity, I can try them. So I've got a git repository on cygwin, and doing 'git commit -a -m "message"' works just fine. However, doing 'git commit', which goes to an emacs window, and typing something in, and ...

Compiling libraries with CMake under Cygwin

I have been trying to compile TinyXML using CMake as a sort of mini project, trying to learn CMake. As an addition I am trying to make it compile into a dynamic library and install itself so it works. So far I have managed to get it to compile and install BUT it compiles into a .dll and a .dll.a and the only way to get it to work is to ...

eclipse compiling error

I just installed cygwin and eclipse on my win7 x64 machine, and after importing my code from svn, I get this weird error: **** Build of configuration Default for project platform **** make all g++ -O2 -g -Wall -fmessage-length=0 -c -o platform.o platform.cpp process_begin: CreateProcess(C:\cygwin\bin\g++.exe, g++ -O2 -g -Wall -fmess...

Cygwin: How to actually use gcc-mingw

Since "gcc -mno-cygwin" does not work anymore, I was looking for a way to get a MinGW-targeted GCC running within my Cygwin environment. (Running a MSYS environment is not an option at this point.) The Cygwin installer offers a package "gcc-mingw", which installs, among others: lib/gcc/i686-pc-mingw32/3.4.4/cc1.exe lib/gcc/i686-pc-ming...

HTTPS github access

I'm stuck behind a firewall so have to use https to access my github repository. It's a new one I'm creating & am using cygwin 1.7.7 on XP. I've tried setting the remote to https://[email protected]/oharab/ExcelANT.git, but pushing prompts for a password, but doesn't do anything once I've entered it. https://oharab:github.com/oharab/Exce...

Is it poosible to use winmerge to view git diffs from cygwin?

I like to use git on cygwin, but the only downside I have is when I want to git difftool I cannot use anything useful. git diff is fine for me most of the time, but sometimes I'd like to use winmerge to view these diffs via git difftool is there some way to set this up? ...

Strange crash when loading a C DLL compiled with GCC in cygwin into a C#.NET application

I try to load a simple DLL compiled with GCC in cygwin into a C#.NET application. The DLL looks like this #ifndef __FOO_H #define __FOO_H #if _WIN32 #define EXPORT extern "C" __declspec(dllexport) #else //__GNUC__ >= 4 #define EXPORT extern "C" __attribute__((visibility("default"))) #endif EXPORT int bar(); #endif // __FOO_H T...

bash evironment variables starting from a digit

I want to set an environment variable in bash, which starts from a digit. The environment of the process can contain such variables (it just doesn't care). But in the shell you have to create the variables, and then export them so they go to the environment. Is there a way to put some value into shell's environment without touching varia...

Git - Authentification failed

I'm completely new at git, and having had prior knowledge with putty decided to set it up to use that. At first it came up with an error I traced back (using google) to me not connecting via plink to the server to cache it. I was able to connect via plink to the git repository I need to clone, but doing the "git clone x y" comes up wit...

Command-line variable assignments in Cygwin Bash not working?

According to section 3.7.1 of the Bash manual, variable assignments at the beginning of a command line should be visible to the invoked program. e.g. DIR=/tmp ls $DIR should behave as if I've typed "ls /tmp" - and the variable DIR should not persist after executing the command. Cygwin Bash (GNU bash, version 3.2.51(24)-release (i686...

Automate cygwin via batch file

Hi guys, Long story short... we have multiple servers which we run perflog monitoring on every night. My job is to convert these logs to .csv format and send them to my e-mail. This bit it already automated via a .sh script an ex-employee wrote. What I want automated is to run a batch job after the perfmon logging to look at a specifi...

svnadmin dump in Cygwin

I'm trying to write a script in Cygwin to backup our SVN repositories nightly. The first stumbling block I found is that the svnadmin doesn't seem to work quite right within the cygwin bash shell. My repositories are in C:\Repositories Doing the following in a cmd shell works fine svnadmin dump C:\Repositories\Thor > Thor.dmp But t...

Why does cygwin's svn ask for a password?

At work we have svn setup so that when I have an ssh tunnel open to the server I can access repositories from localhost without beeing prompted for a password. (The repositories are accessed via svn://localhost/ urls). Everything works fine with TortoiseSVN and windows command line svn, but I would like to use cygwin svn. The problem is ...

cygwin + console2: running cygwin bash with startup dir

I am using Console2 as a bash wrapper on Windows. Most importantly, it enables me to start up a new bash tab in a predefined project directory. Now I would like to replace the Windows command line by a Cygwin bash. However, the "Startup Dir" setting in Console2 is not respected by Cygwin. Basically, I see three solution approaches: F...

cygwin cygdrive paths and Windows Command Prompt

I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin in my Windows PATH in both cases. When I run the following command from a Windows Command Prompt, however, I get very different results between the two installations: scp /cygdrive/c/something.txt User@server:${HOME...

How to use OpenGL and GLUT in Cygwin

I've attempted to follow the instructions from various places [1][2][3], but I keep getting link errors when attempting to use GLUT and OpenGL in Cygwin. Everything I try gives me a link error similar to: $g++ -Wall -pedantic -c -o triangle.o triangle.cpp $g++ -o triangle *.o -lglut32 -lglu32 -lopengl32 -o triangle triangle.o:triangle....

using python.ctypes with cygwin

I want to use python's (2.6.5) ctypes with cygwin, but I don't know how to load a dll. I tried various variants like >>> form ctypes import * >>> cdll.LoadLibrary("/lib/libcairo.dll.a") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary r...

Asterisk cross platform compilation

I am trying to compile asterisk from windows using netbeans c/c++ IDE. As i want to add some functionality into the existing code. when i am running the configure file i got the following errors cygwin warning: MS-DOS style path detected: .\configure Preferred POSIX equivalent is: ./configure CYGWIN environment variable option "n...