Fix 18.04 dependency install (fixes #8 )

This commit is contained in:
LukeeGD 2020-03-09 08:24:35 +08:00
parent df34f60fac
commit 11ed3c91a5

View File

@ -410,10 +410,12 @@ function Ubuntu {
} }
function Ubuntu1804 { function Ubuntu1804 {
if [ $(uname -m) == 'x86_64' ]; then mname=$(uname -m)
if [ $mname == 'x86_64' ]; then
mtype='amd64' mtype='amd64'
else else
mtype='i386' mtype='i386'
mname=$mtype
fi fi
sudo apt -y install binutils sudo apt -y install binutils
mkdir tmp mkdir tmp
@ -421,8 +423,8 @@ function Ubuntu1804 {
apt download -o=dir::cache=. libcurl3 apt download -o=dir::cache=. libcurl3
ar x libcurl3* data.tar.xz ar x libcurl3* data.tar.xz
tar xf data.tar.xz tar xf data.tar.xz
sudo cp usr/lib/${mtype}-linux-gnu/libcurl.so.4.* /usr/lib/libcurl.so.3 sudo cp usr/lib/${mname}-linux-gnu/libcurl.so.4.* /usr/lib/libcurl.so.3
curl -L http://mirrors.edge.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_${mtype}.deb -o libpng12.deb curl -L http://mirrors.edge.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_${mname}.deb -o libpng12.deb
sudo dpkg -i libpng12.deb sudo dpkg -i libpng12.deb
cd .. cd ..
Clean Clean