-
Notifications
You must be signed in to change notification settings - Fork 0
/
docForAladdin.txt
executable file
·102 lines (57 loc) · 1.79 KB
/
docForAladdin.txt
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#this doc is for ubuntu 14.04
sudo service polipo restart
#polipo port: 8123
#here we mkdir gem5_aladdin in /Desktop and will config everything in that
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar -xzvf boost_1_55_0.tar.gz
cd boost_1_55_0
#must set in bashrc
export BOOST_ROOT='/your/path/to/boost_1_55_0/'
#in this case:
#export BOOST_ROOT='/home/parmida/Desktop/gem5_aladdin/boost_1_55_0/'
cd /home/parmida/Desktop/gem5_aladdin/boost_1_55_0/
./bootstrap.sh
mkdir build
./b2 --build-dir=./build --with-graph --with-regex
#check for gcc version
gcc -v
sudo apt install llvm-3.4
sudo apt install llvm-3.4-dev
sudo apt install clang-3.4
sudo apt install libclang-3.4-dev
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -xvzf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr/local/zlib
make
sudo make install
sudo apt-get install libz-dev
cd ..
#gem5_aladdin
git clone https://github.com/ysshao/LLVM-Tracer
cd LLVM-Tracer/
sudo apt install cmake
sudo apt-get install libncurses-dev
mkdir build/
cd build
cmake ..
##if cmake did not work
##begin
sudo updatedb
locate libncurses.so
locate curses.h
#in: <cmake source dir>/Modules/FindCurses.cmake, we write these 2 lines above all code
set(CURSES_INCLUDE_PATH "/usr/include")
set(CURSES_LIBRARY "/usr/lib/x86_64-linux-gnu/libncurses.so")
#the 2 above are the answers for the 2 locates in the same order
##end
make
sudo make install
#building aladdin
git clone https://github.com/harvard-acc/gem5-aladdin
#again in ~/.bashrc
export ALADDIN_HOME="path to aladdin"
git submodule update --init --recursive
sudo apt install protobuf-compiler
sudo apt install python-dev
sudo apt install scones