forked from ai-mastering/phaselimiter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
full-install-linux.sh
executable file
·59 lines (45 loc) · 1.46 KB
/
full-install-linux.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
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -ex
echo "Updating package list..."
sudo apt-get update
# Install python and pip
echo "Installing python and pip..."
sudo apt-get install python3 -y
sudo apt-get install python3-pip -y
# Install pipenv
echo "Installing pipenv..."
sudo apt install python3-pip -y
pip3 install pipenv
# Install ffmpeg
echo "Installing ffmpeg..."
sudo apt-get install ffmpeg -y
# Install Intel TBB
echo "Installing Intel TBB..."
sudo apt-get install libtbb-dev -y
sudo apt-get install libtbb2 -y
# Install LAPACK and BLAS
echo "Installing LAPACK and BLAS..."
sudo apt-get install liblapack-dev libblas-dev -y
# Install Armadillo
echo "Installing Armadillo..."
sudo apt-get install libarmadillo-dev -y
# Install libsndfile
echo "Installing libsndfile..."
sudo apt-get install libsndfile1-dev -y
# Install XZ Utils
echo "Installing XZ Utils..."
sudo apt-get install xz-utils -y
echo "All specified dependencies have been installed."
# Instal phaselimiter
cd "$(mktemp -d)"
curl -OL https://github.com/ai-mastering/phaselimiter/releases/download/v0.2.0/release.tar.xz
tar -Jxvf release.tar.xz
#git clone -b master --depth 1 --single-branch https://github.com/ai-mastering/phaselimiter.git phaselimiter
sudo mkdir -p /etc/phaselimiter
sudo cp -R phaselimiter/* /etc/phaselimiter/
sudo cp phaselimiter/.python-version /etc/phaselimiter/
cd /etc/phaselimiter/
sudo chmod +x bin/*
sudo cp bin/* /usr/local/bin
sudo chmod +x script/audio_detector
sudo cp script/audio_detector /usr/local/bin/