需要GD库大于2.1版本

编译GD库请参考文章 安装GD库

./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/  --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg/ --with-freetype-dir=/usr/local/freetype/ --with-gd --with-mcrypt=/usr/local/libmcrypt/ --with-mysql=mysqlnd  --with-pdo-mysql=mysqlnd  --with-mysqli=mysqlnd --enable-fpm --with-fpm-user=webroot --with-fpm-group=webroot

[[email protected] php-5.5.26]# pwd

/usr/src/php-5.5.26

acinclude.m4      configure        install-sh          Makefile.global   php.gif                             README.NEW-OUTPUT-API             README.WIN32-BUILD-SYSTEM  tests

aclocal.m4        configure.in     libs                Makefile.objects  php.ini-development                 README.PARAMETER_PARSING_API      run-tests.php              travis

build             CREDITS          libtool             makerpm           php.ini-production                  README.PHP4-TO-PHP5-THIN-CHANGES  sapi                       TSRM

buildconf         ext              LICENSE             missing           php_test_results_20150821_1027.txt  README.REDIST.BINS                scripts                    UPGRADING

buildconf.bat     EXTENSIONS       ltmain.sh           mkinstalldirs     README.EXTENSIONS                   README.RELEASE_PROCESS            server-tests-config.php    UPGRADING.INTERNALS

CODING_STANDARDS  footer           main                modules           README.EXT_SKEL                     README.SELF-CONTAINED-EXTENSIONS  server-tests.php           vcsclean

config.guess      generated_lists  makedist            netware           README.GIT-RULES                    README.STREAMS                    sessions                   win32

config.log        genfiles         Makefile            NEWS              README.input_filter                 README.SUBMITTING_PATCH           snapshot                   Zend

config.nice       header           Makefile.frag       pear              README.MAILINGLIST_RULES            README.TESTING                    stamp-h.in

config.status     include          Makefile.fragments  php5.spec         README.md                           README.TESTING2                   stub.c

config.sub        INSTALL          Makefile.gcov       php5.spec.in      README.namespaces                   README.UNIX-BUILD-SYSTEM          svnclean.bat

[[email protected] php-5.5.26]# cp php.ini-development  /usr/local/php/etc/php.ini

[[email protected] php-5.5.26]# cd /usr/local/php/

bin  etc  include  lib  php  sbin  var

pear.conf  php-fpm.conf.default  php.ini

[[email protected] etc]# cp php-fpm.conf.default php-fpm.conf

编译openssl扩展

[[email protected] src]# cd php-5.5.26

acinclude.m4      configure        install-sh          Makefile.global   php.gif                             README.NEW-OUTPUT-API             R

aclocal.m4        configure.in     libs                Makefile.objects  php.ini-development                 README.PARAMETER_PARSING_API      r

build             CREDITS          libtool             makerpm           php.ini-production                  README.PHP4-TO-PHP5-THIN-CHANGES  s

buildconf         ext              LICENSE             missing           php_test_results_20150821_1027.txt  README.REDIST.BINS                s

buildconf.bat     EXTENSIONS       ltmain.sh           mkinstalldirs     README.EXTENSIONS                   README.RELEASE_PROCESS            s

CODING_STANDARDS  footer           main                modules           README.EXT_SKEL                     README.SELF-CONTAINED-EXTENSIONS  s

config.guess      generated_lists  makedist            netware           README.GIT-RULES                    README.STREAMS                    s

config.log        genfiles         Makefile            NEWS              README.input_filter                 README.SUBMITTING_PATCH           s

config.nice       header           Makefile.frag       pear              README.MAILINGLIST_RULES            README.TESTING                    s

config.status     include          Makefile.fragments  php5.spec         README.md                           README.TESTING2                   s

config.sub        INSTALL          Makefile.gcov       php5.spec.in      README.namespaces                   README.UNIX-BUILD-SYSTEM          s

[[email protected] php-5.5.26]# cd ext/

bcmath      dba                 fileinfo  iconv      mbstring  odbc       pdo_firebird  phar        shmop      sqlite3    tokenizer  zip

bz2         dom                 filter    imap       mcrypt    opcache    pdo_mysql     posix       simplexml  standard   wddx       zlib

calendar    enchant             ftp       interbase  mssql     openssl    pdo_oci       pspell      skeleton   sybase_ct  xml

com_dotnet  ereg                gd        intl       mysql     pcntl      pdo_odbc      readline    snmp       sysvmsg    xmlreader

ctype       exif                gettext   json       mysqli    pcre       pdo_pgsql     recode      soap       sysvsem    xmlrpc

curl        ext_skel            gmp       ldap       mysqlnd   pdo        pdo_sqlite    reflection  sockets    sysvshm    xmlwriter

date        ext_skel_win32.php  hash      libxml     oci8      pdo_dblib  pgsql         session     spl        tidy       xsl

[[email protected] openssl]# /usr/local/php/bin/phpize

Cannot find config.m4.

Make sure that you run ‘/usr/local/php/bin/phpize‘ in the top level source directory of the module

把config0.m4 重命名为 config.m4

[[email protected] openssl]# mv config0.m4 config.m4

[[email protected] openssl]# ./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config

make && make install

/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/

修改php.ini配置文件

原文:http://my.oschina.net/yonghan/blog/495364

