10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-07-25 20:27:26 +02:00
qmcchem/install/scripts/install_ocaml_zmq.sh

22 lines
280 B
Bash
Raw Normal View History

2015-12-18 22:25:32 +01:00
#!/bin/bash -x
set -e
set -u
declare -i i
i=$(gcc -dumpversion | cut -d '.' -f 2)
if [[ i -lt 6 ]]
then
echo "GCC version $(gcc -dumpversion) too old. GCC >= 4.6 required."
exit 1
fi
set +u
source ../qmcchemrc
set -u
opam install zmq
rm -f _build/ocaml_zmq.log
exit 0