From 0772d0eb2750df35d80b21d320c93b8465bae6f5 Mon Sep 17 00:00:00 2001 From: jerinsaiju <94125637+jerinsaiju@users.noreply.github.com> Date: Thu, 11 Nov 2021 10:13:52 -0500 Subject: [PATCH] Update install_dependencies --- install_dependencies | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install_dependencies b/install_dependencies index 5f30c491..32e22007 100755 --- a/install_dependencies +++ b/install_dependencies @@ -13,7 +13,7 @@ repo_dir=`pwd` is_installed_django=False is_installed_python_smbus=False is_installed_python_opencv=False -is_installed_libjpeg8_dev=False +is_installed_libjpeg62-turbo-dev=False if [ "$(whoami)" != "root" ] ; then echo -e "You must run this script as root." @@ -64,8 +64,8 @@ function print_result(){ else echo -e "Failed" fi - echo -e "libjpeg8-dev \c" - if $is_installed_libjpeg8_dev; then + echo -e "libjpeg62-turbo-dev \c" + if $is_installed_libjpeg62-turbo-dev; then echo -e "Success" else echo -e "Failed" @@ -120,16 +120,16 @@ else fi fi -echo -e "\nInstalling libjpeg8-dev \n" -if sudo apt-get install libjpeg8-dev -y; then - echo -e " Successfully installed libjpeg8-dev \n" - is_installed_libjpeg8_dev=true +echo -e "\nInstalling libjpeg62-turbo-dev \n" +if sudo apt-get install libjpeg62-turbo-dev -y; then + echo -e " Successfully installed libjpeg62-turbo-dev \n" + is_installed_libjpeg62-turbo-dev=true else - echo -e " Failed to installed libjpeg8-dev \n" + echo -e " Failed to installed libjpeg62-turbo-dev \n" echo -e " Do you want to skip this? \c" if_continue if [ $? = 1 ] ; then - echo -e " Skipped libjpeg8-dev installation." + echo -e " Skipped libjpeg62-turbo-dev installation." else end fi