介绍
本篇文章给大家分享的是有关如何在PHP中安装BCMath扩展,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。
<强> 1。进入PHP源码包目录下的ext/bcmath目录。强>
[root@192 bcmath] #, ls bcmath.c config.m4  config.w32 CREDITS libbcmath  package.xml php_bcmath.h 测试
<强> 2。phpize phpize执行命令,命令在PHP安装目录的本目录下,如/usr/地方/PHP/bin/phpize。强>
[root@192 bcmath] #,/usr/地方/PHP/bin/phpize Configuring 为: PHP Api 版本:,,,,,20131106 Zend Module  Api 没有:,,,20131226 Zend Extension  Api 没有:220131226,
<强> 3。执行。/configure——with-php-config=/usr/地方/php/bin/php-config。要依据php-config的实际路径。强>
[root@192 bcmath] #,。/configure ——with-php-config=/usr/地方/php/bin/php-config checking for  grep that handles  long lines 以及- e…,/usr/bin/grep checking for  egrep…,/usr/bin/grep - e checking for  a sed that  does not truncate 输出…,/usr/bin/sed checking for  cc…cc checking whether 从而C compiler 工作……,是的 checking for  C compiler default  output file 名字…a.o ut checking for  suffix of 可执行文件……, checking whether 断开连接;cross 编译…,我方表示歉意 checking for  suffix of  object 文件…,o checking whether 断开连接;using 我方表示歉意,GNU C 编译器…,是的 checking whether  cc accepts - g…,是的 checking for  cc option 用accept ISO C89…, none 需要 checking 请用run 从而C 预处理器…,cc - e checking for  icc…没有 checking for  suncc…没有 checking whether  cc understands  -c 以及-o 在一起…,是的 checking for  system library 目录…自由 checking if  compiler supports - r…没有 checking if  compiler supports - wl, rpath,……,是的 checking build  system 类型…x86_64-unknown-linux-gnu checking host  system 类型…x86_64-unknown-linux-gnu checking target  system 类型…x86_64-unknown-linux-gnu checking for  PHP 前缀…,/usr/地方/php checking for  PHP 包括…,- i/usr/地方/php/include/PHP i/usr/地方/php/include/php/main i/usr/地方/php/include/php/TSRM i/usr/地方/php/include/php/Zend i/usr/地方/php/include/php/ext i/usr/地方/php/include/php/lib/ext/日期 checking for  PHP extension 目录…,/usr/地方/php/lib/php/扩展/不-调试-非zt型- 20131226 checking for  PHP installed  headers 前缀…,/usr/地方/php/include/php checking if  debug is 使…不 checking if  zts is 使…不 checking for  re2c…没有 配置:警告:,你will need re2c 0.13.4 或是later if 你want 用regenerate PHP 解析器。 checking for 呆呆的…,呆呆的 checking whether 用enable bc  style precision math 功能…,是的,共享 checking for  ld used by  cc…,/usr/bin/ld checking if 从而linker (/usr/bin/ld), is GNU ld…,是的 checking for /usr/bin/ld option 用reload object 文件…,- r checking for  BSD-compatible 纳米…,/usr/bin/nm - b checking whether  ln -s 工作……,是的 checking 请用recognize dependent 图书馆……pass_all checking for  ANSI C  header 文件…,是的 checking for  sys/types.h…,是的 checking for  sys/stat.h…,是的 checking for  stdlib.h…,是的 checking for  string.h…,是的 checking for  memory.h…,是的 checking for  strings.h…,是的 checking for  inttypes.h…,是的 checking for  stdint.h…,是的 checking for  unistd.h…,是的 checking dlfcn.h 可用性……,是的 checking dlfcn.h 存在……,是的 checking for  dlfcn.h…,是的 checking 从而,maximum length of  command line 参数…,1572864 checking command 用parse /usr/bin/nm -B output 得到cc 对象…,好吧 checking for  objdir…, . lib null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null如何在PHP中安装BCMath扩展