forked from verbal-autopsy-software/openva_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_software_ubuntu18_04.sh
33 lines (25 loc) · 1.1 KB
/
install_software_ubuntu18_04.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
#!/bin/bash
# Add CRAN repository to software sources to get latest version of R
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0x51716619e084dab9
sudo bash -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' >> /etc/apt/sources.list"
#Install necessary software
sudo apt update
sudo apt-get install -y python3-pip python3-dev openjdk-11-jdk r-base sqlite3 libsqlite3-dev sqlcipher libsqlcipher-dev git
#Install python packages
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install openva-pipeline --user
#Write Rscript to install packages, then run the R script
sudo R CMD javareconf
echo "install.packages(c('openVA', 'CrossVA'), dependencies=TRUE, repos='https://cloud.r-project.org')
q('no')" > packages.r
sudo Rscript packages.r
rm packages.r
# Install Sqlitebrowser
sudo apt install -y build-essential git cmake qt5-default qttools5-dev-tools qttools5-dev libqscintilla2-qt5-13 libqscintilla2-qt5-l10n
git clone https://github.com/sqlitebrowser/sqlitebrowser
cd sqlitebrowser
mkdir build
cd build
cmake -Dsqlcipher=1 -Wno-dev ..
make
sudo make install