Cygwin problem on windows path












1















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 system and network administrators.























    1















    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 system and network administrators.





















      1












      1








      1








      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














      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.







      windows cygwin path






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 6 '11 at 5:00









      zfmzfm

      11615




      11615




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


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









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


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
























          1 Answer
          1






          active

          oldest

          votes


















          0














          There's something wrong with your path. My guess is that string "D:cygwinbinocamldep.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:cygwinbinocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UNX style backslashes, second and third are native UNX paths, one of these might work).






          share|improve this answer
























          • C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

            – 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








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f279995%2fcygwin-problem-on-windows-path%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          There's something wrong with your path. My guess is that string "D:cygwinbinocamldep.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:cygwinbinocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UNX style backslashes, second and third are native UNX paths, one of these might work).






          share|improve this answer
























          • C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

            – 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
















          0














          There's something wrong with your path. My guess is that string "D:cygwinbinocamldep.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:cygwinbinocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UNX style backslashes, second and third are native UNX paths, one of these might work).






          share|improve this answer
























          • C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

            – 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














          0












          0








          0







          There's something wrong with your path. My guess is that string "D:cygwinbinocamldep.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:cygwinbinocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UNX style backslashes, second and third are native UNX paths, one of these might work).






          share|improve this answer













          There's something wrong with your path. My guess is that string "D:cygwinbinocamldep.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:cygwinbinocamldep.exe, /cygwin/bin/ocamldep.exe or /bin/ocamldep.exe (first one is windows path with UNX style backslashes, second and third are native UNX paths, one of these might work).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 6 '11 at 7:01









          Paweł BrodackiPaweł Brodacki

          1514




          1514













          • C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

            – 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



















          • C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

            – 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

















          C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

          – zfm
          May 6 '11 at 7:33





          C:Program FilesPC Connectivity Solution;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesMiKTeX 2.8miktexbin;C:WindowsSystem32;D:SoftwareOffice;D:SoftwareOfficeps2pdf;D:SoftwareKuliahXML Data Managementgrep-2.5.4-binbin;C:Program FilesTortoiseSVNbin; D:SoftwareKuliahSemantic Web Technologiesapache-maven-2.2.1bin;C:Program FilesWindows LiveShared; .;C:Program FilesOpenVPNbin; D:SoftwareProgrammingapache-maven-2.2.1bin; C:Program FilesJavajdk1.6.0_20bin;D:cygwinbin;D:masm32bin

          – 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





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





          @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





          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


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f279995%2fcygwin-problem-on-windows-path%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Puebla de Zaragoza

          Musa