diff --git a/Dependencies/build_dep.sh b/Dependencies/build_dep.sh index b901baee10..4e8c985690 100755 --- a/Dependencies/build_dep.sh +++ b/Dependencies/build_dep.sh @@ -1,14 +1,24 @@ echo Building dependencies... -sudo apt-get install automake -sudo apt-get install zip unzip +sysOS=`uname -s` rm -rf ./lib mkdir -p lib/Debug/ mkdir -p lib/Release/ -sudo apt-get install libssl-dev -sudo apt-get install libreadline-dev +if [ $sysOS == "Darwin" ];then + brew install libtool + brew install automake + brew install zip unzip + +elif [ $sysOS == "Linux" ];then + apt-get install automake + apt-get install zip unzip + + apt-get install libreadline6-dev + apt-get install libncurses5-dev +fi + #cd openssl-1.1.0h #rm -rf *.a #chmod -R 755 * @@ -62,12 +72,10 @@ cd ../ echo Building lua... cd lua -sysOS=`uname -s` if [ $sysOS == "Darwin" ];then make macosx test elif [ $sysOS == "Linux" ];then - sudo apt-get install libreadline6-dev - sudo apt-get install libncurses5-dev + make linux test fi