mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-11-19 20:42:20 +01:00
40 lines
747 B
Bash
Executable File
40 lines
747 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
|
set -e
|
|
set -u
|
|
|
|
|
|
# Check GCC version
|
|
declare -i i
|
|
i=$(gcc -dumpversion | cut -d '.' -f 1)
|
|
if [[ i -lt 4 ]]
|
|
then
|
|
echo "GCC version $(gcc -dumpversion) too old. GCC >= 4.6 required."
|
|
exit 1
|
|
fi
|
|
|
|
if [[ i -eq 4 ]]
|
|
then
|
|
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
|
|
fi
|
|
# End check GCC version
|
|
|
|
|
|
set +u
|
|
source "${QMCCHEM_PATH}"/qmcchemrc
|
|
export C_INCLUDE_PATH="${QMCCHEM_PATH}/lib":$C_INCLUDE_PATH
|
|
export LIBRARY_PATH="${QMCCHEM_PATH}/lib":$LIBRARY_PATH
|
|
export LD_LIBRARY_PATH="${QMCCHEM_PATH}/lib":$LD_LIBRARY_PATH
|
|
set -u
|
|
opam install zmq conf-zmq
|
|
rm -f _build/ocaml_zmq.log
|
|
exit 0
|
|
|
|
|