This commit is contained in:
BoHung Chiu 2022-08-24 14:57:54 +08:00
parent a0fcc3de96
commit 823d610074
1 changed files with 5 additions and 3 deletions

View File

@ -84,7 +84,8 @@ else
fi fi
# build ImageMagick and install # build ImageMagick and install
if [ -z $(which convert) ]; then if [ -z $(which convert) ]; then
sudo bash -l -c "tmp_pwd=$(pwd) && cd /root && \ tmp_pwd="$(pwd)"
sudo bash -l -c "cd /root && \
apt-get install libjpeg62 -y && \ apt-get install libjpeg62 -y && \
wget -nc http://download.sourceforge.net/libpng/libpng-1.5.13.tar.gz && \ wget -nc http://download.sourceforge.net/libpng/libpng-1.5.13.tar.gz && \
tar xvfz libpng-1.5.13.tar.gz && \ tar xvfz libpng-1.5.13.tar.gz && \
@ -99,11 +100,12 @@ if [ -z $(which convert) ]; then
tar xvfz ImageMagick.tar.gz && \ tar xvfz ImageMagick.tar.gz && \
cd $(ls -d /root/libpng-1.5.13/ImageMagick-7*) && \ cd $(ls -d /root/libpng-1.5.13/ImageMagick-7*) && \
chown $USER:$USER . -R && \ chown $USER:$USER . -R && \
sudo bash -l -c "./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-shared --with-modules && ./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-shared --with-modules && \
make && make install && \ make && make install && \
ln -s /usr/local/lib/* /usr/lib/. && \ ln -s /usr/local/lib/* /usr/lib/. && \
ln -s /usr/local/lib/pkgconfig/* /usr/lib/pkgconfig/. && \ ln -s /usr/local/lib/pkgconfig/* /usr/lib/pkgconfig/. && \
ln -s /usr/local/bin/* /usr/bin/. && \ convert -list configure" ln -s /usr/local/bin/* /usr/bin/. && \
convert -list configure"
cd $tmp_pwd cd $tmp_pwd
fi fi
## install rvm ## install rvm