linux上安装php+gd扩展
 515 cd zlib-1.2.3
  516  ./configure --prefix=/usr/local/zlib2
  517  make && make install
  518  cd ..
  519  ls
  520  cd jpeg-8b/
  521  ./configure --prefix=/usr/local/jpeg8
  522  make
  523  make install-lib
  524  make install
  525  cd ..
  526  cd libpng-1.5.8
  527  ./configure --prefix=/usr/local/libpng2
  528  make
  529  make install
  530  cd ..
  531  ls
  532  cd libpng-1.5.8
  533  ./configure --prefix=/usr/local/libpng56
  534  make
  535  make install
  536  cd ..
  537  tar -zvxf libpng-1.5.18.tar.gz 
  538  cd libpng-1.5.18
  539  ./configure --prefix=/usr/local/libpng18
  540  make
  541  make install
  542  cd ..
  543  cd freetype-2.4.11
  544  ./configure --prefix=/usr/local/freetype2
  545  make
  546  make install
  547  cd ..
  548  cd gd-2.0.33
  549  ./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/ --with-png=/usr/local/libpng18/ --with-jpeg=/usr/local/jpeg8/ --with-freetype=/usr/local/freetype2/
  550  make
  551  make install
  552  cd ..
  553  cd ..
  554  ls
  555  cd php
  556  ls
  557  cd php-5.3.19
  558  ./configure --prefix=/usr/local/php --with-mysql=/usr/share/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/jpeg8/ --with-png-dir=/usr/local/libpng18/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype2/
  559  /usr/local/apache/bin/apachectl restart
  560  cd ext
  561  cd gd
  562  /usr/local/php/bin/phpize
  563  ./configure --with-php-config=/usr/local/php/bin/php-config
  564  ./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir=/usr/local/jpeg8/
  565  ./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir=/usr/local/jpeg8/ --with-png-dir=/usr/local/libpng18/
  566  make && make install
  567  /usr/local/apache/bin/apachectl restart
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号