PHP + GD2 INSTALL

xiaoxiao2021-03-06  14

Start loading GD library support -------------------------------------------------------------------------------------------------------------------------------------------------- ---------- Zlib # tar zxvf zlib-1.2.1.tar.gz # cd zlib-1.2.1 #. / Configure # make # make installjpegsrc # tar zxvf jpegsrc.v6b.tar.gz # CD JPEGSRC.V6B #. / configure # make # make install-lib # make installlibpng # tar zxvf libpng-1.2.5.tar.gz # cd libpng-1.2.5 # cp scripts / makefile.linux makefile #. / configure # Make # make install-headers # make install Finally GD2. * GD-2.0.28 # TAR ZXVF GD-2.0.28.28 #. / configure --with-png = / usr / local --with-jpeg = / usr / local --with-frehenpe = / usr # make # make install ------------------------- --------------------- Everything is smooth, GD is successfully installed. If there is a problem, it should be a lack of support packs, in short, what is less? What to download is installed. Follow up, start installing apahche2 and php5 # tar zxvf httpd-2.0.50.50 #. / Configure --prefix = / usr / local / apache2 - Enable-module = SO # make # make install # tar php-5.0.0.tar.gz # cd php-5.0.0 #. / configure --prefix = / usr / local / php --with-apxs2 = / usr / local / apache2 / bin / apxs --with-jpeg-dir = / usr / local --with-png-dir = / usr / local --with-gd = / usr / local --enable-trace-vars - -with-zlib-dir = / usr / lo Cal -with-mysql = / var / lib / mysql # make # make install I installed them in the / usr / local / apache2 & php directory, I encountered EXT / GD / GD.LO (.text 0x63a): in function `zm_deactivate_gd ': / root / soft / pHP-4.3.8 / ext / gd / gd.c: 385: undefined reference to` gdfreefontcache'

转载请注明原文地址:https://www.9cbs.com/read-45860.html

New Post(0)