-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheigensoftInstall.sh
More file actions
executable file
·29 lines (23 loc) · 995 Bytes
/
eigensoftInstall.sh
File metadata and controls
executable file
·29 lines (23 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
. /shared/spack/share/spack/setup-env.sh
# This line is a point of failure if multiple versions of either gsl or
# openblas are installed for some reason.
spack load gsl openblas
# The paths for the dependencies must be added to PATH environment variables so
# that the compiler can properly find them. It's not clear why this doesn't
# happen by default in Spack, but doing it this way allows the software to be
# set up. If this isn't done, the build process complains about missing
# libraries and/or files when it tries to compile Eigensoft.
DEPENDENCIES=("gsl" "openblas")
for dep in "${DEPENDENCIES[@]}"; do
locationLine=($(spack find -p "$dep" | grep "$dep"))
depLocation="${locationLine[1]}"
libLocation="${depLocation}/lib"
incLocation="${depLocation}/include"
export LIBRARY_PATH="$libLocation:$LIBRARY_PATH"
export C_INCLUDE_PATH="$incLocation:$C_INCLUDE_PATH"
done
git clone https://github.com/DReichLab/EIG.git
cd EIG/src
make
make install