delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/27/20:47:36

X-Spam-Check-By: sourceware.org
Message-ID: <008001c7e90c$f75b3ea0$2201a8c0@deborah>
From: "Hugo Martin \(Tourbillon Enterprises\)" <hugomartin AT tourbillon-enterprises DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Howto force winXP use cygwin "if test -n"
Date: Mon, 27 Aug 2007 19:46:56 -0500
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.3138
X-VSS-HEADER: SID:010; PID:16289; Tue, 28 Aug 2007 09:47:10 +0900 (JST)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello.

I need to use cygwin's "if" command, the ruby gem I need to install tries to 
run "if test -n" in my winXP but the win32 "if" is used so it fails with "-n 
was unexpected at this time".

Is it possible to force WinXP to use cygwin's "if"?  c:\cygwin\bin is on the 
PATH

Hugo


--------------------------------------------------

If it's helpful here is the error:

c:\> gem install rmagick --include-dependencies
....[snip].......................................
...
config.status: creating ext/RMagick/rmagick_config.h

This installation of RMagick 1.15.9 is configured for
 and ImageMagick 6.3.0.patchlevel 0) [i386-mswin32]
RMagick configuration completed successfully.

nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if test -n "c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.15.9/lib"; then 
RUBYLIBDIR=--rbdir="c:/ruby/lib/ruby/gems/
1.8/gems/rmagick-1.15.9/lib";  fi;  if test -n 
"c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.15.9/lib"; then  RUBYARCHDIR=--
sodir="c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.15.9/lib";  fi; 
/cygdrive/c/ruby/bin/ruby setup.rb config $RUBYLIBDIR $
RUBYARCHDIR
-n was unexpected at this time.
NMAKE : fatal error U1077: 'if' : return code '0x1'
Stop.

Gem files will remain installed in 
c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.15.9 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.15.9/gem_make.out

C:\>
.....................................................

In the CygWin console:
$ if test -n
>

In winXP cmd console:
C:\ruby\lib\ruby\gems\1.8\gems>if test -n
-n was unexpected at this time.


Thanks for the help



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019