-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_deps.sh
executable file
·41 lines (34 loc) · 1.06 KB
/
install_deps.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
#!/bin/bash
THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo "$THIS_DIR"
# Install JRE/JDK (Java)
sudo apt-get update
sudo apt-get install default-jdk
#
# Install pip
# Note: if you do not have Python + pip installed, first install
# them with pyenv. See https://github.com/pyenv/pyenv for more
# details.
#
# git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
# echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
# echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
# echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
#
sudo python -m easy_install --upgrade pyOpenSSL
# Install ANTLR
ANTLR_DIR=$THIS_DIR/env/antlr
cd ${ANTLR_DIR}
sudo bash ${ANTLR_DIR}/install_antlr.sh
pwd
cd ${THIS_DIR}
# Install Graph-Easy
sudo apt-get install graphviz
sudo cpan Graph:Easy
# Install python lib
pip install paramiko --user
pip install Pexpect --user
pip install numpy --user
pip install termcolor --user
pip install antlr4-python2-runtime --user