-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·50 lines (42 loc) · 1.15 KB
/
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
41
42
43
44
45
46
47
#!/bin/bash
# set -x
read -r -p "Do you want to install the DPDK version? [y/N]: " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y) ]]; then
(cd includes && ./setup_includes.sh -d)
make dpdk
else
(cd includes && ./setup_includes.sh)
make
fi
read -r -p "Do you also want to install thrift? [y/N]: " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y) ]]; then
sudo apt-get install -y libglib2.0-dev
cd includes/thrift
git submodule update --init .
./bootstrap.sh
./configure --without-cpp
cd ../..
make thrift-all
fi
read -r -p "Do you also want to install arrow? [y/N]: " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y) ]]; then
sudo apt-get install -y cmake \
libboost-dev \
libboost-filesystem-dev \
libboost-system-dev \
libbenchmark-dev \
libgtest-dev
cd includes/arrow/
git submodule update --init .
cd cpp
mkdir debug
cd debug
cmake -DARROW_BUILD_BENCHMARKS=ON -DARROW_BLUEBRIDGE=ON ..
make unittest
cd ../..
fi
sudo chown -R $USER:$USER ~
echo "All done! You are good to go!"