centos 7.0 phpize 扩展php
phpize扩展php模块
phpize 所在目录 /usr/etc/php/bin/phpize
查看当前php配置情况 /usr/etc/php/bin/下面的php
[root@localhost bin]cd /usr/etc/php/bin [root@localhost bin]# ./php -i | grep configure Configure Command => './configure' '--prefix=/usr/etc/php' '--with-config-file-path=/usr/etc/php/etc' '--enable-fpm'
查看默认源码包里 带的扩展模块
首先进入源码解压包的扩展目录
下面添加mysqli 为例子
[root@localhost mysqli]# cd /usr/local/bin/php-5.6.7/ext/mysqli [root@localhost mysqli]# ls config.m4 mysqli_exception.c mysqli_report.c config.w32 mysqli_fe.c mysqli_result_iterator.c CREDITS mysqli_fe.h mysqli_warning.c mysqli_api.c mysqli_libmysql.h package.xml mysqli.c mysqli_mysqlnd.h php_mysqli.h mysqli_driver.c mysqli_nonapi.c php_mysqli_structs.h mysqli.dsp mysqli_priv.h tests mysqli_embedded.c mysqli_prop.c TODO
[root@localhost mysqli]# yum -y install antoconf
已加载插件:fastestmirror
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/7/x86_64/primary_db | 930 kB 00:03
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirror.bit.edu.cn
没有可用软件包 antoconf。
错误:无须任何处理
[root@localhost mysqli]# yum -y install m4
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirror.bit.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 m4.x86_64.0.1.4.16-9.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
m4 x86_64 1.4.16-9.el7 base 256 k
事务概要
================================================================================
安装 1 软件包
总下载量:256 k
安装大小:513 k
Downloading packages:
m4-1.4.16-9.el7.x86_64.rpm | 256 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : m4-1.4.16-9.el7.x86_64 1/1
验证中 : m4-1.4.16-9.el7.x86_64 1/1
已安装:
m4.x86_64 0:1.4.16-9.el7
完毕!
执行phpize 在对应扩展目录下执行 在php安装目录下找phpize(/usr/etc/php/bin/)
[root@localhost mysqli]# /usr/etc/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
上面的是错误的 不知道为何会出现
not find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
下面这个在编译就没问题了 第二次重新弄就好了~
[root@localhost mysql]# /usr/etc/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 [root@localhost mysql]# ls acinclude.m4 config.sub Makefile.global php_mysql.c aclocal.m4 configure missing php_mysql.h autom4te.cache configure.in mkinstalldirs php_mysql_structs.h build config.w32 mysql.dsp run-tests.php config.guess CREDITS mysql.mak tests config.h.in install-sh mysql_mysqlnd.h config.m4 ltmain.sh package.xml
还是图看得命名
下面是正常生成的 需要的模块由m4 autoconf automake perl环境 最简单的就是yum -y install automake 自动安装perl
[root@localhost mysqli]# yum -y install automake 已加载插件:fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirror.bit.edu.cn 正在解决依赖关系 --> 正在检查事务 ---> 软件包 automake.noarch.0.1.13.4-3.el7 将被 安装 --> 正在处理依赖关系 perl >= 5.006,它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 autoconf >= 2.65,它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(warnings),它被软件包 automake-1.13.4-3.el7.noarch 需 要 --> 正在处理依赖关系 perl(vars),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(threads),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(strict),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(constant),它被软件包 automake-1.13.4-3.el7.noarch 需 要 --> 正在处理依赖关系 perl(Thread::Queue),它被软件包 automake-1.13.4-3.el7.noarc h 需要 --> 正在处理依赖关系 perl(TAP::Parser),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(POSIX),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(IO::File),它被软件包 automake-1.13.4-3.el7.noarch 需 要 --> 正在处理依赖关系 perl(Getopt::Long),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(File::stat),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(File::Spec),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(File::Path),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(File::Copy),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(File::Compare),它被软件包 automake-1.13.4-3.el7.noarc h 需要 --> 正在处理依赖关系 perl(File::Basename),它被软件包 automake-1.13.4-3.el7.noar ch 需要 --> 正在处理依赖关系 perl(Exporter),它被软件包 automake-1.13.4-3.el7.noarch 需 要 --> 正在处理依赖关系 perl(Errno),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(DynaLoader),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 perl(Class::Struct),它被软件包 automake-1.13.4-3.el7.noarc h 需要 --> 正在处理依赖关系 perl(Carp),它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在处理依赖关系 /usr/bin/perl,它被软件包 automake-1.13.4-3.el7.noarch 需要 --> 正在检查事务 ---> 软件包 autoconf.noarch.0.2.69-11.el7 将被 安装 --> 正在处理依赖关系 perl(Text::ParseWords),它被软件包 autoconf-2.69-11.el7.noa rch 需要 --> 正在处理依赖关系 perl(Data::Dumper),它被软件包 autoconf-2.69-11.el7.noarch 需要 ---> 软件包 perl.x86_64.4.5.16.3-285.el7 将被 安装 --> 正在处理依赖关系 perl-libs = 4:5.16.3-285.el7,它被软件包 4:perl-5.16.3-285. el7.x86_64 需要 --> 正在处理依赖关系 perl(Socket) >= 1.3,它被软件包 4:perl-5.16.3-285.el7.x86_6 4 需要 --> 正在处理依赖关系 perl(Scalar::Util) >= 1.10,它被软件包 4:perl-5.16.3-285.el 7.x86_64 需要 --> 正在处理依赖关系 perl-macros,它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl-libs,它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl(threads::shared),它被软件包 4:perl-5.16.3-285.el7.x86 _64 需要 --> 正在处理依赖关系 perl(Time::Local),它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl(Time::HiRes),它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl(Storable),它被软件包 4:perl-5.16.3-285.el7.x86_64 需 要 --> 正在处理依赖关系 perl(Socket),它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl(Scalar::Util),它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 perl(Pod::Simple::XHTML),它被软件包 4:perl-5.16.3-285.el7. x86_64 需要 --> 正在处理依赖关系 perl(Pod::Simple::Search),它被软件包 4:perl-5.16.3-285.el7 .x86_64 需要 --> 正在处理依赖关系 perl(Filter::Util::Call),它被软件包 4:perl-5.16.3-285.el7. x86_64 需要 --> 正在处理依赖关系 perl(File::Temp),它被软件包 4:perl-5.16.3-285.el7.x86_64 需要 --> 正在处理依赖关系 libperl.so()(64bit),它被软件包 4:perl-5.16.3-285.el7.x86_6 4 需要 ---> 软件包 perl-Carp.noarch.0.1.26-244.el7 将被 安装 ---> 软件包 perl-Exporter.noarch.0.5.68-3.el7 将被 安装 ---> 软件包 perl-File-Path.noarch.0.2.09-2.el7 将被 安装 ---> 软件包 perl-Getopt-Long.noarch.0.2.40-2.el7 将被 安装 --> 正在处理依赖关系 perl(Pod::Usage) >= 1.14,它被软件包 perl-Getopt-Long-2.40- 2.el7.noarch 需要 ---> 软件包 perl-PathTools.x86_64.0.3.40-5.el7 将被 安装 ---> 软件包 perl-Test-Harness.noarch.0.3.28-2.el7 将被 安装 ---> 软件包 perl-Thread-Queue.noarch.0.3.02-2.el7 将被 安装 ---> 软件包 perl-constant.noarch.0.1.27-2.el7 将被 安装 ---> 软件包 perl-threads.x86_64.0.1.87-4.el7 将被 安装 --> 正在检查事务 ---> 软件包 perl-Data-Dumper.x86_64.0.2.145-3.el7 将被 安装 ---> 软件包 perl-File-Temp.noarch.0.0.23.01-3.el7 将被 安装 ---> 软件包 perl-Filter.x86_64.0.1.49-3.el7 将被 安装 ---> 软件包 perl-Pod-Simple.noarch.1.3.28-4.el7 将被 安装 --> 正在处理依赖关系 perl(Pod::Escapes) >= 1.04,它被软件包 1:perl-Pod-Simple-3. 28-4.el7.noarch 需要 --> 正在处理依赖关系 perl(Encode),它被软件包 1:perl-Pod-Simple-3.28-4.el7.noarc h 需要 ---> 软件包 perl-Pod-Usage.noarch.0.1.63-3.el7 将被 安装 --> 正在处理依赖关系 perl(Pod::Text) >= 3.15,它被软件包 perl-Pod-Usage-1.63-3.e l7.noarch 需要 --> 正在处理依赖关系 perl-Pod-Perldoc,它被软件包 perl-Pod-Usage-1.63-3.el7.noar ch 需要 ---> 软件包 perl-Scalar-List-Utils.x86_64.0.1.27-248.el7 将被 安装 ---> 软件包 perl-Socket.x86_64.0.2.010-3.el7 将被 安装 ---> 软件包 perl-Storable.x86_64.0.2.45-3.el7 将被 安装 ---> 软件包 perl-Text-ParseWords.noarch.0.3.29-4.el7 将被 安装 ---> 软件包 perl-Time-HiRes.x86_64.4.1.9725-3.el7 将被 安装 ---> 软件包 perl-Time-Local.noarch.0.1.2300-2.el7 将被 安装 ---> 软件包 perl-libs.x86_64.4.5.16.3-285.el7 将被 安装 ---> 软件包 perl-macros.x86_64.4.5.16.3-285.el7 将被 安装 ---> 软件包 perl-threads-shared.x86_64.0.1.43-6.el7 将被 安装 --> 正在检查事务 ---> 软件包 perl-Encode.x86_64.0.2.51-7.el7 将被 安装 ---> 软件包 perl-Pod-Escapes.noarch.1.1.04-285.el7 将被 安装 ---> 软件包 perl-Pod-Perldoc.noarch.0.3.20-4.el7 将被 安装 --> 正在处理依赖关系 perl(parent),它被软件包 perl-Pod-Perldoc-3.20-4.el7.noarch 需要 --> 正在处理依赖关系 perl(HTTP::Tiny),它被软件包 perl-Pod-Perldoc-3.20-4.el7.no arch 需要 ---> 软件包 perl-podlators.noarch.0.2.5.1-3.el7 将被 安装 --> 正在检查事务 ---> 软件包 perl-HTTP-Tiny.noarch.0.0.033-3.el7 将被 安装 ---> 软件包 perl-parent.noarch.1.0.225-244.el7 将被 安装 --> 解决依赖关系完成 依赖关系解决 ================================================================================ Package 架构 版本 源 大小 ================================================================================ 正在安装: automake noarch 1.13.4-3.el7 base 679 k 为依赖而安装: autoconf noarch 2.69-11.el7 base 701 k perl x86_64 4:5.16.3-285.el7 base 8.0 M perl-Carp noarch 1.26-244.el7 base 19 k perl-Data-Dumper x86_64 2.145-3.el7 base 47 k perl-Encode x86_64 2.51-7.el7 base 1.5 M perl-Exporter noarch 5.68-3.el7 base 28 k perl-File-Path noarch 2.09-2.el7 base 26 k perl-File-Temp noarch 0.23.01-3.el7 base 56 k perl-Filter x86_64 1.49-3.el7 base 76 k perl-Getopt-Long noarch 2.40-2.el7 base 56 k perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k perl-PathTools x86_64 3.40-5.el7 base 82 k perl-Pod-Escapes noarch 1:1.04-285.el7 base 50 k perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k perl-Pod-Usage noarch 1.63-3.el7 base 27 k perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k perl-Socket x86_64 2.010-3.el7 base 49 k perl-Storable x86_64 2.45-3.el7 base 77 k perl-Test-Harness noarch 3.28-2.el7 base 302 k perl-Text-ParseWords noarch 3.29-4.el7 base 14 k perl-Thread-Queue noarch 3.02-2.el7 base 17 k perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k perl-Time-Local noarch 1.2300-2.el7 base 24 k perl-constant noarch 1.27-2.el7 base 19 k perl-libs x86_64 4:5.16.3-285.el7 base 687 k perl-macros x86_64 4:5.16.3-285.el7 base 42 k perl-parent noarch 1:0.225-244.el7 base 12 k perl-podlators noarch 2.5.1-3.el7 base 112 k perl-threads x86_64 1.87-4.el7 base 49 k perl-threads-shared x86_64 1.43-6.el7 base 39 k 事务概要 ================================================================================ 安装 1 软件包 (+31 依赖软件包) 总下载量:13 M 安装大小:41 M Downloading packages: (1/32): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00 (2/32): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:02 (3/32): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00 (4/32): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:01 (5/32): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00 (6/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00 (7/32): perl-5.16.3-285.el7.x86_64.rpm | 8.0 MB 00:02 (8/32): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00 (9/32): perl-Getopt-Long-2.40-2.el7.noarch.rpm | 56 kB 00:00 (10/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00 (11/32): perl-Pod-Escapes-1.04-285.el7.noarch.rpm | 50 kB 00:00 (12/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00 (13/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00 (14/32): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00 (15/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00 (16/32): perl-Socket-2.010-3.el7.x86_64.rpm | 49 kB 00:00 (17/32): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00 (18/32): perl-Test-Harness-3.28-2.el7.noarch.rpm | 302 kB 00:00 (19/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00 (20/32): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00 (21/32): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:00 (22/32): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00 (23/32): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00 (24/32): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00 (25/32): perl-macros-5.16.3-285.el7.x86_64.rpm | 42 kB 00:00 (26/32): perl-libs-5.16.3-285.el7.x86_64.rpm | 687 kB 00:00 (27/32): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00 (28/32): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00 (29/32): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00 (30/32): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00 (31/32): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:05 perl-Carp-1.26-244.el7.noarch. FAILED http://mirrors.163.com/centos/7.1.1503/os/x86_64/Packages/perl-Carp-1.26-244.el7 .noarch.rpm: [Errno 12] Timeout on http://mirrors.163.com/centos/7.1.1503/os/x86 _64/Packages/perl-Carp-1.26-244.el7.noarch.rpm: (28, 'Operation too slow. Less t han 1000 bytes/sec transferred the last 30 seconds') 正在尝试其它镜像。 (32/32): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00 -------------------------------------------------------------------------------- 总计 439 kB/s | 13 MB 00:30 Running transaction check Running transaction test Transaction test succeeded Running transaction 正在安装 : 1:perl-parent-0.225-244.el7.noarch 1/32 正在安装 : perl-HTTP-Tiny-0.033-3.el7.noarch 2/32 正在安装 : perl-podlators-2.5.1-3.el7.noarch 3/32 正在安装 : perl-Pod-Perldoc-3.20-4.el7.noarch 4/32 正在安装 : 1:perl-Pod-Escapes-1.04-285.el7.noarch 5/32 正在安装 : perl-Encode-2.51-7.el7.x86_64 6/32 正在安装 : perl-Text-ParseWords-3.29-4.el7.noarch 7/32 正在安装 : perl-Pod-Usage-1.63-3.el7.noarch 8/32 正在安装 : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 9/32 正在安装 : perl-Exporter-5.68-3.el7.noarch 10/32 正在安装 : perl-constant-1.27-2.el7.noarch 11/32 正在安装 : perl-Time-Local-1.2300-2.el7.noarch 12/32 正在安装 : perl-Socket-2.010-3.el7.x86_64 13/32 正在安装 : perl-Carp-1.26-244.el7.noarch 14/32 正在安装 : perl-Storable-2.45-3.el7.x86_64 15/32 正在安装 : perl-PathTools-3.40-5.el7.x86_64 16/32 正在安装 : perl-Scalar-List-Utils-1.27-248.el7.x86_64 17/32 正在安装 : 4:perl-macros-5.16.3-285.el7.x86_64 18/32 正在安装 : 1:perl-Pod-Simple-3.28-4.el7.noarch 19/32 正在安装 : perl-File-Temp-0.23.01-3.el7.noarch 20/32 正在安装 : perl-File-Path-2.09-2.el7.noarch 21/32 正在安装 : perl-threads-shared-1.43-6.el7.x86_64 22/32 正在安装 : perl-threads-1.87-4.el7.x86_64 23/32 正在安装 : perl-Filter-1.49-3.el7.x86_64 24/32 正在安装 : 4:perl-libs-5.16.3-285.el7.x86_64 25/32 正在安装 : perl-Getopt-Long-2.40-2.el7.noarch 26/32 正在安装 : 4:perl-5.16.3-285.el7.x86_64 27/32 正在安装 : perl-Thread-Queue-3.02-2.el7.noarch 28/32 正在安装 : perl-Test-Harness-3.28-2.el7.noarch 29/32 正在安装 : perl-Data-Dumper-2.145-3.el7.x86_64 30/32 正在安装 : autoconf-2.69-11.el7.noarch 31/32 正在安装 : automake-1.13.4-3.el7.noarch 32/32 验证中 : perl-HTTP-Tiny-0.033-3.el7.noarch 1/32 验证中 : perl-threads-shared-1.43-6.el7.x86_64 2/32 验证中 : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 3/32 验证中 : perl-Exporter-5.68-3.el7.noarch 4/32 验证中 : perl-constant-1.27-2.el7.noarch 5/32 验证中 : perl-PathTools-3.40-5.el7.x86_64 6/32 验证中 : 1:perl-Pod-Escapes-1.04-285.el7.noarch 7/32 验证中 : automake-1.13.4-3.el7.noarch 8/32 验证中 : perl-File-Temp-0.23.01-3.el7.noarch 9/32 验证中 : 1:perl-parent-0.225-244.el7.noarch 10/32 验证中 : perl-Thread-Queue-3.02-2.el7.noarch 11/32 验证中 : perl-Test-Harness-3.28-2.el7.noarch 12/32 验证中 : 1:perl-Pod-Simple-3.28-4.el7.noarch 13/32 验证中 : perl-Time-Local-1.2300-2.el7.noarch 14/32 验证中 : perl-Pod-Perldoc-3.20-4.el7.noarch 15/32 验证中 : perl-Socket-2.010-3.el7.x86_64 16/32 验证中 : perl-Carp-1.26-244.el7.noarch 17/32 验证中 : perl-Data-Dumper-2.145-3.el7.x86_64 18/32 验证中 : perl-podlators-2.5.1-3.el7.noarch 19/32 验证中 : perl-Storable-2.45-3.el7.x86_64 20/32 验证中 : perl-Scalar-List-Utils-1.27-248.el7.x86_64 21/32 验证中 : 4:perl-macros-5.16.3-285.el7.x86_64 22/32 验证中 : perl-Pod-Usage-1.63-3.el7.noarch 23/32 验证中 : perl-Encode-2.51-7.el7.x86_64 24/32 验证中 : 4:perl-5.16.3-285.el7.x86_64 25/32 验证中 : perl-Getopt-Long-2.40-2.el7.noarch 26/32 验证中 : autoconf-2.69-11.el7.noarch 27/32 验证中 : perl-File-Path-2.09-2.el7.noarch 28/32 验证中 : perl-threads-1.87-4.el7.x86_64 29/32 验证中 : perl-Filter-1.49-3.el7.x86_64 30/32 验证中 : perl-Text-ParseWords-3.29-4.el7.noarch 31/32 验证中 : 4:perl-libs-5.16.3-285.el7.x86_64 32/32 已安装: automake.noarch 0:1.13.4-3.el7 作为依赖被安装: autoconf.noarch 0:2.69-11.el7 perl.x86_64 4:5.16.3-285.el7 perl-Carp.noarch 0:1.26-244.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-2.el7 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-PathTools.x86_64 0:3.40-5.el7 perl-Pod-Escapes.noarch 1:1.04-285.el7 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-3.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-Test-Harness.noarch 0:3.28-2.el7 perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Thread-Queue.noarch 0:3.02-2.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7 perl-libs.x86_64 4:5.16.3-285.el7 perl-macros.x86_64 4:5.16.3-285.el7 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7 perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 完毕! [root@localhost mysqli]# /usr/etc/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226
显示生成configure
配置下 php-config 路径 和 mysqli路径 为了生存mysql.so文件
参考语句:
./configure --with-php-config=/usr/local/bin/php-config --with-mysqli=/usr/bin/mysql_config
[root@localhost mysql]# ./configure --with-php-config=/usr/etc/php/bin/php-config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/etc/php checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226 checking for PHP installed headers prefix... /usr/etc/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for MySQL support... yes, shared checking for specified location of the MySQL UNIX socket... no checking for the location of libz... no checking for MySQL UNIX socket location... no checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h
下面这个是错误的 上面的是 已经安装完mysql以后的
[root@localhost mysqli]# ./configure --with-php-config=/usr/etc/php/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/etc/php
checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/etc/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for MySQLi support... yes, shared
checking whether to enable embedded MySQLi support... no
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
错误处理过程
[root@localhost mysql]# ./configure --with-php-config=/usr/etc/php/bin/php-config --with-mysql=/usr/local/bin/php-5.6.7/ext/mysql
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/etc/php
checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/etc/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for the location of libz... no
configure: error: Cannot find MySQL header files under /usr/local/bin/php-5.6.7/ext/mysql.
Note that the MySQL client library is not bundled anymore!
然后就是安装re2c 和 定义好mysql 的安装目录/usr/etc/mysql
mysql 目录为源码解压目录 本例 /usr/local/bin/php-5.6.7/ext/mysql
[root@localhost mysql]# ./configure --with-php-config=/usr/etc/php/bin/php-config --with-mysql=/usr/etc/mysql
RE2C 安装
下载地址 http://sourceforge.net/projects/re2c/files/re2c/
wget http://jaist.dl.sourceforge.net/project/re2c/re2c/0.14.2/re2c-0.14.2.tar.gz
[root@localhost mysql]# cd /usr/local/src [root@localhost src]# ls DenyHosts-2.6.tar.gz nginx-1.7.11.tar.gz php-5.6.7.tar.gz mysql-5.6.22.tar.gz phddns-2.0.6.x86_64.tar.gz [root@localhost src]# wget http://jaist.dl.sourceforge.net/project/re2c/re2c/0.14.2/re2c-0.14.2.tar.gz --2015-04-21 10:00:32-- http://jaist.dl.sourceforge.net/project/re2c/re2c/0.14.2/re2c-0.14.2.tar.gz 正在解析主机 jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed 正在连接 jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:2554944 (2.4M) [application/x-gzip] 正在保存至: “re2c-0.14.2.tar.gz” 100%[======================================>] 2,554,944 2.38MB/s 用时 1.0s 2015-04-21 10:00:34 (2.38 MB/s) - 已保存 “re2c-0.14.2.tar.gz” [2554944/2554944])
解压
[root@localhost src]# tar zxvf re2c-0.14.2.tar.gz -C /usr/local/bin
进入解压目录
[root@localhost src]# cd /usr/local/bin [root@localhost bin]# cd re2c-0.14.2
./configure 安装
[root@localhost re2c-0.14.2]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for bison... yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking Testing GCC version... found version 4.8.3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking for working volatile... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for memset... yes checking for munmap... yes checking for strdup... yes checking for strndup... yes checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating README config.status: creating makerpm config.status: creating re2c.ad config.status: creating re2c.spec config.status: creating run_tests.sh config.status: creating config_w32.h config.status: creating config.h config.status: executing depfiles commands config.status: executing default-1 commands
make make install
[root@localhost re2c-0.14.2]#make [root@localhost re2c-0.14.2]# make install
PHP 的 MYSQL扩展开启 mysql.so
下面生成扩展mysql.so 正确生成
[root@localhost mysql]# ./configure --with-php-config=/usr/etc/php/bin/php-config --with-mysql=/usr/etc/mysql checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/etc/php checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226 checking for PHP installed headers prefix... /usr/etc/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.14.2 (ok) checking for gawk... gawk checking for MySQL support... yes, shared checking for specified location of the MySQL UNIX socket... no checking for the location of libz... no checking for mysql_close in -lmysqlclient... yes checking for MySQL UNIX socket location... no checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h
编译完成的目录 后面是make make install 完成
make make install
[root@localhost mysql]# make /bin/sh /usr/local/bin/php-5.6.7/ext/mysql/libtool --mode=compile cc -I. -I/usr/local/bin/php-5.6.7/ext/mysql -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/ext/mysql/include -I/usr/local/bin/php-5.6.7/ext/mysql/main -I/usr/local/bin/php-5.6.7/ext/mysql -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib -I/usr/etc/mysql/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/bin/php-5.6.7/ext/mysql/php_mysql.c -o php_mysql.lo mkdir .libs cc -I. -I/usr/local/bin/php-5.6.7/ext/mysql -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/ext/mysql/include -I/usr/local/bin/php-5.6.7/ext/mysql/main -I/usr/local/bin/php-5.6.7/ext/mysql -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib -I/usr/etc/mysql/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/bin/php-5.6.7/ext/mysql/php_mysql.c -fPIC -DPIC -o .libs/php_mysql.o /bin/sh /usr/local/bin/php-5.6.7/ext/mysql/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/ext/mysql/include -I/usr/local/bin/php-5.6.7/ext/mysql/main -I/usr/local/bin/php-5.6.7/ext/mysql -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib -I/usr/etc/mysql/include -DHAVE_CONFIG_H -g -O2 -o mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/bin/php-5.6.7/ext/mysql/modules php_mysql.lo -Wl,-rpath,/usr/etc/mysql/lib -L/usr/etc/mysql/lib -lmysqlclient cc -shared .libs/php_mysql.o -L/usr/etc/mysql/lib -lmysqlclient -Wl,-rpath -Wl,/usr/etc/mysql/lib -Wl,-soname -Wl,mysql.so -o .libs/mysql.so creating mysql.la (cd .libs && rm -f mysql.la && ln -s ../mysql.la mysql.la) /bin/sh /usr/local/bin/php-5.6.7/ext/mysql/libtool --mode=install cp ./mysql.la /usr/local/bin/php-5.6.7/ext/mysql/modules cp ./.libs/mysql.so /usr/local/bin/php-5.6.7/ext/mysql/modules/mysql.so cp ./.libs/mysql.lai /usr/local/bin/php-5.6.7/ext/mysql/modules/mysql.la PATH="$PATH:/sbin" ldconfig -n /usr/local/bin/php-5.6.7/ext/mysql/modules ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/bin/php-5.6.7/ext/mysql/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'.
mysql.so生成 位置
/usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226/mysql.so
[root@localhost mysql]# make install Installing shared extensions: /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226/
生成完mysql.so 去php.ini(/usr/etc/php/etc/php.ini)里 修改 extension = mysql.so
和完整路径extension = /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226/mysql.so
然后就是重新编辑php (到php解压目录 重新编译/usr/local/bin/php-5.6.7)
--with-config-file-scan-dir 增加的扫描php.ini目录 --with-mysql后面跟目录 是已经生成mysql.so并且php.ini也添加上extension=mysql.so这样
编译完了 make make install 然后重启nginx php-fpm 不行就试试重启机子吧~ 平滑添加还没完好~
./configure --prefix=/usr/etc/php --with-config-file-path=/usr/etc/php/etc --enable-fpm --with-mysql=/usr/etc/mysql --with-config-file-scan-dir=/usr/etc/php/etc
[root@localhost php-5.6.7]# ./configure --prefix=/usr/etc/php --with-config-file-path=/usr/etc/php/etc --enable-fpm --with-mysql=/usr/etc/mysql --with-config-file-scan-dir=/usr/etc/php/etc checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking how to run the C preprocessor... cc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether ln -s works... yes checking for system library directory... lib checking whether to enable runpaths... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for gawk... gawk checking for bison... bison -y checking for bison version... 2.7 (ok) checking for re2c... re2c checking for re2c version... 0.14.2 (ok) checking whether to enable computed goto gcc extension with re2c... no checking whether to force non-PIC code in shared modules... no checking whether /dev/urandom exists... yes checking for pthreads_cflags... -pthread checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking whether to enable Apache charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... no checking for Apache 1.x (hooks) module support via DSO through APXS... no checking for Apache 1.x (hooks) module support... no checking whether to enable Apache charset compatibility option... no checking for Caudium support... no checking for setproctitle... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking for PS_STRINGS... no checking for CLI build... yes checking for Continuity support... no checking for embedded SAPI library support... no checking for FPM build... yes checking for setenv... yes checking for clearenv... yes checking for setproctitle... (cached) no checking for library containing socket... none required checking for library containing inet_addr... none required checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking for prctl... yes checking for clock_gettime... yes checking for ptrace... yes checking whether ptrace works... yes checking for proc mem file... mem checking if gcc supports __sync_bool_compare_and_swap... yes checking for TCP_INFO... yes checking for sysconf... yes checking for times... yes checking for kqueue... no checking for port framework... no checking for /dev/poll... no checking for epoll... yes checking for poll... yes checking for select... yes checking for apparmor... no checking for Zeus ISAPI support... no checking for LiteSpeed support... no checking for Milter support... no checking for NSAPI support... no checking for phpdbg support... no checking for phpdbg debug build... no checking for PHTTPD support... no checking for Pi3Web support... no checking whether Roxen module is build using ZTS... no checking for Roxen/Pike support... checking for thttpd... no checking for TUX... no checking for webjames... no checking for CGI build... yes checking for socklen_t in sys/socket.h... yes checking for sun_len in sys/un.h... no checking whether cross-process locking is required by accept()... no checking for chosen SAPI module... none checking for executable SAPI binaries... cli fpm cgi Running system checks checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking whether byte ordering is bigendian... no checking whether writing to stdout works... This is the test message -- yes checking for socket... yes checking for socketpair... yes checking for htonl... yes checking for gethostname... yes checking for gethostbyaddr... yes checking for yp_get_default_domain... no checking for __yp_get_default_domain... no checking for yp_get_default_domain in -lnsl... yes checking for dlopen... no checking for __dlopen... no checking for dlopen in -ldl... yes checking for sin in -lm... yes checking for inet_aton... yes checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for dirent.h... yes checking for ApplicationServices/ApplicationServices.h... no checking for sys/param.h... yes checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for netinet/in.h... (cached) yes checking for alloca.h... yes checking for arpa/inet.h... (cached) yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for crypt.h... yes checking for dns.h... no checking for fcntl.h... (cached) yes checking for grp.h... yes checking for ieeefp.h... no checking for langinfo.h... yes checking for limits.h... yes checking for locale.h... yes checking for monetary.h... yes checking for netdb.h... yes checking for pwd.h... yes checking for resolv.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... yes checking for sysexits.h... (cached) yes checking for sys/ioctl.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/mount.h... yes checking for sys/poll.h... yes checking for sys/resource.h... yes checking for sys/select.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/statfs.h... yes checking for sys/statvfs.h... yes checking for sys/vfs.h... yes checking for sys/sysexits.h... no checking for sys/varargs.h... no checking for sys/wait.h... yes checking for sys/loadavg.h... no checking for termios.h... yes checking for unistd.h... (cached) yes checking for unix.h... no checking for utime.h... yes checking for sys/utsname.h... yes checking for sys/ipc.h... yes checking for dlfcn.h... yes checking for assert.h... (cached) yes checking for fopencookie... yes checking for broken getcwd... no checking for broken libc stdio... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for missing declarations of reentrant functions... done checking for fclose declaration... ok checking for tm_gmtoff in struct tm... yes checking for struct flock... yes checking for socklen_t... yes checking size of size_t... 8 checking size of long long... 8 checking size of long long int... 8 checking size of long... 8 checking size of int... 4 checking size of intmax_t... 8 checking size of ssize_t... 8 checking size of ptrdiff_t... 8 checking size of short... 2 checking size of int... (cached) 4 checking size of long... (cached) 8 checking size of long long... (cached) 8 checking for int8... no checking for int16... no checking for int32... no checking for int64... no checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8... no checking for uint16... no checking for uint32... no checking for uint64... no checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking for struct stat.st_blksize... yes checking for struct stat.st_blocks... yes checking for struct stat.st_rdev... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for struct sockaddr_storage... yes checking for field sa_len in struct sockaddr... no checking for IPv6 support... yes checking for vprintf... yes checking for _doprnt... no checking for alphasort... yes checking for asctime_r... yes checking for chroot... yes checking for ctime_r... yes checking for cuserid... yes checking for crypt... no checking for flock... yes checking for ftok... yes checking for funopen... no checking for gai_strerror... yes checking for gcvt... yes checking for getloadavg... yes checking for getlogin... yes checking for getprotobyname... yes checking for getprotobynumber... yes checking for getservbyname... yes checking for getservbyport... yes checking for gethostname... (cached) yes checking for getrusage... yes checking for gettimeofday... yes checking for gmtime_r... yes checking for getpwnam_r... yes checking for getgrnam_r... yes checking for getpwuid_r... yes checking for grantpt... yes checking for inet_ntoa... yes checking for inet_ntop... yes checking for inet_pton... yes checking for isascii... yes checking for link... yes checking for localtime_r... yes checking for lockf... yes checking for lchown... yes checking for lrand48... yes checking for memcpy... yes checking for memmove... yes checking for mkstemp... yes checking for mmap... yes checking for nl_langinfo... yes checking for perror... yes checking for poll... yes checking for ptsname... yes checking for putenv... yes checking for realpath... yes checking for random... yes checking for rand_r... yes checking for scandir... yes checking for setitimer... yes checking for setlocale... yes checking for localeconv... yes checking for setenv... (cached) yes checking for setpgid... yes checking for setsockopt... yes checking for setvbuf... yes checking for shutdown... yes checking for sin... yes checking for snprintf... yes checking for srand48... yes checking for srandom... yes checking for statfs... yes checking for statvfs... yes checking for std_syslog... no checking for strcasecmp... yes checking for strcoll... yes checking for strdup... yes checking for strerror... yes checking for strftime... yes checking for strnlen... yes checking for strptime... yes checking for strstr... yes checking for strtok_r... yes checking for symlink... yes checking for tempnam... yes checking for tzset... yes checking for unlockpt... yes checking for unsetenv... yes checking for usleep... yes checking for utime... yes checking for vsnprintf... yes checking for vasprintf... yes checking for asprintf... yes checking for nanosleep... yes checking for nanosleep in -lrt... yes checking for getaddrinfo... yes checking for __sync_fetch_and_add... yes checking for strlcat... no checking for strlcpy... no checking for getopt... yes checking for utime.h... (cached) yes checking whether utime accepts a null argument... yes checking for working alloca.h... yes checking for alloca... yes checking for declared timezone... yes checking for type of reentrant time-related functions... POSIX checking for readdir_r... yes checking for type of readdir_r... POSIX checking for in_addr_t... yes checking for crypt_r... no General settings checking whether to include gcov symbols... no checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... /usr/etc/php/etc checking where to scan for configuration files... /usr/etc/php/etc checking whether to enable PHP's own SIGCHLD handler... no checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking whether to enable IPv6 support... yes checking whether to enable DTrace support... no checking how big to make fd sets... using system default Configuring extensions checking size of long... (cached) 8 checking size of int... (cached) 4 checking for int32_t... yes checking for uint32_t... yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for strtoll... yes checking for atoll... yes checking for strftime... (cached) yes checking which regex library to use... php checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... /usr/bin/xml2-config checking whether libxml build works... yes checking for OpenSSL support... no checking for Kerberos support... no checking whether to use system default cipher list instead of hardcoded value... no checking for PCRE library to use... bundled checking whether to enable the SQLite3 extension... yes checking bundled sqlite3 library... yes checking for ZLIB support... no checking if the location of ZLIB install directory is defined... no checking whether to enable bc style precision math functions... no checking for BZip2 support... no checking whether to enable calendar conversion support... no checking whether to enable ctype functions... yes checking for cURL support... no checking for QDBM support... no checking for GDBM support... no checking for NDBM support... no checking for TCADB support... no checking for Berkeley DB4 support... no checking for Berkeley DB3 support... no checking for Berkeley DB2 support... no checking for DB1 support... no checking for DBM support... no checking for CDB support... no checking for INI File support... no checking for FlatFile support... no checking whether to enable DBA interface... no checking whether to enable DOM support... yes checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for ENCHANT support... no checking whether to enable EXIF (metadata from images) support... no checking for fileinfo support... yes checking for strcasestr... yes checking for utimes... yes checking for strndup... yes checking whether to enable input filter support... yes checking pcre install prefix... no checking whether to enable FTP support... no checking OpenSSL dir for FTP... no checking for GD support... no checking for the location of libvpx... no checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for GNU gettext support... no checking for GNU MP support... no checking for mhash support... no checking whether to enable hash support... yes checking whether byte ordering is bigendian... (cached) no checking size of short... (cached) 2 checking size of int... (cached) 4 checking size of long... (cached) 8 checking size of long long... (cached) 8 checking for iconv support... yes checking for iconv... yes checking if iconv is glibc's... yes checking if iconv supports errno... yes checking if your cpp allows macro usage in include lines... yes checking for IMAP support... no checking for IMAP Kerberos support... no checking for IMAP SSL support... no checking for InterBase support... no checking whether to enable internationalization support... no checking whether to enable JavaScript Object Serialization support... yes checking for ANSI C header files... (cached) yes checking for LDAP support... no checking for LDAP Cyrus SASL support... no checking whether to enable multibyte string support... no checking whether to enable multibyte regex support... yes checking whether to check multibyte regex backtrack... yes checking for external libmbfl... no checking for external oniguruma... no checking for mcrypt support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for mysql_close in -lmysqlclient... yes checking for MySQL UNIX socket location... no checking for MySQLi support... no checking whether to enable embedded MySQLi support... no checking for Oracle Database OCI8 support... no checking whether to enable Zend OPcache support... yes checking for mprotect... yes checking for sysvipc shared memory support... yes checking for mmap() using MAP_ANON shared memory support... yes checking for mmap() using /dev/zero shared memory support... yes checking for mmap() using shm_open() shared memory support... yes checking for mmap() using regular file shared memory support... yes checking "whether flock struct is linux ordered"... "yes" checking "whether flock struct is BSD ordered"... "no" checking whether to enable pcntl support... no checking whether to enable PDO support... yes checking for PDO_DBLIB support via FreeTDS... no checking for Firebird support for PDO... no checking for MySQL support for PDO... no checking Oracle OCI support for PDO... no checking for ODBC v3 support for PDO... no checking for PostgreSQL support for PDO... no checking for sqlite 3 support for PDO... yes checking for PDO includes... checking for PDO includes... /usr/local/bin/php-5.6.7/ext checking for usleep... (cached) yes checking for nanosleep... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for fdatasync in -lrt... yes checking for PostgreSQL support... no checking for phar archive support... yes checking for phar openssl support... no checking whether to enable POSIX-like functions... yes checking sys/mkdev.h usability... no checking sys/mkdev.h presence... no checking for sys/mkdev.h... no checking for seteuid... yes checking for setegid... yes checking for setsid... yes checking for getsid... yes checking for setpgid... (cached) yes checking for getpgid... yes checking for ctermid... yes checking for mkfifo... yes checking for mknod... yes checking for getrlimit... yes checking for getlogin... (cached) yes checking for getgroups... yes checking for makedev... no checking for initgroups... yes checking for getpwuid_r... (cached) yes checking for getgrgid_r... yes checking for working ttyname_r() implementation... no, posix_ttyname() will be thread-unsafe checking for utsname.domainname... yes checking for PSPELL support... no checking for libedit readline replacement... no checking for readline support... no checking for recode support... no checking whether to enable PHP sessions... yes checking for mm support... no checking whether pwrite works... yes checking whether pread works... yes checking whether to enable shmop support... no checking whether to enable SimpleXML support... yes checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for SNMP support... no checking OpenSSL dir for SNMP... no checking whether to enable SOAP support... no checking whether to enable sockets support... no checking whether zend_object_value is packed... no checking whether flush should be called explicitly after a buffered io... no checking for crypt in -lcrypt... yes checking for standard DES crypt... yes checking for extended DES crypt... no checking for MD5 crypt... yes checking for Blowfish crypt... no checking for SHA512 crypt... yes checking for SHA256 crypt... yes checking whether the compiler supports __alignof__... yes checking whether the compiler supports aligned attribute... yes checking for getcwd... yes checking for getwd... yes checking for asinh... yes checking for acosh... yes checking for atanh... yes checking for log1p... yes checking for hypot... yes checking for glob... yes checking for strfmon... yes checking for nice... yes checking for fpclass... no checking for isinf... yes checking for isnan... yes checking for mempcpy... yes checking for strpncpy... no checking for working POSIX fnmatch... yes checking for fork... yes checking if your OS can spawn processes with inherited handles... yes checking for res_nsearch... no checking for __res_nsearch... no checking for res_nsearch in -lresolv... no checking for __res_nsearch in -lresolv... yes checking for dns_search... no checking for __dns_search... no checking for dns_search in -lresolv... no checking for __dns_search in -lresolv... no checking for dns_search in -lbind... no checking for __dns_search in -lbind... no checking for dns_search in -lsocket... no checking for __dns_search in -lsocket... no checking for dn_expand... no checking for __dn_expand... yes checking for dn_skipname... no checking for __dn_skipname... yes checking for res_search... no checking for __res_search... yes checking whether atof() accepts NAN... yes checking whether atof() accepts INF... yes checking whether HUGE_VAL == INF... yes checking whether HUGE_VAL + -HUGEVAL == NAN... yes checking whether strptime() declaration fails... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for mblen... yes checking for mbrlen... yes checking for mbsinit... yes checking for mbstate_t... yes checking atomic.h usability... no checking atomic.h presence... no checking for atomic.h... no checking for Sybase-CT support... no checking whether to enable System V IPC support... no checking whether to enable System V semaphore support... no checking whether to enable System V shared memory support... no checking for TIDY support... no checking whether to enable tokenizer support... yes checking whether to enable WDDX support... no checking libexpat dir for WDDX... no checking whether to enable XML support... yes checking libexpat install dir... no checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking whether to enable XMLReader support... yes checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for XMLRPC-EPI support... no checking libexpat dir for XMLRPC-EPI... no checking iconv dir for XMLRPC-EPI... no checking whether to enable XMLWriter support... yes checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for XSL support... no checking for zip archive read/writesupport... no checking pcre install prefix... no checking libzip... no checking whether to enable mysqlnd... no checking whether to disable compressed protocol support in mysqlnd... yes Configuring PEAR checking whether to install PEAR... yes Configuring Zend checking for bison version... (cached) 2.7 (ok) checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for limits.h... (cached) yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for stdarg.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for signal.h... (cached) yes checking for unix.h... (cached) no checking for stdlib.h... (cached) yes checking for dlfcn.h... (cached) yes checking for size_t... (cached) yes checking return type of signal handlers... void checking for uint... yes checking for ulong... yes checking for int32_t... yes checking for uint32_t... yes checking for vprintf... (cached) yes checking for _doprnt... (cached) no checking for working memcmp... yes checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for memcpy... (cached) yes checking for strdup... (cached) yes checking for getpid... yes checking for kill... yes checking for strtod... yes checking for strtol... yes checking for finite... yes checking for fpclass... (cached) no checking for sigsetjmp... no checking whether sprintf is broken... no checking for finite... (cached) yes checking for isfinite... no checking for isinf... (cached) yes checking for isnan... (cached) yes checking whether fp_except is defined... no checking for usable _FPU_SETCW... yes checking for usable fpsetprec... no checking for usable _controlfp... no checking for usable _controlfp_s... no checking whether FPU control word can be manipulated by inline assembler... yes checking whether double cast to long preserves least significant bits... no checking for dlfcn.h... (cached) yes checking whether dlsym() requires a leading underscore in symbol names... no checking virtual machine dispatch method... CALL checking whether to enable thread-safety... no checking whether to enable inline optimization for GCC... yes checking whether to enable Zend debugging... no checking for inline... inline checking target system is Darwin... no checking for MM alignment and log values... done checking for memory allocation using mmap(MAP_ANON)... yes checking for memory allocation using mmap("/dev/zero")... yes checking for mremap... yes checking for sigaction... yes checking whether to enable zend signal handling... no Configuring TSRM checking for stdarg.h... (cached) yes checking for sigprocmask... yes Configuring libtool checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognize dependent libraries... pass_all checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes creating libtool appending configuration tag "CXX" to libtool Generating files configure: creating ./config.status creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. config.status: creating php5.spec config.status: creating main/build-defs.h config.status: creating scripts/phpize config.status: creating scripts/man1/phpize.1 config.status: creating scripts/php-config config.status: creating scripts/man1/php-config.1 config.status: creating sapi/cli/php.1 config.status: creating sapi/fpm/php-fpm.conf config.status: creating sapi/fpm/init.d.php-fpm config.status: creating sapi/fpm/php-fpm.service config.status: creating sapi/fpm/php-fpm.8 config.status: creating sapi/fpm/status.html config.status: creating sapi/cgi/php-cgi.1 config.status: creating ext/phar/phar.1 config.status: creating ext/phar/phar.phar.1 config.status: creating main/php_config.h config.status: main/php_config.h is unchanged config.status: executing default commands [root@localhost php-5.6.7]# make /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /usr/local/bin/php-5.6.7/modules /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/standard/ -I/usr/local/bin/php-5.6.7/ext/standard/ -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/include -I/usr/local/bin/php-5.6.7/main -I/usr/local/bin/php-5.6.7 -I/usr/local/bin/php-5.6.7/ext/date/lib -I/usr/local/bin/php-5.6.7/ext/ereg/regex -I/usr/include/libxml2 -I/usr/etc/mysql/include -I/usr/local/bin/php-5.6.7/ext/sqlite3/libsqlite -I/usr/local/bin/php-5.6.7/TSRM -I/usr/local/bin/php-5.6.7/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /usr/local/bin/php-5.6.7/ext/standard/info.c -o ext/standard/info.lo /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=compile cc -Imain/ -I/usr/local/bin/php-5.6.7/main/ -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/include -I/usr/local/bin/php-5.6.7/main -I/usr/local/bin/php-5.6.7 -I/usr/local/bin/php-5.6.7/ext/date/lib -I/usr/local/bin/php-5.6.7/ext/ereg/regex -I/usr/include/libxml2 -I/usr/etc/mysql/include -I/usr/local/bin/php-5.6.7/ext/sqlite3/libsqlite -I/usr/local/bin/php-5.6.7/TSRM -I/usr/local/bin/php-5.6.7/Zend -I/usr/include -g -O2 -fvisibility=hidden -c main/internal_functions_cli.c -o main/internal_functions_cli.lo /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -L/usr/etc/mysql/lib -R /usr/etc/mysql/lib ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/ctype/ctype.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mysql/php_mysql.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_virtual_cwd.lo Zend/zend_ast.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo sapi/cli/ps_title.lo sapi/cli/php_cli_process_title.lo -lcrypt -lresolv -lcrypt -lrt -lmysqlclient -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -o sapi/cli/php /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -L/usr/etc/mysql/lib -R /usr/etc/mysql/lib ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/ctype/ctype.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mysql/php_mysql.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_virtual_cwd.lo Zend/zend_ast.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_ptrace.lo -lcrypt -lresolv -lcrypt -lrt -lmysqlclient -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -o sapi/fpm/php-fpm /bin/sh /usr/local/bin/php-5.6.7/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -L/usr/etc/mysql/lib -R /usr/etc/mysql/lib ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/ctype/ctype.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mysql/php_mysql.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_virtual_cwd.lo Zend/zend_ast.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cgi/cgi_mai n.lo sapi/cgi/fastcgi.lo -lcrypt -lresolv -lcrypt -lrt -lmysqlclient -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -o sapi/cgi/php-cgi Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. clicommand.inc directorytreeiterator.inc invertedregexiterator.inc directorygraphiterator.inc pharcommand.inc phar.inc Build complete. Don't forget to run 'make test'. [root@localhost php-5.6.7]# make install Installing shared extensions: /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226/ Installing PHP CLI binary: /usr/etc/php/bin/ Installing PHP CLI man page: /usr/etc/php/php/man/man1/ Installing PHP FPM binary: /usr/etc/php/sbin/ Installing PHP FPM config: /usr/etc/php/etc/ Installing PHP FPM man page: /usr/etc/php/php/man/man8/ Installing PHP FPM status page: /usr/etc/php/php/php/fpm/ Installing PHP CGI binary: /usr/etc/php/bin/ Installing PHP CGI man page: /usr/etc/php/php/man/man1/ Installing build environment: /usr/etc/php/lib/php/build/ Installing header files: /usr/etc/php/include/php/ Installing helper programs: /usr/etc/php/bin/ program: phpize program: php-config Installing man pages: /usr/etc/php/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/etc/php/lib/php/ [PEAR] Archive_Tar - already installed: 1.3.12 [PEAR] Console_Getopt - already installed: 1.3.1 [PEAR] Structures_Graph- already installed: 1.0.4 [PEAR] XML_Util - already installed: 1.2.3 [PEAR] PEAR - already installed: 1.9.5 Wrote PEAR system config file at: /usr/etc/php/etc/pear.conf You may want to add: /usr/etc/php/lib/php to your php.ini include_path /usr/local/bin/php-5.6.7/build/shtool install -c ext/phar/phar.phar /usr/etc/php/bin ln -s -f /usr/etc/php/bin/phar.phar /usr/etc/php/bin/phar Installing PDO headers: /usr/etc/php/include/php/ext/pdo/
生成完了 去编辑php.ini phpinfo()看php.ini位置 Configuration File (php.ini) Path
[root@localhost mysql]# cd /usr/etc/php/etc [root@localhost etc]# ls pear.conf php-fpm.conf php-fpm.conf.default php.ini
添加php的mysqli扩展 实例 参考
扩展库的路径 cd /usr/local/bin/php-5.6.7/ext/mysqli
要写的命令
[root@localhost mysql]# ./configure --with-php-config=/usr/etc/php/bin/php-config --with-mysql=/usr/etc/mysql 暂时不对 未完~
常见错误
一个很悲伤的错误 我还没安装mysql就装mysqli扩展 。。。。
[root@localhost mysqli]# ./configure --with-php-config=/usr/etc/php/bin/php-conf ig checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/etc/php checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/p hp/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/e tc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug -non-zts-20131226 checking for PHP installed headers prefix... /usr/etc/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for MySQLi support... yes, shared checking whether to enable embedded MySQLi support... no checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libra ries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h [root@localhost mysqli]# ^C [root@localhost mysqli]# make /bin/sh /usr/local/bin/php-5.6.7/ext/mysqli/libtool --mode=compile cc -I. -I/us r/local/bin/php-5.6.7/ext/mysqli -DPHP_ATOM_INC -I/usr/local/bin/php-5.6.7/ext/m ysqli/include -I/usr/local/bin/php-5.6.7/ext/mysqli/main -I/usr/local/bin/php-5. 6.7/ext/mysqli -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr /etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include /php/ext -I/usr/etc/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c / usr/local/bin/php-5.6.7/ext/mysqli/mysqli.c -o mysqli.lo mkdir .libs cc -I. -I/usr/local/bin/php-5.6.7/ext/mysqli -DPHP_ATOM_INC -I/usr/local/bin/ph p-5.6.7/ext/mysqli/include -I/usr/local/bin/php-5.6.7/ext/mysqli/main -I/usr/loc al/bin/php-5.6.7/ext/mysqli -I/usr/etc/php/include/php -I/usr/etc/php/include/ph p/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/et c/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/bin/php-5.6.7/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysql i.o In file included from /usr/local/bin/php-5.6.7/ext/mysqli/mysqli.c:34:0: /usr/local/bin/php-5.6.7/ext/mysqli/php_mysqli_structs.h:42:33: 致命错误:ext/my sqlnd/mysqlnd.h:没有那个文件或目录 #include "ext/mysqlnd/mysqlnd.h" ^ 编译中断。 make: *** [mysqli.lo] 错误 1 [root@localhost mysqli]# ./configure --with-php-config=/usr/etc/php/bin/php-conf ig --with-mysqli=/usr/bin/mysql_config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/etc/php checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/p hp/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/e tc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug -non-zts-20131226 checking for PHP installed headers prefix... /usr/etc/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for MySQLi support... yes, shared checking whether to enable embedded MySQLi support... no mysql_config not found configure: error: Please reinstall the mysql distribution [root@localhost mysqli]#
源代码包里的扩展目录
[root@localhost php-5.6.7]# cd /usr/local/bin/php-5.6.7/ext [root@localhost ext]# ls bcmath fileinfo mbstring pdo_firebird shmop tokenizer bz2 filter mcrypt pdo_mysql simplexml wddx calendar ftp mssql pdo_oci skeleton xml com_dotnet gd mysql pdo_odbc snmp xmlreader ctype gettext mysqli pdo_pgsql soap xmlrpc curl gmp mysqlnd pdo_sqlite sockets xmlwriter date hash oci8 pgsql spl xsl dba iconv odbc phar sqlite3 zip dom imap opcache posix standard zlib enchant interbase openssl pspell sybase_ct ereg intl pcntl readline sysvmsg exif json pcre recode sysvsem ext_skel ldap pdo reflection sysvshm ext_skel_win32.php libxml pdo_dblib session tidy
常见错误
[root@localhost ~]# cd /usr/etc/php/bin
[root@localhost bin]# ls
pear peardev pecl phar phar.phar php php-cgi php-config phpize
[root@localhost bin]# ./phpize
Cannot find config.m4.
Make sure that you run './phpize' in the top level source directory of the module //出现这个错误 请进入源代码解压目录的扩展目录ext
扩展ext目录 例子
[root@localhost php-5.6.7]# cd /usr/local/bin/php-5.6.7/ext [root@localhost ext]# ls bcmath fileinfo mbstring pdo_firebird shmop tokenizer bz2 filter mcrypt pdo_mysql simplexml wddx calendar ftp mssql pdo_oci skeleton xml com_dotnet gd mysql pdo_odbc snmp xmlreader ctype gettext mysqli pdo_pgsql soap xmlrpc curl gmp mysqlnd pdo_sqlite sockets xmlwriter date hash oci8 pgsql spl xsl dba iconv odbc phar sqlite3 zip dom imap opcache posix standard zlib enchant interbase openssl pspell sybase_ct ereg intl pcntl readline sysvmsg exif json pcre recode sysvsem ext_skel ldap pdo reflection sysvshm ext_skel_win32.php libxml pdo_dblib session tidy
编译安装php 的 mysqli扩展
进入源码扩展目录
[root@localhost sbin]# cd /usr/local/bin/php-5.6.7/ext/mysqli 如果没有configure 请执行phpize 在当前扩展目录(/usr/local/bin/php-5.6.7/ext/mysqli) [root@localhost mysqli]/usr/etc/php/bin/phpize 编译mysqli 主要注意这里:--with-mysqli=/usr/etc/mysql/bin/mysql_config [root@localhost mysqli]# ./configure --with-php-config=/usr/etc/php/bin/php-config --with-mysqli=/usr/etc/mysql/bin/mysql_config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/etc/php checking for PHP includes... -I/usr/etc/php/include/php -I/usr/etc/php/include/php/main -I/usr/etc/php/include/php/TSRM -I/usr/etc/php/include/php/Zend -I/usr/etc/php/include/php/ext -I/usr/etc/php/include/php/ext/date/lib checking for PHP extension directory... /usr/etc/php/lib/php/extensions/no-debug-non-zts-20131226 checking for PHP installed headers prefix... /usr/etc/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.14.2 (ok) checking for gawk... gawk checking for MySQLi support... yes, shared checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... yes checking for mysql_set_character_set in -lmysqlclient... yes checking for mysql_stmt_next_result in -lmysqlclient... yes checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged
清除编译的缓存 如果失败的话 需要重新make make install的 make clean | make distclean命令:
下面的列子就是编译失败mysqli 清理编译缓存
[root@localhost mysqli]# make clean find . -name \*.gcno -o -name \*.gcda | xargs rm -f find . -name \*.lo -o -name \*.o | xargs rm -f find . -name \*.la -o -name \*.a | xargs rm -f find . -name \*.so | xargs rm -f find . -name .libs -a -type d|xargs rm -rf rm -f libphp.la modules/* libs/*
[root@localhost mysqli]# make distclean find . -name \*.gcno -o -name \*.gcda | xargs rm -f find . -name \*.lo -o -name \*.o | xargs rm -f find . -name \*.la -o -name \*.a | xargs rm -f find . -name \*.so | xargs rm -f find . -name .libs -a -type d|xargs rm -rf rm -f libphp.la modules/* libs/* rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp.module sapi/apache_hooks/libphp.module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h rm -f php5.spec main/build-defs.h scripts/phpize rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1 rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h rm -f ext/phar/phar.phar ext/phar/phar.php if test "/usr/local/bin/php-5.6.7/ext/mysqli" != "/usr/local/bin/php-5.6.7/ext/mysqli"; then \ rm -f ext/phar/phar/phar.inc; \ fi /usr/bin/grep -E define'.*include/php' /usr/local/bin/php-5.6.7/ext/mysqli/configure | /usr/bin/sed 's/.*>//'|xargs rm -f