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

`brew install infer` error while updating infer

I recently updated facebook infer on my work laptop, and am trying to update infer on my personal laptop. It installed without an issue on my work laptop, but I am getting an error (see below) on my personal laptop. Both have opam 1.2.2 and ocaml…
lgdroid57
  • 699
  • 14
  • 29
4
votes
3 answers

Unable to install core and utop for OCaml on Ubuntu 14.04 with OPAM

I have been trying to set up OCaml, OPAM, related libraries and UTOP on Ubuntu 14.04 based on instructions from Real World OCaml. I have currently managed to install OCaml compilers and OPAM. However, when trying to install core and UTOP, I get the…
4
votes
1 answer

Make compatible ocaml, camlp4, ppx, node, js_of_ocaml, ocamlbuild

After installing npm and node, compiling OCaml files with js_of_ocaml gave errors, thus I did opam switch reinstall system: :testweb $ opam switch reinstall system Your system compiler has been changed. Do you want to upgrade your OPAM installation…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
4
votes
3 answers

How to list current package versions in OPAM?

opam list -a lists all packages currently available at OPAM, but does not display the version number for packages which are not currently installed, as per the opam list --help output: (...) the output format displays one package per line, and each…
anol
  • 8,264
  • 3
  • 34
  • 78
4
votes
1 answer

Use OUnit module in OCaml - Unbound module OUnit error

I'm trying to use OUnit with OCaml. The unit code source (unit.ml) is as follows: open OUnit let empty_list = [] let list_a = [1;2;3] let test_list_length _ = assert_equal 1 (List.length empty_list); assert_equal 3 (List.length list_a) (*…
prosseek
  • 182,215
  • 215
  • 566
  • 871
4
votes
1 answer

Using opam from behind a firewall

I'm wondering what I need to setup so that opam will download packages through a proxy server if I'm behind a firewall.
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
4
votes
1 answer

Switch environment in OPAM

Is this possible to have several development environments, which share the same compiler? Actually, I want to use 4.00.1+short-types compiler with different set of installed packages, and the possibility to easily switch between these environments.…
Stas
  • 11,571
  • 9
  • 40
  • 58
4
votes
1 answer

Installed ocamlfind (findlib), but never can find any extra package in Mac

Just got a new Mac, Mountain Lion and I wish to make all ocaml related stuff set up. I used the following commands: opam switch 4.00.1 opam install findlib opam install batteries All are installed successfully without errors. But I can't use…
Jackson Tale
  • 25,428
  • 34
  • 149
  • 271
4
votes
2 answers

How to install Cohttp with lwt support?

Running opam install cohttp does not provide me with cohttp.lwt in findlib. Am I missing a command line option to install with lwt support?
rgrinberg
  • 9,638
  • 7
  • 27
  • 44
3
votes
1 answer

What is OPAM's shell hook?

During initialization of OPAM I got this message: A hook can be added to opam's init scripts to ensure that the shell remains in sync with the opam environment when they are loaded. Set that up? [y/N] Could you clarify what does this…
ged
  • 687
  • 7
  • 19
3
votes
0 answers

OCaml: dune missing library, opam says its there

I have a dependency called 'sets', which has been build in a local directory 'dep/sets'. opam list gives the following: sets 1.0.0 pinned to version 1.0.0 at file:///... opam pin gives: sets.1.0.0 rsync file:///... But dune utop gives Error:…
vcapra1
  • 1,988
  • 3
  • 26
  • 45
3
votes
1 answer

lablgtk can't find gtk+ 2.0 on Mac

I want to install lablgtk on my mac to use some software who needs it. I try to install it with opam install lablgtk but at the make world I got this error : => This package requires gtk+ 2.0 development packages installed on your system => To solve…
Jack
  • 405
  • 4
  • 11
3
votes
1 answer

"require: cannot load such file -- mach" with when installing opam with Homebrew

I am trying to install OPAM with the ultimate goal of installing OCAML. I tried to run brew install OPAM and I got this error: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in…
Midi_
  • 209
  • 6
  • 16
3
votes
1 answer

Detecting target architecture in OPAM build

When writing an OPAM package configuration file, I can specify the target platform in the build field, like so: build: [ ["./configure" "build-linux" {os = "linux"} "build-macosx" {os = "darwin"} "build-cygwin"…
Arets Paeglis
  • 3,856
  • 4
  • 35
  • 44
3
votes
1 answer

Trouble with OPAM: External solver failure

Trying to develop with OCaml on Arch Linux 4.12.10, I keep running into this error message: ### stderr ### # error: executing gringo failed (No such file or directory) # error: gringo returned with non-zero exit status [ERROR] External solver…
Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
1 2
3
19 20