forked from minhlucvan/strategy-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_debian.sh
38 lines (31 loc) · 953 Bytes
/
install_debian.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
mkdir app
cd app
sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list
apt-get update && apt-get install -y \
build-essential automake \
software-properties-common \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
git clone https://github.com/bforecast/strategy-app.git .
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python -m pip install --upgrade pip
# TA-Lib
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar zxvf ta-lib-0.4.0-src.tar.gz
cd ta-lib
get_arch=`arch`
if [[ $get_arch =~ "x86_64" ]];then
echo "this is x86_64"
./configure --prefix=/usr
elif [[ $get_arch =~ "aarch64" ]];then
echo "this is arm64"
cp /usr/share/automake-1.16/config.guess .
./configure --prefix=/usr
elif [[ $get_arch =~ "mips64" ]];then
echo "this is mips64"
else
echo "unknown!!"
fi
make && make install
pip3 install -r requirements.txt