ocamlfind cannot see installed packageHow to build Flowocamlfind does not find a package installed with godiOcaml and Opam: unbound module Core(OCamlfind) build library with dependencies to CoreOpam / findlib warning “… has multiple definitions”different results for commands “sudo ocamlfind list” and “ocamlfind list”Ocamlfind command not foundDecent ocamlfind documentationdifficulty installing ocamlfind under cygwin4ocamlfind query … terminated with error code 2Installing ocamlfind.1.8.0 on macOS Sierra

How do you cope with rejection?

I recently started my machine learning PhD and I have absolutely no idea what I'm doing

Save my secrets!

Are there any symmetric cryptosystems based on computational complexity assumptions?

how to create an executable file for an AppleScript?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Why are there five extra turns in tournament Magic?

Was murdering a slave illegal in American slavery, and if so, what punishments were given for it?

How would fantasy dwarves exist, realistically?

Good examples of "two is easy, three is hard" in computational sciences

What technology would Dwarves need to forge titanium?

Why does a table with a defined constant in its index compute 10X slower?

What would be the game balance implications for using the Gygax method for applying falling damage?

Is it possible to determine from only a photo of a cityscape whether it was taken close with wide angle or from a distance with zoom?

At what point can a confirmation be established between words of similar meaning in context?

Why do academics prefer Mac/Linux?

on the truth quest vs in the quest for truth

pwaS eht tirsf dna tasl setterl fo hace dorw

How did Arya not get burned in S8E05, "The Bells"?

Merging two rows with rounding their first elemnts

Is my company merging branches wrong?

Cycling to work - 30mile return

Was Tyrion always a poor strategist?

What color to choose as "danger" if the main color of my app is red



ocamlfind cannot see installed package


How to build Flowocamlfind does not find a package installed with godiOcaml and Opam: unbound module Core(OCamlfind) build library with dependencies to CoreOpam / findlib warning “… has multiple definitions”different results for commands “sudo ocamlfind list” and “ocamlfind list”Ocamlfind command not foundDecent ocamlfind documentationdifficulty installing ocamlfind under cygwin4ocamlfind query … terminated with error code 2Installing ocamlfind.1.8.0 on macOS Sierra






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








8















I wanted to compile my project using command:



ocamlfind ocamlopt -package ocamlnet -package batteries -package unix -linkpkg oauth.ml


but I'm getting following error:



