Commit 558fd9fafa5f3a1541489899b8d0bea5975f02f4
1 parent
04de0cea
Exists in
master
and in
1 other branch
Adiciona verificação da arquitetura do sistema para instalação do hunpos
Showing
1 changed file
with
13 additions
and
3 deletions
Show diff stats
install/linux/install.sh
... | ... | @@ -11,15 +11,25 @@ read -r -p "Deseja fazer o download das dependências? [Y/n] " response |
11 | 11 | |
12 | 12 | wget 150.165.204.30:8080/translate/linux/aelius-install.tar.gz |
13 | 13 | |
14 | + MACHINE_TYPE=`uname -m` | |
15 | + if [ ${MACHINE_TYPE} == 'x86_64' ]; then | |
16 | + wget 150.165.204.30:8080/translate/linux/hunpos/x86_64/hunpos-tag | |
17 | + else | |
18 | + wget 150.165.204.30:8080/translate/linux/hunpos/i386/hunpos-tag | |
19 | + fi | |
20 | + | |
14 | 21 | read -r -p "Deseja instalar as dependências? [Y/n] " response |
15 | 22 | response=${response,,} # tolower |
16 | 23 | if [[ $response =~ ^(yes|y| ) ]]; then |
17 | 24 | echo -e "\n# Extraindo...\n" |
18 | 25 | tar -xf aelius-install.tar.gz -C . |
19 | - | |
26 | + mkdir bin | |
27 | + mv hunpos-tag bin/ | |
28 | + chmod 777 bin/hunpos-tag | |
29 | + | |
20 | 30 | echo -e "# Instalando dependências...\n" |
21 | - sudo apt-get -qq update | |
22 | - sudo apt-get install -y -qq python-dev python-setuptools python-pip python-yaml python-numpy python-matplotlib | |
31 | + sudo apt-get update | |
32 | + sudo apt-get install -y python-dev python-setuptools python-pip python-yaml python-numpy python-matplotlib | |
23 | 33 | sudo pip install nltk nltk_tgrep --upgrade |
24 | 34 | |
25 | 35 | fi | ... | ... |