标题:
[教程]
imagemagick_install.sh
[打印本页]
作者:
tom1978
时间:
2013-2-8 10:08
标题:
imagemagick_install.sh
#!/bin/bash# ---------------------------------------------------------------------------# Filename: imagemagick_install.sh # Date: Mar.2012 # Author: Aiminick Wong # Email:
aiminick@qq.com
# Website: www.openfans.org# Description: ImageMagick Auto-install script # Notes: It is a sub-part of Qlnmp# ---------------------------------------------------------------------------# Copyleft: 2012 (c) openfans.org # Version: 2.0# ---------------------------------------------------------------------------#if [ $(id -u) != "0" ]; then printf "Error: You must be root to run this script!\n" exit 1fiexport php_directory="$app_directory/php"php_bin="$php_directory/bin"php_ini="$php_directory/etc/php.ini"#Directory name listd_imagemagick=`cat $f_pkg_list | grep imagemagick | awk '{print $2}'`d_imagick=`cat $f_pkg_list | grep imagick | awk '{print $2}'`#Package name listp_imagemagick="$d_imagemagick.tar.gz"p_imagick="$d_imagick.tgz"####################################################################################################################echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Install ImageMagick-#########" >>$setup_log_filetar zxvf $pkg_directory/$p_imagemagick -C $cache_directorycd $cache_directory/$d_imagemagick./configure --prefix=$app_directory/imagemagick && make && make installcd $qlnmp_idrm -rf $cache_directory/$d_imagemagicksed -i '/imagemagick*/d' $f_pkg_info_listecho "imagemagick installed $d_imagemagick">>$f_pkg_info_listecho "----- Imagemagic intall completed ! -----"echo "Time-$(date +%D-%H:%M:%S)-Step-#########-ImageMagick install completed-#########" >>$setup_log_file####################################################################################################################echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Install imagick-#########" >>$setup_log_filetar zxvf $pkg_directory/$p_imagick -C $cache_directorycd $cache_directory/$d_imagickexport PKG_CONFIG_PATH="$app_directory/imagemagick/lib/pkgconfig"$php_bin/phpize./configure --with-php-config=$php_bin/php-config --with-imagick=$app_directory/imagemagickmake make installsed -i 's#;extension_imagick#extension = "imagick.so"#' $php_ini cd $qlnmp_idrm -rf $cache_directory/$d_imagickrm -rf $cache_directory/package.xmlsed -i '/imagick*/d' $f_pkg_info_listecho "imagick installed $d_imagick">>$f_pkg_info_listsed -i '/Imagick*/d' $f_pkg_status_listecho "Imagick Status Used">>$f_pkg_status_listecho "----- Imagemagic intall completed ! -----"echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Imagick install completed-#########" >>$setup_log_file####################################################################################################################chmod 755 $cwphpd. $cwphpd 2>>$setup_log_filecd $qlnmp_id
作者:
tom1978
时间:
2013-2-8 10:09
https://code.google.com/p/qlnmp/source/browse/qlnmp-2.0-stable/script/imagemagick/imagemagick_install.sh 在这儿, 可以根据wdcp 修改一下
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2