AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 妹子,来个imagemagick模块安装教程呗 |
|
---|---|
Yusky |
Yusky 发表于 2013-08-02 21:37:49
妹子,来个imagemagick模块安装教程呗 ~~
点赞,加油! (0分)
2013-08-02 21:37:49 1
|
amysql |
编译安装
http://www.imagemagick.org/download/ http://pecl.php.net/package/imagick 与配置php.ini就好。
回复
2013-08-02 21:54:58 2
AMH面板 - 好用高效低占用、安全可靠极稳定 |
Yusky |
引用: amysql 发表于 2013-8-2 21:54 编译安装 http://www.imagemagick.org/download/ http://pecl.php.net/package/imagick #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi clear echo "=========================================================================" echo "Install ImageMagick for LNMP, Written by Licess" echo "=========================================================================" echo "LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux " echo "" echo "For more information please visit http://www.lnmp.org/" echo "=========================================================================" if [ "$1" != "--help" ]; then get_char() { SAVEDSTTY=`stty -g` stty -echo stty cbreak dd if=/dev/tty bs=1 count=1 2> /dev/null stty -raw stty echo stty $SAVEDSTTY } echo "" echo "Press any key to start...or Press Ctrl+c to cancel" char=`get_char` echo "============================check files==================================" if [ -s ImageMagick-6.7.1-6.tar.gz ]; then echo "ImageMagick-6.7.1-6.tar.gz [found]" else echo "Error: ImageMagick-6.7.1-6.tar.gz not found!!!download now......" wget -c http://soft.vpser.net/web/imagemagick/ImageMagick-6.7.1-6.tar.gz if [ $? -eq 0 ]; then echo "Download ImageMagick-6.7.1-6.tar.gz successfully!" else echo "WARNING!ImageMagick-6.7.1-6.tar.gz was not download!" sleep 5 exit 1 fi fi if [ -s imagick-3.0.1.tgz ]; then echo "imagick-3.0.1.tgz [found]" else echo "Error: imagick-3.0.1.tgz not found!!!download now......" wget -c http://soft.vpser.net/web/imagick/imagick-3.0.1.tgz if [ $? -eq 0 ]; then echo "Download imagick-3.0.1.tgz successfully!" else echo "WARNING!imagick-3.0.1.tgz was not download!" sleep 5 exit 1 fi fi echo "========================Install ImageMagick==============================" tar zxvf ImageMagick-6.7.1-6.tar.gz cd ImageMagick-6.7.1-6/ ./configure --prefix=/usr/local/imagemagick make && make install cd ../ tar zxvf imagick-3.0.1.tgz cd imagick-3.0.1/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick make && make install cd ../ sed -i '/extension = "pdo_mysql.so"/i\ extension = "imagick.so"' /usr/local/php/etc/php.ini if [ -s /etc/init.d/httpd ] && [ -s /usr/local/apache ]; then echo "Restarting Apache......" /etc/init.d/httpd restart else echo "Restarting php-fpm......" /etc/init.d/php-fpm restart fi echo "=========================================================================" echo "You have successfully install ImageMagick " echo "=========================================================================" echo "LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux " echo "=========================================================================" echo "" echo "For more information please visit http://www.lnmp.org/" echo "" echo "=========================================================================" fi 求改这个一键安装的。 相信很多需要用的都对这个不是很懂的。。 求妹子改编护航
回复
2013-08-03 01:29:06 3
|
恶小弟 |
每次看到 楼主 叫妹子, 进来的 总是一个汉子
回复
2013-08-03 11:27:11 4
|
ivmm |
有空帮你写一个。。
回复
2013-08-03 12:57:27 5
|
amysql |
不手动编译的话,那等模块吧,
有时间的话可以写模块,然后分享出来。大家都可以用。
回复
2013-08-03 13:06:18 6
|
Yusky |
回复
2013-08-03 18:36:51 7
|
Yusky |
回复
2013-08-03 18:37:11 8
|
Yusky |
回复
2013-08-03 18:41:16 9
|