php 5.5.7.tar.gz,编译 php-5.5.26.tar.gz相关推荐

  1. php5.4.13.tar.bz2,编译安装PHP-5.4.13

    一.简介 PHP官方网站: http://php.net 本次安装的版本: php-5.4.13 二.下载, 安装PHP [root@caiya software]# wget http://muse ...

  2. linux解压gz.gz文件,linux解压tar.gz并重命名_linux解压tar.gz文件

    原标题:linux解压tar.gz并重命名_linux解压tar.gz文件 命名为jpg.tar.gz tar –cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.t ...

  3. linux中.sql.gz文件解压,linux下tar.gz、tar、bz2、zip等解压缩、压缩命令小结

    本文介绍了linux下的压缩程式tar.gzip.gunzip.bzip2.bunzip2.compress .uncompress. zip. unzip.rar.unrar等程式,以及如何使用它们 ...

  4. linux解压tar.gz报错,Linux解压tar.gz文件时提示gzip:stdin:not错误

    我们都知道Linux系统下的tar命令可用于文件的解压缩,在利用tar命令解压tar.gz文件的时候,提示gzip:stdin:not in gzip format错误,遇到这种情况该如何解决呢?随小 ...

  5. 解压命令linux tgz,tar 解压_linux中的“tar命令”怎么解压“.tgz”与“.tar.gz”文件?...

    在LINUX下如何将tar压缩文件解压到指定的目录下 一.解压.tar.gz格式到指定的目录下: 命令格式为:tar -zxvf [压缩包文件名.tar.gz] -C  [路径]/ 例如:tar -z ...

  6. tar.gz 解压出现 tar :This does not look like a tar archive 解决

    tar.gz 解压出现 tar :This does not look like a tar archive 解决 在安装hdf5时,使用tar 命令解压hdf5-1.8.18.tar.gz 出现: ...

  7. linux下tar xvzf是解压tar.gz的,等效gzip -d file.gz+tar vxf file.tar,以及别的解压方式大全

    Linux下最常用的打包程序就是tar了,使用tar程序打出来的包我们常称为tar包,tar包 文件 的 命令 通常都是以.tar结尾的.生成tar包后,就可以用其它的程序来进  行压缩了,所以首先就 ...

  8. linux解压tar.gz报错,Linux解压tar.gz文件时提示gzip:stdin:not怎么办?

    我们都知道Linux系统下的tar命令可用于文件的解压缩,在利用tar命令解压tar.gz文件的时候,提示gzip:stdin:not in gzip format错误,遇到这种情况该如何解决呢?随小 ...

  9. ubuntu mysql5.6 编译安装_Ubuntu14.04编译安装mysql5.6.26

    (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-dev (2)下载并解压缩 mysql-5.6.26.t ...

  10. linux系统中tar命令的使用,linux 系统的tar命令使用方法详解

    -j :是否同时具有 bzip2 的属性?亦即是否需要用 bzip2 压缩或解压?一般格式为xx.tar.bz2 -v :压缩的过程中显示文件!这个常用 -f :使用档名,请留意,在 f 之后要立即接 ...

最新文章

  1. Java8简明学习之接口默认方法
  2. 地牢逃脱(BFS(广度优先搜索))
  3. eclipse提示edit source lookup path的问题
  4. java intercpt_java – 在Spring的安全性中使用intercept-url
  5. Linux故障之grub
  6. Matlab图形加网格
  7. 项不会计算为接受 0 个参数的函数_玩转excel函数:详解四种计数函数,从基础到提高...
  8. 配置文件解析利器-Config库
  9. 产品市场调研分析报告、竞品分析报告、产品体验报告的区别
  10. 配置HP LaserJet M1536dnf MFP打印机通过TCPIP共享多台计算机
  11. 宅急送BOS系统软硬件集成方案goldengate(一)
  12. windows图片和传真查看器
  13. linux系统优点和缺点,Linux系统和Windows系统的各自的优缺点有哪些
  14. 为什么会有口臭,如何避免?
  15. win10系统更新遇到 “我们无法完成更新,正在撤销更改“ 解决办法
  16. 将最爱的歌曲编码到你的DNA里,只需10000美元
  17. fastadmin 文本框修改为图片或文件上传
  18. 我的ROS学习之路——动起来的小海龟
  19. 项目在服务器的绝对路径,java获得项目绝对路径
  20. 要闻君说:必应(Bing)搜索引擎已在国内被屏蔽;Verizon媒体业务宣布裁员7%;小米率先发布折叠屏手机...

热门文章

  1. ActiveMQ –经纪人网络解释–第3部分
  2. 建立自己的GWT Spring Maven原型
  3. Tomcat中的零停机部署(和回滚); 演练和清单
  4. java 随机数种子_Java--随机数和随机数种子(转)
  5. 链表数据结构原理图/内存结构图/内存图
  6. idea连接mysql数据库时连接显示错误caching_sha2_password
  7. python二级考试可以用pycharm吗_学Python,Pycharm不能不知道怎么用
  8. 武汉城市职业学院计算机分数线,武汉城市职业学院历年分数线 2021武汉城市职业学院录取分数线...
  9. linux at查看进程命令,at命令 - Linux命令大全 | linux教程
  10. java 类.class_面试官:Java反射是什么?我回答不上来!