Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I used cygwin to work in windows, however now I have a problem here.

Since I put my cygwin on D:\cygwin, when I try to run a program, namely ocamldep.exe, it returns a path error which I don't know how to fix.

The error is as follow.

/bin/sh: D:cygwinbinocamldep.exe: command not found

I know for sure they dont have cygwinbinocamldep.exe, but how to change this into ocamldep.exe only? Sorry but I'm really a dummy in Unix and everything on it.

share|improve this question

migrated from serverfault.com May 6 '11 at 8:23

This question came from our site for professional system and network administrators.

1 Answer 1

There's something wrong with your path. My guess is that string "D:\cygwin\bin\ocamldep.exe" is passed to sh, which then does backslash removal and ends up with D:\cygwinbinocamldep.exe.

Post, please, what's in your $PATH variable: echo $PATH will tell what's its value.

Apart of that you may try to run D:\cygwin\bin\ocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UN*X style backslashes, second and third are native UN*X paths, one of these might work).

share|improve this answer
    
C:\Program Files\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\MiKTeX 2.8\miktex\bin;C:\Windows\System32;D:\Software\Office;D:\Software\Office\ps2pdf;‌​D:\Software\Kuliah\XML Data Management\grep-2.5.4-bin\bin\;C:\Program Files\TortoiseSVN\bin; D:\Software\Kuliah\Semantic Web Technologies\apache-maven-2.2.1\bin;C:\Program Files\Windows Live\Shared; .;C:\Program Files\OpenVPN\bin; D:\Software\Programming\apache-maven-2.2.1\bin; C:\Program Files\Java\jdk1.6.0_20\bin;D:\cygwin\bin;D:\masm32\bin –  zfm May 6 '11 at 7:33
    
This doesn't look good. According to cygwin.com/cygwin-ug-net/setup-env.html windows format PATH should be converted to UN*X format by the batch that starts your shell. –  Paweł Brodacki May 6 '11 at 7:40
    
@Pawel: I had that error too, but I have removed the "dos warning" on windows too and it worked for other command (like ocamlc.exe or ocamlopt.exe), but I will give it a try. –  zfm May 6 '11 at 7:55
    
@Pawel: I have changed the path (at least for the cygwin) and then I got even a more trivial error You need Cygwin on Windows to build with Ocamlbuild. Please install in ... –  zfm May 6 '11 at 8:08
    
I'm not sure what you mean by changing path for cygwin. What I mean is that your $PATH should show UN*X-like paths with directory names separated by "/", not "\". You have to solve this problem to have programs running. Maybe this FAQ cs.nyu.edu/~yap/prog/cygwin/FAQs.html will help you. –  Paweł Brodacki May 6 '11 at 8:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.