zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    设计模式之策略模式
    设计模式之简单工厂模式
    UML 之关系
    C# delegate (001)
    转: 编写高质量代码改善C#程序的157个建议
    通过配置数据库邮件实现发送邮件
    存储过程学习(004)--象写程序一样的写存储过程及调试
    存储过程学习(003)--象写程序一样的写存储过程及调试
    存储过程学习(002)--循环插入数据
    jQ新的事件绑定方法on()
  • 原文地址:https://www.cnblogs.com/lovefendi/p/3824172.html
Copyright © 2011-2022 走看看