| Newsgroups |
gmane.comp.lang.ocaml.beginners |
| Message-ID |
<[email protected]> |
OPAM needs OCaml to be built and it’s also recommended to use an external solver so that’s likely another dependency. These should just be taken care of when you try to install OPAM (e.g. on a Mac, this happens when I do `brew install opam`).
The version of OCaml that is installed this way is treated as the ‘system' version. You can install other versions of OCaml using OPAM (e.g look at the `opam switch` command). From then on, you can stay within OPAM’s universe (while periodically keeping your install of OPAM - and the system version of OCaml - up to date via aptitude).
https://opam.ocaml.org/doc/Usage.html
Hope that helps,
Amir
> On 15 Aug 2015, at 14:46, Hendrik Boom [email protected] [ocaml_beginners] <[email protected]> wrote:
>
> On https://ocaml.org/docs/install.html it says:
>
> OPAM
>
> OPAM is a package manager for OCaml. It is the recommended method to
> install the OCaml compiler and OCaml packages.
>
> Nice. One specialised installer to install everything ocaml, which
> enables me to keep things more up-to-date than my distro might.
>
> And on https://opam.ocaml.org/doc/Install.html it says the preferred way
> to install opam is from my distro's package repository.
>
> So thats the bootstrap mechanism.
>
> But when I ask aptitude to install opam, it also installs a huge number
> of other packages, such as ocaml. Not surprising, because opam installs
> packages from source.
>
> This would seem to put ocaml, and all those other packages outside the
> scope of opam. Too late to install ocaml using opam.
>
> If I persist in using opam to install ocamland other libraries, how do
> I distinguish the two installations -- the one by opam and the one
> from aptitude?
>
> -- hendrik
>
>
>