-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall.sh
executable file
·40 lines (35 loc) · 938 Bytes
/
install.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
32
33
34
35
36
37
38
39
40
if [[ `basename $PWD` != "aQGC" ]]; then echo "Execute from aQGC dir"; exit; fi
baseDir=$PWD
source setup.sh
#MadGraph
wget https://launchpad.net/mg5amcnlo/3.0/3.1.x/+download/MG5_aMC_v3.1.1.tar.gz
tar -xzvf MG5_aMC_v3.1.1.tar.gz
if [[ $? -ne 0 ]]; then
echo "ERROR getting madgraph"
exit
fi
rm MG5_aMC_v3.1.1.tar.gz
#Pythia
wget https://pythia.org/download/pythia83/pythia8306.tgz
tar -xzvf pythia8306.tgz
rm pythia8306.tgz
cd pythia8306
./configure --prefix=$baseDir
make -j
make install
if [[ $? -ne 0 ]]; then
echo "ERROR compiling pythia"
exit
fi
cd ..
#Delphes
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${baseDir}/lib
export PYTHIA8=$baseDir
git clone https://github.com/delphes/delphes.git
cd delphes
make HAS_PYTHIA8=true -j -I${baseDir}/include/Pythia8
if [[ $? -ne 0 ]]; then
echo "ERROR compiling delphes"
exit
fi
#echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${baseDir}/lib" >> ~/.bash_profile