ocamlfind: Package `ocamlnet' not found
make: *** [oauth.cmi] Error 2


After some research on this problem I have read that there may be problem with packages installed via opam and packages installed before opam installation (in this case with ocamlfind) so I tried to check that and get stuck because ocamlfind is installed via opam. Does anybody know what may I try to do to solve that problem?



$ which ocamlfind
/home/user/.opam/4.00.1/bin/ocamlfind

$ opam list
Installed packages for 4.00.1:
[...]
ocamlfind 1.4.0 A library manager for OCaml
[...]


Thanks in advance.










share|improve this question






























    8















    I wanted to compile my project using command:



    ocamlfind ocamlopt -package ocamlnet -package batteries -package unix -linkpkg oauth.ml


    but I'm getting following error:



    ocamlfind: Package `ocamlnet' not found
    make: *** [oauth.cmi] Error 2


    After some research on this problem I have read that there may be problem with packages installed via opam and packages installed before opam installation (in this case with ocamlfind) so I tried to check that and get stuck because ocamlfind is installed via opam. Does anybody know what may I try to do to solve that problem?



    $ which ocamlfind
    /home/user/.opam/4.00.1/bin/ocamlfind

    $ opam list
    Installed packages for 4.00.1:
    [...]
    ocamlfind 1.4.0 A library manager for OCaml
    [...]


    Thanks in advance.










    share|improve this question


























      8












      8








      8


      5






      I wanted to compile my project using command:



      ocamlfind ocamlopt -package ocamlnet -package batteries -package unix -linkpkg oauth.ml


      but I'm getting following error:



      ocamlfind: Package `ocamlnet' not found
      make: *** [oauth.cmi] Error 2


      After some research on this problem I have read that there may be problem with packages installed via opam and packages installed before opam installation (in this case with ocamlfind) so I tried to check that and get stuck because ocamlfind is installed via opam. Does anybody know what may I try to do to solve that problem?



      $ which ocamlfind
      /home/user/.opam/4.00.1/bin/ocamlfind

      $ opam list
      Installed packages for 4.00.1:
      [...]
      ocamlfind 1.4.0 A library manager for OCaml
      [...]


      Thanks in advance.










      share|improve this question
















      I wanted to compile my project using command:



      ocamlfind ocamlopt -package ocamlnet -package batteries -package unix -linkpkg oauth.ml


      but I'm getting following error:



      ocamlfind: Package `ocamlnet' not found
      make: *** [oauth.cmi] Error 2


      After some research on this problem I have read that there may be problem with packages installed via opam and packages installed before opam installation (in this case with ocamlfind) so I tried to check that and get stuck because ocamlfind is installed via opam. Does anybody know what may I try to do to solve that problem?



      $ which ocamlfind
      /home/user/.opam/4.00.1/bin/ocamlfind

      $ opam list
      Installed packages for 4.00.1:
      [...]
      ocamlfind 1.4.0 A library manager for OCaml
      [...]


      Thanks in advance.







      ocaml ocamlfind






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 23 at 17:35







      Stephen Dedalus

















      asked Jan 3 '14 at 22:10









      Stephen DedalusStephen Dedalus

      17218




      17218






















          2 Answers
          2






          active

          oldest

          votes


















          18














          Do a:



          eval $(opam config env)


          That should fix the problem.



          # Edit 1:



          If it still does not work remove the dir



          /home/adam/.opam/4.00.1



          and try it again.






          share|improve this answer

























          • Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

            – Stephen Dedalus
            Jan 3 '14 at 22:18












          • I updated my answer.

            – TheNiceGuy
            Jan 3 '14 at 22:28











          • You probably meant eval $(opam config env).

            – Jonathan Protzenko
            Jan 3 '14 at 22:34











          • Argh yes of course. Forgot that. Thanks

            – TheNiceGuy
            Jan 3 '14 at 22:39






          • 1





            [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

            – Fabrice Le Fessant
            Jan 27 '14 at 15:52


















          2














          I'm making answer because of limit in comments and partial results I've made. Here is the result of 'grep -r 'ocamlnet' *' at '~/.opam' directory: http://pastebin.com/8cJqMXDY by looking at lines 1-90 we may conclude that there is actually no ocamlnet library at all (or I'm looking for it in wrong place - but as I wrote in comment everything were installed using opam - I'd be glad to hear some opinions on this subject). These suspicions may be partially confirmed in two ways:



          1. in fact in lines 1-90 we've all binaries of ocamlnet components (http://projects.camlcity.org/projects/dl/ocamlnet-3.7.3/doc/html-main/index.html)


          2. lines 90-* doesn't seem like something other than some files needed to manage this package using opam. E.g.



            ~/.opam/repo/default/packages/ocamlnet$ tree -r .
            .
            ├── ocamlnet.3.7.3
            │ ├── url
            │ ├── opam
            │ ├── files
            │ │ └── ocamlnet.install
            │ └── descr
            ├── ocamlnet.3.6.5
            │ ├── url
            │ ├── opam
            │ ├── files
            │ │ ├── ocamlnet.install
            │ │ ├── netpop.patch
            │ │ ├── nethttpd_types.patch
            │ │ └── cloexec.patch
            │ └── descr
            ├── ocamlnet.3.6.3
            │ ├── url
            │ ├── opam
            │ ├── files
            │ │ └── ocamlnet.install
            │ └── descr
            ├── ocamlnet.3.6.0
            │ ├── url
            │ ├── opam
            │ ├── files
            │ │ ├── ocamlnet-ocaml4.diff
            │ │ └── ocamlnet.install
            │ └── descr
            ├── ocamlnet.3.5.1
            │ ├── url
            │ ├── opam
            │ ├── files
            │ │ └── ocamlnet.install
            │ └── descr
            └── ocamlnet.3.2.1
            ├── url
            ├── opam
            ├── files
            │ └── ocamlnet.install
            └── descr


          I do not have a sufficiently large knowledge to go into it deeper but it looks for me like that ocamlnet become just a shortcut for a few another packages used by opam. Especially that after changing



          -package ocamlnet


          to exact module which I'm using



          -package netstring


          everything has compiled fine. I'm still open to any other solutions or explenations for the curious case of ocamlnet package (and Michael's hints) B).






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f20913618%2focamlfind-cannot-see-installed-package%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            18














            Do a:



            eval $(opam config env)


            That should fix the problem.



            # Edit 1:



            If it still does not work remove the dir



            /home/adam/.opam/4.00.1



            and try it again.






            share|improve this answer

























            • Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

              – Stephen Dedalus
              Jan 3 '14 at 22:18












            • I updated my answer.

              – TheNiceGuy
              Jan 3 '14 at 22:28











            • You probably meant eval $(opam config env).

              – Jonathan Protzenko
              Jan 3 '14 at 22:34











            • Argh yes of course. Forgot that. Thanks

              – TheNiceGuy
              Jan 3 '14 at 22:39






            • 1





              [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

              – Fabrice Le Fessant
              Jan 27 '14 at 15:52















            18














            Do a:



            eval $(opam config env)


            That should fix the problem.



            # Edit 1:



            If it still does not work remove the dir



            /home/adam/.opam/4.00.1



            and try it again.






            share|improve this answer

























            • Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

              – Stephen Dedalus
              Jan 3 '14 at 22:18












            • I updated my answer.

              – TheNiceGuy
              Jan 3 '14 at 22:28











            • You probably meant eval $(opam config env).

              – Jonathan Protzenko
              Jan 3 '14 at 22:34











            • Argh yes of course. Forgot that. Thanks

              – TheNiceGuy
              Jan 3 '14 at 22:39






            • 1





              [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

              – Fabrice Le Fessant
              Jan 27 '14 at 15:52













            18












            18








            18







            Do a:



            eval $(opam config env)


            That should fix the problem.



            # Edit 1:



            If it still does not work remove the dir



            /home/adam/.opam/4.00.1



            and try it again.






            share|improve this answer















            Do a:



            eval $(opam config env)


            That should fix the problem.



            # Edit 1:



            If it still does not work remove the dir



            /home/adam/.opam/4.00.1



            and try it again.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 3 '14 at 22:39

























            answered Jan 3 '14 at 22:14









            TheNiceGuyTheNiceGuy

            1,68942151




            1,68942151












            • Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

              – Stephen Dedalus
              Jan 3 '14 at 22:18












            • I updated my answer.

              – TheNiceGuy
              Jan 3 '14 at 22:28











            • You probably meant eval $(opam config env).

              – Jonathan Protzenko
              Jan 3 '14 at 22:34











            • Argh yes of course. Forgot that. Thanks

              – TheNiceGuy
              Jan 3 '14 at 22:39






            • 1





              [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

              – Fabrice Le Fessant
              Jan 27 '14 at 15:52

















            • Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

              – Stephen Dedalus
              Jan 3 '14 at 22:18












            • I updated my answer.

              – TheNiceGuy
              Jan 3 '14 at 22:28











            • You probably meant eval $(opam config env).

              – Jonathan Protzenko
              Jan 3 '14 at 22:34











            • Argh yes of course. Forgot that. Thanks

              – TheNiceGuy
              Jan 3 '14 at 22:39






            • 1





              [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

              – Fabrice Le Fessant
              Jan 27 '14 at 15:52
















            Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

            – Stephen Dedalus
            Jan 3 '14 at 22:18






            Unfortunatelly it's not doing anything: $ opam config env CAML_LD_LIBRARY_PATH="/home/adam/.opam/4.00.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; PERL5LIB="/home/adam/.opam/4.00.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/adam/.opam/4.00.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; MANPATH=":/home/adam/.opam/4.00.1/man"; export MANPATH; PATH="..."; export PATH; $ make [...] ocamlfind: Package `ocamlnet' not found make: *** [oauth.cmi] Error 2

            – Stephen Dedalus
            Jan 3 '14 at 22:18














            I updated my answer.

            – TheNiceGuy
            Jan 3 '14 at 22:28





            I updated my answer.

            – TheNiceGuy
            Jan 3 '14 at 22:28













            You probably meant eval $(opam config env).

            – Jonathan Protzenko
            Jan 3 '14 at 22:34





            You probably meant eval $(opam config env).

            – Jonathan Protzenko
            Jan 3 '14 at 22:34













            Argh yes of course. Forgot that. Thanks

            – TheNiceGuy
            Jan 3 '14 at 22:39





            Argh yes of course. Forgot that. Thanks

            – TheNiceGuy
            Jan 3 '14 at 22:39




            1




            1





            [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

            – Fabrice Le Fessant
            Jan 27 '14 at 15:52





            [ERROR] global-config does not define the variable lib is typical of being in a non-existent switch. Try opam switch 4.01.0 or something like that to switch back to an existing switch.

            – Fabrice Le Fessant
            Jan 27 '14 at 15:52













            2














            I'm making answer because of limit in comments and partial results I've made. Here is the result of 'grep -r 'ocamlnet' *' at '~/.opam' directory: http://pastebin.com/8cJqMXDY by looking at lines 1-90 we may conclude that there is actually no ocamlnet library at all (or I'm looking for it in wrong place - but as I wrote in comment everything were installed using opam - I'd be glad to hear some opinions on this subject). These suspicions may be partially confirmed in two ways:



            1. in fact in lines 1-90 we've all binaries of ocamlnet components (http://projects.camlcity.org/projects/dl/ocamlnet-3.7.3/doc/html-main/index.html)


            2. lines 90-* doesn't seem like something other than some files needed to manage this package using opam. E.g.



              ~/.opam/repo/default/packages/ocamlnet$ tree -r .
              .
              ├── ocamlnet.3.7.3
              │ ├── url
              │ ├── opam
              │ ├── files
              │ │ └── ocamlnet.install
              │ └── descr
              ├── ocamlnet.3.6.5
              │ ├── url
              │ ├── opam
              │ ├── files
              │ │ ├── ocamlnet.install
              │ │ ├── netpop.patch
              │ │ ├── nethttpd_types.patch
              │ │ └── cloexec.patch
              │ └── descr
              ├── ocamlnet.3.6.3
              │ ├── url
              │ ├── opam
              │ ├── files
              │ │ └── ocamlnet.install
              │ └── descr
              ├── ocamlnet.3.6.0
              │ ├── url
              │ ├── opam
              │ ├── files
              │ │ ├── ocamlnet-ocaml4.diff
              │ │ └── ocamlnet.install
              │ └── descr
              ├── ocamlnet.3.5.1
              │ ├── url
              │ ├── opam
              │ ├── files
              │ │ └── ocamlnet.install
              │ └── descr
              └── ocamlnet.3.2.1
              ├── url
              ├── opam
              ├── files
              │ └── ocamlnet.install
              └── descr


            I do not have a sufficiently large knowledge to go into it deeper but it looks for me like that ocamlnet become just a shortcut for a few another packages used by opam. Especially that after changing



            -package ocamlnet


            to exact module which I'm using



            -package netstring


            everything has compiled fine. I'm still open to any other solutions or explenations for the curious case of ocamlnet package (and Michael's hints) B).






            share|improve this answer





























              2














              I'm making answer because of limit in comments and partial results I've made. Here is the result of 'grep -r 'ocamlnet' *' at '~/.opam' directory: http://pastebin.com/8cJqMXDY by looking at lines 1-90 we may conclude that there is actually no ocamlnet library at all (or I'm looking for it in wrong place - but as I wrote in comment everything were installed using opam - I'd be glad to hear some opinions on this subject). These suspicions may be partially confirmed in two ways:



              1. in fact in lines 1-90 we've all binaries of ocamlnet components (http://projects.camlcity.org/projects/dl/ocamlnet-3.7.3/doc/html-main/index.html)


              2. lines 90-* doesn't seem like something other than some files needed to manage this package using opam. E.g.



                ~/.opam/repo/default/packages/ocamlnet$ tree -r .
                .
                ├── ocamlnet.3.7.3
                │ ├── url
                │ ├── opam
                │ ├── files
                │ │ └── ocamlnet.install
                │ └── descr
                ├── ocamlnet.3.6.5
                │ ├── url
                │ ├── opam
                │ ├── files
                │ │ ├── ocamlnet.install
                │ │ ├── netpop.patch
                │ │ ├── nethttpd_types.patch
                │ │ └── cloexec.patch
                │ └── descr
                ├── ocamlnet.3.6.3
                │ ├── url
                │ ├── opam
                │ ├── files
                │ │ └── ocamlnet.install
                │ └── descr
                ├── ocamlnet.3.6.0
                │ ├── url
                │ ├── opam
                │ ├── files
                │ │ ├── ocamlnet-ocaml4.diff
                │ │ └── ocamlnet.install
                │ └── descr
                ├── ocamlnet.3.5.1
                │ ├── url
                │ ├── opam
                │ ├── files
                │ │ └── ocamlnet.install
                │ └── descr
                └── ocamlnet.3.2.1
                ├── url
                ├── opam
                ├── files
                │ └── ocamlnet.install
                └── descr


              I do not have a sufficiently large knowledge to go into it deeper but it looks for me like that ocamlnet become just a shortcut for a few another packages used by opam. Especially that after changing



              -package ocamlnet


              to exact module which I'm using



              -package netstring


              everything has compiled fine. I'm still open to any other solutions or explenations for the curious case of ocamlnet package (and Michael's hints) B).






              share|improve this answer



























                2












                2








                2







                I'm making answer because of limit in comments and partial results I've made. Here is the result of 'grep -r 'ocamlnet' *' at '~/.opam' directory: http://pastebin.com/8cJqMXDY by looking at lines 1-90 we may conclude that there is actually no ocamlnet library at all (or I'm looking for it in wrong place - but as I wrote in comment everything were installed using opam - I'd be glad to hear some opinions on this subject). These suspicions may be partially confirmed in two ways:



                1. in fact in lines 1-90 we've all binaries of ocamlnet components (http://projects.camlcity.org/projects/dl/ocamlnet-3.7.3/doc/html-main/index.html)


                2. lines 90-* doesn't seem like something other than some files needed to manage this package using opam. E.g.



                  ~/.opam/repo/default/packages/ocamlnet$ tree -r .
                  .
                  ├── ocamlnet.3.7.3
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.6.5
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ ├── ocamlnet.install
                  │ │ ├── netpop.patch
                  │ │ ├── nethttpd_types.patch
                  │ │ └── cloexec.patch
                  │ └── descr
                  ├── ocamlnet.3.6.3
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.6.0
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ ├── ocamlnet-ocaml4.diff
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.5.1
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  └── ocamlnet.3.2.1
                  ├── url
                  ├── opam
                  ├── files
                  │ └── ocamlnet.install
                  └── descr


                I do not have a sufficiently large knowledge to go into it deeper but it looks for me like that ocamlnet become just a shortcut for a few another packages used by opam. Especially that after changing



                -package ocamlnet


                to exact module which I'm using



                -package netstring


                everything has compiled fine. I'm still open to any other solutions or explenations for the curious case of ocamlnet package (and Michael's hints) B).






                share|improve this answer















                I'm making answer because of limit in comments and partial results I've made. Here is the result of 'grep -r 'ocamlnet' *' at '~/.opam' directory: http://pastebin.com/8cJqMXDY by looking at lines 1-90 we may conclude that there is actually no ocamlnet library at all (or I'm looking for it in wrong place - but as I wrote in comment everything were installed using opam - I'd be glad to hear some opinions on this subject). These suspicions may be partially confirmed in two ways:



                1. in fact in lines 1-90 we've all binaries of ocamlnet components (http://projects.camlcity.org/projects/dl/ocamlnet-3.7.3/doc/html-main/index.html)


                2. lines 90-* doesn't seem like something other than some files needed to manage this package using opam. E.g.



                  ~/.opam/repo/default/packages/ocamlnet$ tree -r .
                  .
                  ├── ocamlnet.3.7.3
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.6.5
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ ├── ocamlnet.install
                  │ │ ├── netpop.patch
                  │ │ ├── nethttpd_types.patch
                  │ │ └── cloexec.patch
                  │ └── descr
                  ├── ocamlnet.3.6.3
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.6.0
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ ├── ocamlnet-ocaml4.diff
                  │ │ └── ocamlnet.install
                  │ └── descr
                  ├── ocamlnet.3.5.1
                  │ ├── url
                  │ ├── opam
                  │ ├── files
                  │ │ └── ocamlnet.install
                  │ └── descr
                  └── ocamlnet.3.2.1
                  ├── url
                  ├── opam
                  ├── files
                  │ └── ocamlnet.install
                  └── descr


                I do not have a sufficiently large knowledge to go into it deeper but it looks for me like that ocamlnet become just a shortcut for a few another packages used by opam. Especially that after changing



                -package ocamlnet


                to exact module which I'm using



                -package netstring


                everything has compiled fine. I'm still open to any other solutions or explenations for the curious case of ocamlnet package (and Michael's hints) B).







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 4 '14 at 10:54

























                answered Jan 4 '14 at 10:28









                Stephen DedalusStephen Dedalus

                17218




                17218



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f20913618%2focamlfind-cannot-see-installed-package%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

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript