diff options
author | RachelRen05 <38059915+RachelRen05@users.noreply.github.com> | 2018-12-15 02:09:44 +0800 |
---|---|---|
committer | openvino-pushbot <44090433+openvino-pushbot@users.noreply.github.com> | 2018-12-14 21:09:44 +0300 |
commit | e5d4940a0f99c68f9233c0b801c9dd3663150135 (patch) | |
tree | 4cb233bf5dd88d04dc4442f3301bab56e8b7eb4f | |
parent | 3600f36d7bb24e5193cbf6a3aaf98b085942a091 (diff) | |
download | dldt-e5d4940a0f99c68f9233c0b801c9dd3663150135.tar.gz dldt-e5d4940a0f99c68f9233c0b801c9dd3663150135.tar.bz2 dldt-e5d4940a0f99c68f9233c0b801c9dd3663150135.zip |
update the dependency file to support ubuntu 18.04 (#17)
* update dependency file to support ubuntu 18.04
* update dependency file to support ubuntu 18.04
-rwxr-xr-x | inference-engine/install_dependencies.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inference-engine/install_dependencies.sh b/inference-engine/install_dependencies.sh index fdb70e266..88be54641 100755 --- a/inference-engine/install_dependencies.sh +++ b/inference-engine/install_dependencies.sh @@ -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 \ @@ -40,7 +41,6 @@ if [[ -f /etc/lsb-release ]]; then automake \ libtool \ autoconf \ - libpng12-dev \ libcairo2-dev \ libpango1.0-dev \ libglib2.0-dev \ @@ -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 |