Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the dependency file to support ubuntu 18.04 #17

Merged
merged 3 commits into from
Dec 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion inference-engine/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function yes_or_no {
# install dependencies
if [[ -f /etc/lsb-release ]]; then
# Ubuntu
system_ver=`cat /etc/lsb-release | grep -i "DISTRIB_RELEASE" | cut -d "=" -f2`
sudo -E apt update
sudo -E apt-get install -y \
build-essential \
Expand All @@ -40,7 +41,6 @@ if [[ -f /etc/lsb-release ]]; then
automake \
libtool \
autoconf \
libpng12-dev \
libcairo2-dev \
libpango1.0-dev \
libglib2.0-dev \
Expand All @@ -52,6 +52,11 @@ if [[ -f /etc/lsb-release ]]; then
gstreamer1.0-plugins-base \
libusb-1.0-0-dev \
libopenblas-dev
if [ $system_ver = "18.04" ]; then
sudo -E apt-get install -y libpng-dev
else
sudo -E apt-get install -y libpng12-dev
fi
else
# CentOS 7.x
sudo -E yum install -y centos-release-scl epel-release
Expand Down