-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrln_mac_compile.sh
31 lines (26 loc) · 917 Bytes
/
rln_mac_compile.sh
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
30
31
#!/bin/bash
# Run this script in the directory you want to clone the relion repo
# Check the brew installed gcc version and edit ENV flags accordingly
# Check path to openMPI and edit ENV flags accordingly
# Edit cmake line with favourite DCMAKE flags, but since this is going
# to be installed on a Mac, it shouldnt matter too much.
# Instructions obtained from
# https://blogs.urz.uni-halle.de/kastritislab/2019/06/installation-of-relion-3-on-our-macos/
# and modified by Pranav NM Shah 29.10.2021
VERSION=$1
INSTALLDIR=`realpath ${VERSION}`
export CXX=g++-11
export CC=gcc-11
export OMPI_CXX=g++-11
export OMPI_CC=gcc-11
export CXXFLAGS="-I/opt/homebrew/opt/openmpi/include"
export LDFLAGS="-L/opt/homebrew/opt/openmpi/lib"
git clone https://github.com/3dem/relion.git
cd relion
git pull
git checkout ver$VERSION
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${INSTALLDIR} ../
make -j 8
make install