OPAM is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
module avail opam
module load opam/1.2.0
man opam
git clone https://github.com/ocaml/opam.git cd opam sudo mkdir -p /export/apps/opam/1.2.0/ sudo chown -R joguya:joguya /export/apps/opam/1.2.0/ git checkout rebuild ./configure --prefix=/export/apps/opam/1.2.0/ make lib-ext make make install sudo chown -R root:root /export/apps/opam/1.2.0/
#%Module1.0
#####################################################################
##
## Opam Modulefile
## By James Oguya, j.oguya@cgiar.org
## November, 2014
##
set appname opam
set version 1.2.0
set prefix /export/apps/${appname}/${version}
set exec_prefix ${prefix}/bin
set url "https://opam.ocaml.org/"
set msg "OPAM is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.\nOpam Official Site: $url\n"
module-whatis $msg
proc ModulesHelp { } {
puts stderr "$msg"
}
conflict opam
prepend-path PATH ${exec_prefix}
# opam depends on ocaml module
if { ![is-loaded ocaml] } {
module load ocaml
}
ansible-playbook site.yml -u joguya -K -s --limit=compute --tags=module