Cygwin No Such File Or Directory Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Cygwin No Such File Or Directory Home
and policies of this site About Us Learn more about Stack Overflow stddef.h no such file or directory cygwin the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Cygwin Path No Such File Or Directory
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it cygwin gcc no such file or directory only takes a minute: Sign up Bash on cygwin: No such file or directory up vote 1 down vote favorite 1 commonMongo=s:/programs/mongodb/ dbpath=$commonMongo"data/" logFile=$commonMongo"log.txt" mongoProg=s:/programs/mongodb/mongodb/ mongoBin=$mongoProg"bin/" mongod=$mongoBin"mongod.exe" a=$1 if [ "$a" == "start" ];then "${mongod} --logpath ${logFile} --logappend --dbpath ${dbpath} &" elif [ "$a" == "repair" ];then "${mongod} --dbpath ${dbpath} --repair" else echo "Incorrect usage" fi ./init.sh: line 11: s:/programs/mongodb/mongodb/bin/mongod.exe --dbpath connect /tmp/.x11-unix/x0 no such file or directory cygwin s:/programs/mongodb/data/ --repair: No such file or directory Calling the printed command works fine: s:/programs/mongodb/mongodb/bin/mongod.exe --dbpath s:/programs/mongodb/data/ --repair bash cygwin share|improve this question asked Oct 2 '11 at 20:30 MetaChrome 1,21931835 2 Fixed by not wrapping the command in double quotes. –MetaChrome Oct 2 '11 at 20:34 1 You should still wrap individual variables `"${mongod}"' & '"${logFIle}"' if they can contain spaces, but yes, the whole line in one set of quotes would cause the error you saw –nhed Oct 2 '11 at 23:28 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote Cygwin will actually do magic for you if you put your DOS paths in quotes, for example cd "C:\Program Files\" share|improve this answer answered May 24 '12 at 21:08 RandomMonkey 33933 add a comment| up vote 4 down vote Cygwin does not recognize Windows drive letters such as s:, use /cygdrive/s instead. Your cygwin command should look like this: /cygdrive/s/programs/mongodb/mongodb/bin/mongod.exe --dbpath s:/programs/mongodb/data/ --repair Notice that the path like parameters you pass to the executable are in windows format as mongod.e
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Cygwin ./configure No Such File
the workings and policies of this site About Us Learn more cygwin terminal no such file or directory about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User
Cygdrive No Such File Or Directory
Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: http://stackoverflow.com/questions/7629017/bash-on-cygwin-no-such-file-or-directory Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top cygwin cygdrive paths and Windows Command Prompt up vote 1 down vote favorite I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin in my Windows PATH in http://superuser.com/questions/291818/cygwin-cygdrive-paths-and-windows-command-prompt 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}/something.txt On the one machine it transfers the file just fine, but on the other machine I get an error: /cygdrive/c/something.txt: No such file or directory However, if I execute the command this way on the machine that gave me the error, it transfers just fine: scp /c/something.txt User@server:${HOME}/something.txt Why the differences? Is there something I need to configure within cygwin to make this work with /cygdrive/c? UPDATE: Here's something more interesting. If I do ls /c from a Windows command prompt I get what you would expect, as list of everything in C:. However, ls /cygdrive/c says that it doesn't exist. Running those commands from the cygwin bash yields exactly the opposite behavior. windows cygwin scp share|improve this question asked Sep 28 '10 at 20:25 Matt Baker 133139 migrated from stackoverflow.com Jun 2 '11 at 0:35 This question came from our site for professional and enthusiast programmers. add
-- "gcc: error: spawn: No such file or directory" From: "Larry Hall (Cygwin)"
-- "gcc: error: spawn: No such file or directory" From: Christopher Faylor