cygwin

PSTools not working in SSH

When using PSTools (sysinternals) via SSH, you may notice that it stalls when you try the command. If it does this, you probably have not agreed to the license terms for each pstools command. Solution: Log directly into the Windows computer via Console or RDP as the user you wish to SSH in as and execute each command in pstools that you...

Using Cygwin as a shell for MinGW

I have Cygwin and MinGW(TDM) installed. To build certain projects from source, you have to run a ./configure script, which requires a bash shell and certain unix utilities. For this, the MinGW project distributes MSYS, which is basically an old, stripped-down version Cygwin. I already have Cygwin installed, so I'd rather just use that. W...

What is the best way to use linux utilities under windows?

Linux utilities like sed, awk and other shell scripting features are awesome and life becomes a lot harder when I am developing on windows and cant use any of these. People suggest to use cygwin for those who want the linux like tools under windows. But I feel cygwin will be an overkill for someone who only wants to use the handful comm...

Can I use link.h on a cygwin install?

I have installed the latest version of Cygwin, selecting the following packages during setup: libgcc1 gcc gcc-core And created a file (test.c) with only this line: #include <link.h> Then ran the following from my Cygwin bash: $ gcc test.c ... but got this error: test.c:1:18: link.h: No such file or directory Any ideas how I ...

Rails generate scaffold user:string password: string just creates a new rails folder

I'm new to rails and trying to follow along with railstutorial.org. When I use Rails generate scaffold user:string password:string, it creates a new folder entitled generate and does the same command as "Rails Demo_App". I'm assuming I don't have something installed correctly. I'm using Windows 7, Cygwin/Vim/Sqlite3 - I have neede...

cygwin rm command fails with the following error

c:>rm -rf foldername rm: failed to get attributes of `/': No such file or directory Why does this fail? This happens on the Win XP OS. ...

php cygwin ? how to shell_exec

ok i know this is stupid but atleast im trying :) $result = shell_exec('C:/cygwin/bin/bash.exe /c --login -i git'); var_dump($result); somehow i cant get git command from cygwin, anyone ? Adam Ramadhan edit* it should give usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path] [-p|--paginate|--no-p...

gcc 4.5.1 configure options for C++0x thread support

I am trying to compile gcc 4.5.1 for cygwin with support for C++0x threads. However, the resulting gcc does not recognize the -pthread option. My configure command is: ./configure --enable-bootstrap --enable-shared --enable-shared-libgcc --with-gnu-ld --enable-languages=c,c++ --enable-libgomp --enable-libssp --...

cygwin : pdksh(5.2.14-3) doesn't support backslash path (\)

as an replacement for ksh under cygwin, pdksh might be the only choice. but look like there have a bug for cygwin : pdksh(5.2.14-3) to support backslash path (\). it will swallow the \ : $ cd .\access pdksh: cd: /cygdrive/e/.access - No such file or directory After search on the internet, the same problem solved for other platform. b...

Using Curl to get a Https webpage in Windows 7

I just need to fetch an https page, and I'm using curl currently by having the curl.exe application in my Path and calling it with a Perl file. However, then I get the error "* Protocol https not supported or disabled in libcurl". I've been looking around and I can't find a solid set of instructions to get it to work. I have installed cy...

Include problems

Hello, I have to work with a big project with a lot of files in Eclipse Helios CDT. The structur of the project is like following: src -> common (linked folder) -> dbHandler --> folder1 ---> ... --> folder2 ---> ... In folder1 is a h-file which can't find the h-file from the folder ahead. I think it is stupid to include all folders o...

How to connect Ruby Cygwin environment to with a SQL Server 2008 database?

I run a Windows XP machine, and use Cygwin to run my ruby environment. I usually connect to a MySQL database, but for purposes of testing the application when using a SQL Server database I need to setup a connection to my SQL Server database. Does anyone know how to setup my environment to connect to SQL Server? ...

How can I get Haskell readline installing under Cygwin?

Here's the message I get when trying to install in via cabal-install: $ cabal install --extra-include-dirs="C:\no_spaces\cygwin\usr\include" --extra-lib-dirs="C:\no_spaces\cygwin\lib" readline Resolving dependencies... Configuring readline-1.0.1.0... checking for gcc... gcc checking for C compiler default output file name... a.exe check...

Invoke and Debug doesn't work

Hello, I use Eclipse CDT (Helios) with cygwin and the most things works fine, but I can't run and debug my applications. I start the invoke or the debug and it ends immediately. There is no error or anything like that. What can I do to get it running? Thanks for any advice or idea. ...

CMAKE building for cygwin

I used CMAKE to create the Visual Studios C++ project for a library that I needed to build, and then I used VC++ to build the library. However, the time has come to rebuild the same library for cygwin so that I can link to it with the GNU tool chain (g++ make gdb). I've been trying to figure out how to configure CMAKE to build for cygw...

Linux Mobile(Limo) unable to do x11 forwarding of Video and audio using cygwin

HI, I am doing X11 forwarding from Linux Mobile (LiMo) operating system to windows. I have Cygwin/X installed on my windows machine. I can see 2d Buttons and forms but I am unable to see x Forwarding of Videos .How can I do x forwarding of audio ? ...

Russian language in e-TextEditor or Cygwin

I'm using e-TextEditor for some tasks and can't figure, why when i using some Russian text and process it in bundle script i'm always getting something like http://gyazo.com/f38c69babe1f95ff786711fe684aee77.png . I'm think this is cygwin bug, because webkit must render it correct in UTF-8 encoding. I'm tested some guides thats describes ...

Help needed installing cygwin: may be ini file problem

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 ...

How to setup PC and Mac for using git.

I use git both for Mac and PC. When pulling Mac's git from PC, it's easy as I can use ssh. git clone smcho@prosseek:~/smcho/setup The problem happens the other way round : to pull from Mac. I guess there are two ways to go. Method 1 : Connect to server By using 'connect to server' in Mac, I can make PC's directory like that of Mac....

Cygwin and Eclipse Helios setup

I am trying to learn C++ with Cygwin and Eclipse Helios. I got all the development tools under Cygwin installed; and installed the CDT package for Helios. The problem is I don't see an option to create a C++ project from makefile or any other option. I can only see options for a C Project, C++ project and a new project from existing sou...