diff --git a/get-peasoup-packages.sh b/get-peasoup-packages.sh index 1fdbd76d2c6da25316f3caf9c64cc329d6f98849..8e2e666c00c32e841989f4aebd9a0a69f27e5d7c 100755 --- a/get-peasoup-packages.sh +++ b/get-peasoup-packages.sh @@ -17,12 +17,24 @@ BASE_PKGS=" gcc-multilib g++-multilib autoconf - realpath + apt-libjsoncpp-dev apt-libelf-dev yum-libelf-devel libstdc++6:i386 coreutils - makeself" + makeself + " + +# realpath is not a candidate install package on u18 +platform=$(lsb_release -d -s) +case "$platform" in + Ubuntu?18*) + ;; + *) + BASE_PKGS="$BASE_PKGS realpath" + ;; +esac + # # base (ld): @@ -86,7 +98,7 @@ install_packs() which apt-get 1> /dev/null 2> /dev/null if [[ $? == 0 ]]; then cmd="sudo apt-get install -y --ignore-missing $apters" - sudo apt-get install -y --ignore-missing $apters + sudo apt-get -y --ignore-missing install $apters else sudo yum install -y --skip-broken $yummers fi