mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
Add ZMQ before ocaml install
This commit is contained in:
parent
7f65192e68
commit
e223b1b7e4
2
configure
vendored
2
configure
vendored
@ -52,7 +52,7 @@ QP_ROOT_INSTALL = join(QP_ROOT, "install")
|
|||||||
os.environ["PATH"] = os.environ["PATH"] + ":" + QP_ROOT_BIN
|
os.environ["PATH"] = os.environ["PATH"] + ":" + QP_ROOT_BIN
|
||||||
|
|
||||||
d_dependency = {
|
d_dependency = {
|
||||||
"ocaml": ["m4", "curl", "zlib", "patch", "gcc"],
|
"ocaml": ["m4", "curl", "zlib", "patch", "gcc", "zeromq"],
|
||||||
"m4": ["make"],
|
"m4": ["make"],
|
||||||
"curl": ["make"],
|
"curl": ["make"],
|
||||||
"zlib": ["gcc", "make"],
|
"zlib": ["gcc", "make"],
|
||||||
|
@ -7,13 +7,29 @@ cd -
|
|||||||
# Normal installation
|
# Normal installation
|
||||||
PACKAGES="core cryptokit ocamlfind sexplib ZMQ"
|
PACKAGES="core cryptokit ocamlfind sexplib ZMQ"
|
||||||
|
|
||||||
|
# Needed for ZeroMQ
|
||||||
|
export C_INCLUDE_PATH="${QP_ROOT}"/lib:"${C_INCLUDE_PATH}"
|
||||||
|
export LIBRARY_PATH="${QP_ROOT}"/lib:"${LIBRARY_PATH}"
|
||||||
|
export LD_LIBRARY_PATH="${QP_ROOT}"/lib:"${LD_LIBRARY_PATH}"
|
||||||
|
|
||||||
declare -i i
|
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)
|
i=$(gcc -dumpversion | cut -d '.' -f 2)
|
||||||
if [[ i -lt 6 ]]
|
if [[ i -lt 6 ]]
|
||||||
then
|
then
|
||||||
echo "GCC version $(gcc -dumpversion) too old. GCC >= 4.6 required."
|
echo "GCC version $(gcc -dumpversion) too old. GCC >= 4.6 required."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -d ${HOME}/.opam ]]
|
if [[ -d ${HOME}/.opam ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user