RE: Cygwin fresh install imports Windows PATH which includes spaces causing errors
Aaron Schneider wrote on 2012-07-24: So anyway, the problem is caused when calling a binary present on windows path that can match a cygwin one, for example running a ./configure script. After removing make the issue is happening again: $ make cygwin warning: MS-DOS style path detected: /usr/local/bin/C:\Program Preferred POSIX equivalent is: /usr/local/bin/C:/Program CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Can't find C:\Program on PATH. Could this be a problem with the Makefile? It looks like you're using Cygwin make now, but the Makefile might be calling out Windows paths directly... -- Bryan Thrall Principal Software Engineer FlightSafety International bryan.thr...@flightsafety.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 25/07/2012 15:34, Thrall, Bryan wrote: guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Can't find C:\Program on PATH. Could this be a problem with the Makefile? It looks like you're using Cygwin make now, but the Makefile might be calling out Windows paths directly... -- Oh no I meant I removed the cygwin's make, the nokia's make is still present, never removed it in the end. The makefile is in perfect condition, even I tried it on a empty dir and the result is the same. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On Wed, Jul 25, 2012 at 9:50 AM, Aaron Schneider wrote: Oh no I meant I removed the cygwin's make, the nokia's make is still present, never removed it in the end. The makefile is in perfect condition, even I tried it on a empty dir and the result is the same. If you're not using the Cygwin tools including make then we cannot help you with the problem. The only resolution is to install the Cygwin make to overcome the issue. But this also means that the Makefile must conform to POSIX paths. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 25/07/2012 16:56, Earnie Boyd wrote: On Wed, Jul 25, 2012 at 9:50 AM, Aaron Schneider wrote: Oh no I meant I removed the cygwin's make, the nokia's make is still present, never removed it in the end. The makefile is in perfect condition, even I tried it on a empty dir and the result is the same. If you're not using the Cygwin tools including make then we cannot help you with the problem. The only resolution is to install the Cygwin make to overcome the issue. But this also means that the Makefile must conform to POSIX paths. There's nothing to solve actually, I removed from PATH the paths that are no longer useful to me, among those that Symbian one that I no longer use. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On Tue, Jul 24, 2012 at 05:31:54PM +0200, Aaron Schneider wrote: Fresh install of cygwin on c:\cygwin\ is including spaces in PATH, causing that cannot execute common tasks, $ echo $PATH /usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/PC Connectivity Solution:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32: and so on Example: $ make Can't find C:\Program on PATH. The Cygwin version of make would not display c: anything. That's not a Cygwin path specification and it shouldn't even be possible for a Cygwin program to see the Windows PATH environment variable. You must be running a non-cygwin make. Spaces in the PATH are acceptable on both Linux and Cygwin and Windows. That said, however, make does not deal well with spaces in file specifications. If something is actually parsing a PATH environment variable then it could cause problems. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 24/07/2012 17:50, Christopher Faylor wrote: The Cygwin version of make would not display c: anything. That's not a Cygwin path specification and it shouldn't even be possible for a Cygwin program to see the Windows PATH environment variable. You must be running a non-cygwin make. Spaces in the PATH are acceptable on both Linux and Cygwin and Windows. That said, however, make does not deal well with spaces in file specifications. If something is actually parsing a PATH environment variable then it could cause problems. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple It was actually that make wasn't installed, it works now. I was expecting the usual bash: make: command not found -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On Tue, Jul 24, 2012 at 05:57:40PM +0200, Aaron Schneider wrote: On 24/07/2012 17:50, Christopher Faylor wrote: The Cygwin version of make would not display c: anything. That's not a Cygwin path specification and it shouldn't even be possible for a Cygwin program to see the Windows PATH environment variable. You must be running a non-cygwin make. Spaces in the PATH are acceptable on both Linux and Cygwin and Windows. That said, however, make does not deal well with spaces in file specifications. If something is actually parsing a PATH environment variable then it could cause problems. It was actually that make wasn't installed, it works now. I was expecting the usual bash: make: command not found You apparently didn't grok the part about it shouldn't even be possible for a Cygwin program to see the Windows PATH environment variable. Having c:\Program Files\something in the PATH is very common on Windows. I have it in my path and I don't see anything like this when I try to run a nonexistent command. You must have something else going on if you are getting errors with c: in them. If you saw this error then you likely aren't using a Cygwin shell. If you have further problems then you should (re)read http://cygwin.com/problems.html . Your takeaway from that would probably be that you need to send cygcheck output as an attachment but the real reason for that web page is to start you thinking about how to send a problem report. Sending an error message with no other supporting details is not the most efficient way to get a problem solved. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 24/07/2012 18:08, Christopher Faylor wrote: You must be running a non-cygwin make. That said, however, make does not deal well with spaces in file specifications. If something is actually parsing a PATH environment variable then it could cause problems. You're right, I know what caused the problem, a window's system path (not user's path) that includes the make.exe c:\Program Files (x86)\Common Files\Symbian\tools\make.exe Since there wasn't /usr/local/bin/make or /usr/bin/make just searched on paths imported from windows. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 7/24/2012 1:35 PM, Aaron Schneider wrote: On 24/07/2012 18:08, Christopher Faylor wrote: You must be running a non-cygwin make. That said, however, make does not deal well with spaces in file specifications. If something is actually parsing a PATH environment variable then it could cause problems. You're right, I know what caused the problem, a window's system path (not user's path) that includes the make.exe c:\Program Files (x86)\Common Files\Symbian\tools\make.exe Since there wasn't /usr/local/bin/make or /usr/bin/make just searched on paths imported from windows. There'd be a /bin/make if you installed it... $ which make /bin/make IMHO it's always better to go with a Cygwin way of doing things instead of installing some Unix/Linux thing through some Windows port like this Symbian\tools thing... -- Andrew DeFaria http://defaria.com Some people just don't know how to drive, I call these people Everybody But Me. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 25/07/2012 2:47, Andrew DeFaria wrote: There'd be a /bin/make if you installed it... $ which make /bin/make IMHO it's always better to go with a Cygwin way of doing things instead of installing some Unix/Linux thing through some Windows port like this Symbian\tools thing... That make.exe was installed by Symbian Qt SDK which is windows native, nothing to do with cygwin. In fact, that make.exe calls a perl script called make.pl: use FindBin; use lib $FindBin::Bin; use tlaunch; callTool('','\\epoc32\\tools\\make.exe',\@ARGV); So anyway, the problem is caused when calling a binary present on windows path that can match a cygwin one, for example running a ./configure script. After removing make the issue is happening again: $ make cygwin warning: MS-DOS style path detected: /usr/local/bin/C:\Program Preferred POSIX equivalent is: /usr/local/bin/C:/Program CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Can't find C:\Program on PATH. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 7/24/2012 6:09 PM, Aaron Schneider wrote: On 25/07/2012 2:47, Andrew DeFaria wrote: There'd be a /bin/make if you installed it... $ which make /bin/make IMHO it's always better to go with a Cygwin way of doing things instead of installing some Unix/Linux thing through some Windows port like this Symbian\tools thing... That make.exe was installed by Symbian Qt SDK which is windows native, nothing to do with cygwin. And, IMHO, should be avoided like the plague... Just my opinion. In fact, that make.exe calls a perl script called make.pl: use FindBin; use lib $FindBin::Bin; use tlaunch; callTool('','\\epoc32\\tools\\make.exe',\@ARGV); So anyway, the problem is caused when calling a binary present on windows path that can match a cygwin one, for example running a ./configure script. After removing make the issue is happening again: $ make cygwin warning: MS-DOS style path detected: /usr/local/bin/C:\Program Preferred POSIX equivalent is: /usr/local/bin/C:/Program CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Can't find C:\Program on PATH. Maybe when in Cygwin, /bin and /usr/bin should be put in your PATH ahead of the Windows stuff. I know I've run with C:\Cygwin\bin in the front of my Windows System Environment PATH variable for years without issue (though I think some around here might say it's not a good idea). -- Andrew DeFaria http://defaria.com I put contact lenses in my dog's eyes. They had little pictures of cats on them. Then I took one out and he ran around in circles. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 25/07/2012 3:59, Andrew DeFaria wrote: Maybe when in Cygwin, /bin and /usr/bin should be put in your PATH ahead of the Windows stuff. I know I've run with C:\Cygwin\bin in the front of my Windows System Environment PATH variable for years without issue (though I think some around here might say it's not a good idea). They are already in front, but if the command is not there it just searches for the next up to the last, and if no match even so, says command not found. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
On 07/24/2012 07:24 PM, Aaron Schneider wrote: On 25/07/2012 3:59, Andrew DeFaria wrote: Maybe when in Cygwin, /bin and /usr/bin should be put in your PATH ahead of the Windows stuff. I know I've run with C:\Cygwin\bin in the front of my Windows System Environment PATH variable for years without issue (though I think some around here might say it's not a good idea). They are already in front, but if the command is not there it just searches for the next up to the last, and if no match even so, says command not found. Which is why I said eariler: IMHO it's always better to go with a Cygwin way of doing things instead of installing some Unix/Linux thing through some Windows port like this Symbian\tools thing... Of course you have to actively know what you want to use and what you have. I assume, since you typed the command make in your initial posting on the problem you would have known that you wanted to execute make and that you would have thought Gee I'd like to execute Cygwin's make and perhaps would have checked with a which make or a type make and, upon finding you don't have Cygwin's make, the initial question would have been Where's make (or you would have went to http://cygwin.com/packages/ and searched for make.exe and just solved your own problem without questioning) not Cygwin fresh install imports Windows PATH -- Andrew DeFaria http://defaria.com Mental Floss prevents Moral Decay. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple