如何通过PHP安装BCMath数学扩展?

2026-06-09 20:022阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计1298个文字,预计阅读时间需要6分钟。

如何通过PHP安装BCMath数学扩展?

编译安装(PHP-5.6.23)+ 1. 进入PHP源码包目录下的ext/bcmath目录。

编译安装(PHP-5.6.23)

1.进入PHP源码包目录下的ext/bcmath目录。

[root@192 bcmath]# ls bcmath.c config.m4 config.w32 CREDITS libbcmath package.xml php_bcmath.h tests

2.执行phpize命令,phpize命令在PHP安装目录的bin目录下,如/usr/local/php/bin/phpize。

如何通过PHP安装BCMath数学扩展?

[root@192 bcmath]# /usr/local/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226

3.执行./configure --with-php-config=/usr/local/php/bin/php-config。要依据php-config的实际路径。

阅读全文

本文共计1298个文字,预计阅读时间需要6分钟。

如何通过PHP安装BCMath数学扩展?

编译安装(PHP-5.6.23)+ 1. 进入PHP源码包目录下的ext/bcmath目录。

编译安装(PHP-5.6.23)

1.进入PHP源码包目录下的ext/bcmath目录。

[root@192 bcmath]# ls bcmath.c config.m4 config.w32 CREDITS libbcmath package.xml php_bcmath.h tests

2.执行phpize命令,phpize命令在PHP安装目录的bin目录下,如/usr/local/php/bin/phpize。

如何通过PHP安装BCMath数学扩展?

[root@192 bcmath]# /usr/local/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226

3.执行./configure --with-php-config=/usr/local/php/bin/php-config。要依据php-config的实际路径。

阅读全文