delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/01/12:10:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 1 Nov 2005 12:09:53 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: can not find valid cygwin path
Message-ID: <20051101170953.GB17353@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <BAY105-F4869D333E9F2C6378C99BE96F0 AT phx DOT gbl>
Mime-Version: 1.0
In-Reply-To: <BAY105-F4869D333E9F2C6378C99BE96F0@phx.gbl>
User-Agent: Mutt/1.5.8i

On Tue, Nov 01, 2005 at 10:04:01AM -0700, lin q wrote:
>Hi,
>  I have the latest cygwin installed on WinXP SP1. It works fine in general 
>until I try to run some program today.
>
> It is really weired, the program requiring setting up some environment 
>viriables, I guess iniside its code it tries to find some data based on 
>that variable setting. Anyway, I do it something like this in my script,
>
>export PROG_ENV=/cygdrive/c/prog
>export PATH=$PROG_ENV/bin/nt:$PATH
>
>echo $PATH
>$PROG_ENV/bin/nt/prog.exe
>
>
> Then I source this script in cygwin, but I get such error,
>
>The PROG_ENV directory "/cygdrive/c/prog" does not exist.
>The PROG_ENV environment variable does not point to any directories.  
>Current setting is PROG_ENV="/cygdrive/c/prog".
>
> But if I `ls $PROG_ENV`, the directory is there! And `cd  $PROG_ENV` works 
>also.

Sounds like prog.exe isn't a cygwin program and doesn't understand /cygdrive
style paths.

> I wonder why the valid cygwin can not be taken.
>
> Another thing I find is if I change the BASH script to DOS script and run 
>it directly from dos, then everything is ok, namingly here is the DOS scipt,
>
>set PROG_ENV=c:\prog
>set PATH=%PROG_ENV%\bin\nt;%PATH%
>
>%PROG_ENV%\bin\nt\prog.exe
>
> Any suggestion?

Yep.  That pretty much clinches it.  Don't use cygdrive with pure windows
programs.

cgf

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