Skip to content

Commit

Permalink
init.sh: add instruction to install packages for Ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com>
  • Loading branch information
telezhnaya committed Jun 26, 2018
1 parent 60ce1e4 commit 6b5d2a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/vscode/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ die () {
exit 1
}

if grep '^NAME="Ubuntu"' /etc/os-release >/dev/null 2>&1 &&
(test ! -f /usr/include/openssl/ssl.h ||
test ! -f /usr/include/expat.h ||
test ! -f /usr/include/zlib.h) ;
then
die "Some files missing. Try to run these commands in advance:
sudo apt-get update
sudo apt-get install git gcc make libssl-dev libcurl4-openssl-dev \\
libexpat-dev tcl tk gettext git-email zlib1g-dev"
fi

cd "$(dirname "$0")"/../.. ||
die "Could not cd to top-level directory"

Expand Down

0 comments on commit 6b5d2a8

Please sign in to comment.