在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
phpize扩展php模块
查看当前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 [root@localhost mysqli]# yum -y install m4 依赖关系解决 ================================================================================ 事务概要 总下载量:256 k 已安装: 完毕!
执行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这样 ./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 |
2022-07-29
2022-08-30
2022-08-17
2022-11-06
2022-08-18
请发表评论