GD Support library for installing PHP under Linux

Source: Internet
Author: User
Tags zts

GD Support library for installing PHP under Linux 1, installation zlibwget FTP://FTP.SUNFREEWARE.COM/PUB/FREEWARE/SOURCES/ZLIB-1.2.3.TAR.GZ TAR-ZXF ZLIB-1.2.3.TAR.GZ CD Zlib-1.2.3 ./configure–prefix=/usr/local/zlib make make install  2, installing Jpeg wget FTP ://ftp.sunfreeware.com/pub/freeware/sources/jpeg-6b.tar.gz mkdir-p/usr/local/jpeg6 mkdir-p/usr/local /jpeg6/bin mkdir-p/usr/local/jpeg6/lib mkdir-p/usr/local/jpeg6/include mkdir-p/usr/local/jpeg6/ Man mkdir-p/usr/local/jpeg6/man1 mkdir-p/usr/local/jpeg6/man/man1 tar-zxf JPEG-6B.TAR.GZ CD Jpeg-6b ./configure–prefix=/usr/local/jpeg6–enable-shared–enable-static make make install    Installation Complete tip:  libraries have been installed in: /usr/local/jpeg6/lib  3, install Libpng wget FTP ://ftp.sunfreeware.com/pub/freeware/sources/libpng-1.2.16.tar.gz tar-zxf LIBPNG-1.2.16.TAR.GZ CD Libpng-1.2.16 ./configure–prefix=/usr/local/libpng make make INSTALL &NBSp;4, installation Freetype wget Http://download.savannah.nongnu.org/releases/freetype/freetype-2.3.4.tar.gz tar- ZXF FREETYPE-2.3.4.TAR.GZ CD freetype-2.3.4 mkdir-p/usr/local/freetype ./configure–prefix=/usr/ Local/freetype make make install  5, installation Gd wget ftp://ftp.sunfreeware.com/pub/freeware/ SOURCES/GD-2.0.33.TAR.GZ TAR-ZXF GD-2.0.33.TAR.GZ CD gd-2.0.33 mkdir-p/usr/local/gd2 ./ configure–prefix=/usr/local/gd2–with-jpeg=/usr/local/jpeg6/–with-png=/usr/local/lib/–with-zlib=/usr/local/lib/ –with-freetype=/usr/local/freetype/ make make install   --------------------    When installing JPG, if an error occurs.    first install LIBTOOL  LIBTOOL-1. X.tar.gz  //is the version i downloaded   ./configure make make install   reload jpegsrc.v6b.tar.gz   ./configure  --enable-shared  --enable-static               & nbsp   These lib this is the default path of the packet line. Otherwise, if the other needs this bag, it still has to beIts path    here may be error   checking host system type ... Invalid configuration ' X86_64-unknown-linux-gnu ': Machine ' x86_64-unknown ' not recognized  checking build System Type ... Invalid configuration ' X86_64-unknown-linux-gnu ': Machine ' x86_64-unknown ' not recognized  configure:error : Libtool Configure failed   or   /libtool--mode=compile gcc-o2  -i.-C./jcapimin.c make :./libtool: Command not found  make: * * * [Jcapimin.lo] Error 127 ./libtool--mode=compile gcc-o2  -i.-C./cjpeg.c m Ake:./libtool: Command not found  make: * * [Cjpeg.lo] Error 127   workaround   cp/usr/share/libtool/config/ Config.guess.  cp/usr/share/libtool/config/config.sub.   CP to the JPEG installation file directory, note the following "."   make clean   re-    ./configure--prefix=/usr/local/libjpeg/ -- enable-shared  --enable-static  make  make install  ------------------------- -------  If you haveTo install PHP, we recommend installing by appending   entering "[PHP Extract directory]/ext/gd" directory, execute the following command:  [php installation directory]/bin/phpize java code  ./configure-- with-php-config=[php installation directory]/bin/php-config--with-jpeg=[jpeg-6b installation directory]--with-png=[libpng installation directory]--with-freetype=[ FreeType installation directory]--with-gettext=[gettext installation directory--WITH-GD=[GD installation directory]  make  make install    installation successful will be in the "[ PHP installation directory]/lib/php/extensions/no-debug-non-zts-20060613 "directory generates gd.so files,     then CP [PHP installation directory]/lib/php/ extensions/no-debug-non-zts-20060613/gd.so/opt/php/ext   modify php.ini file to load GD components, add extension_dir=/opt/php/ Ext and extension=gd.so, if there is extension_dir=/opt/php/ext do not need to add  java code  extension_dir=/opt/php/ext   Extension=gd.so    

GD support library for installing PHP under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.