mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2025-01-02 09:35:39 +01:00
Update install_ocaml.sh
This commit is contained in:
parent
e1a532f578
commit
8313af10ac
@ -4,7 +4,7 @@ set -u
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
||||||
PACKAGES="cryptokit ocamlbuild getopt ocamlfind sexplib.v0.11.0 ppx_sexp_conv ppx_deriving"
|
PACKAGES="cryptokit ocamlbuild getopt ocamlfind sexplib ppx_sexp_conv ppx_deriving"
|
||||||
|
|
||||||
# return 0 if program version is equal or greater than check version
|
# return 0 if program version is equal or greater than check version
|
||||||
check_version () {
|
check_version () {
|
||||||
@ -91,7 +91,7 @@ export LD_LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LD_LIBRARY_PATH}"
|
|||||||
export LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LIBRARY_PATH}"
|
export LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LIBRARY_PATH}"
|
||||||
export C_INCLUDE_PATH="${QMCCHEM_PATH}/lib:${C_INCLUDE_PATH}"
|
export C_INCLUDE_PATH="${QMCCHEM_PATH}/lib:${C_INCLUDE_PATH}"
|
||||||
set -u
|
set -u
|
||||||
opam install --unlock-base ${PACKAGES}
|
opam install -y --unlock-base ${PACKAGES} || exit 3
|
||||||
rm "${QMCCHEM_PATH}"/install/_build/ocaml.log
|
rm "${QMCCHEM_PATH}"/install/_build/ocaml.log
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user