Questions tagged [opam]

OPAM is the standard tool to manage OCaml source packages

OPAM is the standard tool to manage (search, install, remove) OCaml source packages. It is being developed by OCamlPro, with funding by Jane Street and the European Union.

OPAM website is:

http://opam.ocamlpro.com/

The website includes both easy to install binaries for Linux, links to the sources on GitHub and a repository of source packages for many OCaml libraries and applications.

292 questions
62
votes
2 answers

OCaml and Opam: unbound module Core

I'm trying to get an OCaml environment set up, and I've followed the instructions from appendix A of the Real World OCaml beta. I set up opam, and installed a version of OCaml with the command $ opam switch 4.01.0dev+trunk which passed fine. I then…
bstamour
  • 7,746
  • 1
  • 26
  • 39
29
votes
1 answer

llvm OCaml bindings

I'm working on llvm OCaml bindings. I installed llvm package through opam (opam install llvm), when I use llvm in utop, I get the following error: #require "llvm";; Error: The external function 'llvm_global_succ' is not available. The opam llvm…
xysun
  • 1,995
  • 18
  • 18
19
votes
1 answer

Using Opam to manage project dependencies

I am a complete newbie to OCaml. Other languages I have used (for instance Scala, Clojure, Javascript on Node.js) have package managers that allow one to start a project as a clean slate that has a declared set of dependencies of known versions. I…
Andrea
  • 20,253
  • 23
  • 114
  • 183
16
votes
1 answer

How to install a specific version of ocaml compiler with opam

How can I install a specific version of ocaml compiler (and compatible packages) using opam (or another package manger)? I took a quick look through the opam documentation, but I don't find a relevant information. I need ocaml compiler (preferably…
norio
  • 3,652
  • 3
  • 25
  • 33
15
votes
3 answers

How can I install OCaml with OPam on windows?

How can I install OCaml with OPam on windows?
pinkdolphin
  • 303
  • 1
  • 3
  • 7
10
votes
4 answers

OCaml: Can't run utop after installing it

I'm trying to learn OCaml through the Real World OCaml book. They have a guide by which I am supposed to install the Core package and utop. However, while I seem to be successfully installing both of these using Opam, neither of them works when I…
akim330
  • 188
  • 1
  • 1
  • 7
9
votes
1 answer

How to install corebuild in ocaml

I have installed opam, and after this I can access ocaml, ocamlc, buildocaml successfully. But I am reading Real World OCaml which is asking me to run a tool called corebuild. I am not able to install (or run) corebuild. If I search for sudo find /…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
8
votes
1 answer

How to use apt-get install in docker when there is a Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) issue safely?

I want to run opam init in docker but get the error: (iit_synthesis) brandomiranda~ ❯ docker build -t brandojazz/pycoq:test_brando ~/pycoq/tutorial/ [+] Building 1.5s (12/19) …
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
7
votes
2 answers

ocamlfind: command not found

I'm running into an issue installing a package that's reliant on ocamlfind. I'm getting an ocamlfind: command not found error when running make. I have installed ocamlfind with the OCaml package manager and have tried reinstalling using opam…
Bard117
  • 233
  • 1
  • 3
  • 10
7
votes
1 answer

How to install from a specific git branch with OPAM

I have a project, which offers different features in different git branches. I believe, this is mostly done to simplify external dependencies (that is someone who wants to work with sqlite will not depend on modules for mysql and so on).…
everiq
  • 149
  • 6
7
votes
2 answers

Ocamlbuild and Packages installed via Opam

I'm trying to make this piece of code: open Lwt;; open Cohttp;; (* a simple function to access the content of the response *) let content = function | Some (_, body) -> Cohttp_lwt_unix.Body.string_of_body body (* launch both requests in…
Lilluda 5
  • 1,111
  • 3
  • 18
  • 38
6
votes
0 answers

How does one automatically make a `COQ_PROJ.opam` install script automatically from a Coq Project/Package?

I have a very long list of coq projects I want to automatically install with opam pin/install. I'd like to install them with opam because I am using this python tool (PyCoq) that uses opam pin/install. How can I automatically create a COQ_PROJ.opam…
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
6
votes
4 answers

opam init failure upon attempted OCaml installation on MacOS 10.14.16

I am attempting to install OCaml via the OCaml opam package manager on MacOs. I have successfully installed opam via homebrew. Initiating the package manager with opam init yields the following error: [ERROR] Could not update repository "default": …
6
votes
1 answer

OPAM: how to locally reinstall a package without re-downloading it?

I want to locally recompile/reinstall a package that has already been downloaded via OPAM, but without downloading it again. opam reinstall seems to always re-download the package, and I see no option to disable it. Here are a few reasons one might…
anol
  • 8,264
  • 3
  • 34
  • 78
6
votes
1 answer

Basic Oasis or Opam file for a simple OCaml project

I am a new OCaml user. I have asked a question to learn how to set up a basic OCaml project, but I still have issues. Jump to the end for a TL;DR For instance, I am trying to learn Irmin. On the home page of Irmin I see I have to do opam install…
Andrea
  • 20,253
  • 23
  • 114
  • 183
1
2 3
19 20