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
3
votes
1 answer

Error installing Frama-C with opam (Ubuntu 14.04 LTS)

Trying to install Frama-C with the recommended opam method gives the following error: ### stdout ### # Cleaning Installation directory # Installing WP shared files ### stderr ### # /bin/sh: 1: src/plugins/wp/share/instwp: not found # make: ***…
Spearman
  • 149
  • 6
3
votes
3 answers

Unable to install ctypes using opam

I wish to install ctypes on my Ubuntu 14.04 computer. I am trying to do so using opam but its failing. Here's the response that I get :- opam install ctypes The following actions will be performed: ∗ install conf-ncurses 1 …
ameyask
  • 255
  • 1
  • 9
3
votes
1 answer

Standard .ocamlinit configuration

I thought I set this up correctly, like explained on realworldocaml, but when I try to do open Core;; I get Unbound module Core I think this is related to .ocamlinit, but I don't know what else should I add / remove from it. #use…
icebp
  • 1,608
  • 1
  • 14
  • 24
3
votes
3 answers

utop error: No such package: sexplib.syntax - required by `core.syntax'

I'm trying to set up an emacs ocaml environment following the Real World Ocaml instructions here, but when I start utop I get the error: No such package: sexplib.syntax - required by `core.syntax' If I run: ocamlfind list | grep sexp from the…
BillyBadBoy
  • 552
  • 3
  • 18
3
votes
2 answers

Ocaml can't find Unix module

I (re-)installed Ocaml on OS X using the following steps: > brew uninstall ocaml > brew uninstall opam > brew install ocaml > brew install opam > opam init > eval `opam config env` > opam switch 4.02.1 > opam install batteries core I then tried to…
dalastboss
  • 225
  • 2
  • 8
3
votes
2 answers

How to build a Xen unikernel of Mirage OS

I read this document(http://openmirage.org/wiki/hello-world) and tried to build a xen unikernel as follows: mirage configure --xen make depend make But failed at compilation: ocamlbuild -classic-display -use-ocamlfind -pkgs…
garasubo
  • 85
  • 7
3
votes
1 answer

Is it possible to make an opam "sandbox"?

I have two ocaml projects being compiled with ocaml 4.02.1. Is there a way to create separate opam installations for each project instead of having both projects install their dependencies in the global 4.02.1 opam switch?
hugomg
  • 68,213
  • 24
  • 160
  • 246
3
votes
1 answer

Managing dynamic dependencies in OCaml

Imagine a library in OCaml which might need to store its data somewhere. This persistence layer can be implemented with different libraries (sqlite, MySQL, PostgreSQL and so on). And depending on the concrete technology of the storage, it may offer…
everiq
  • 149
  • 6
3
votes
3 answers

opam upgrade wants to downgrade a bunch of packages

I just tried an 'opam upgrade' and got (the final summary): 1 to install | 59 to reinstall | 3 to upgrade | 34 to downgrade | 0 to remove Do you want to continue ? [Y/n] Downgrading 34 packages makes me nervous. Why would it want to do this? Some…
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
3
votes
0 answers

Opam installation error from source

The following error was obtained while installing opam from source make -C ocp-build make[1]: Entering directory `/home/14810/opam-master/ocp-build' make[1]: `ocp-build' is up to date. make[1]: Leaving directory…
nu11p01n73R
  • 26,397
  • 3
  • 39
  • 52
3
votes
1 answer

Opam is always locked by a lock file

I am having trouble with opam and lock files. chris@chris:~$ opam upgrade Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (0/5) Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock".…
Lilluda 5
  • 1,111
  • 3
  • 18
  • 38
3
votes
1 answer

Enable debugging in opam packages

For a school project, I'm using Jane Street's Core and Async libraries. I'm trying to debug a problem with a bind Unix syscall, so I run ocamldebug myprogram. This stops when the exception is raised (Unix.Unix_error), but upon backstepping I get the…
Miles Yucht
  • 538
  • 5
  • 12
3
votes
2 answers

opam install cryptokit failed

I have had no problem installing any OCaml packages via opam in the past. However I am unable to install Cryptokit. I am using the command: $ opam install cryptokit and I recieve the following error messages (I am unsure what they mean and…
Thomas
  • 347
  • 3
  • 19
3
votes
1 answer

ocp-build.conf syntax for multiple worker processes?

I'd like to configure my OCaml OPAM builds to run multiple worker processes in parallel. There's actually a ticket on the OPAM github for this https://github.com/OCamlPro/opam/issues/310 which says I just need to write an ocp-build.conf file. …
Wang
  • 3,247
  • 1
  • 21
  • 33
3
votes
1 answer

Installation of camlimages with OPAM

I'm trying to install the module camlimages with opam. When I launch opam install camlimages in my shell, the compilation of camlimages failed and I have this message : * pngwrite.c: In function ‘write_png_file_rgb’: * pngwrite.c:65: error:…
afk
  • 563
  • 2
  • 5
  • 12