Home > Backend Development > PHP Tutorial > How to install bcmath extension script in php? (with code)

How to install bcmath extension script in php? (with code)

PHPz
Release: 2023-04-09 15:32:01
forward
4901 people have browsed it

How to install bcmath extension script in php? (with code)

phpHow to install bcmath extension script? The following article will introduce to you how to install the bcmath extension script in PHP. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

#!/bin/bash

bcmath_ini=/etc/php.d/40-bcmath.ini

## 安装bcmath扩展
cd /data/softs
sudo tar zxvf php-5.6.30.tar.gz
cd /data/softs/php-5.6.30/ext/bcmath/
sudo phpize
sudo ./configure
make &&make install


## 增加扩展配置
cat > $bcmath_ini <<EOF
; Enable bcmath extension module
extension = bcmath.so
EOF


echo "bcmath安装完成......"
Copy after login

For more programming-related knowledge, please visit: Introduction to Programming! !

The above is the detailed content of How to install bcmath extension script in php? (with code). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template