php7.2 installation bcmath extension

Today, just to use bcadd () function, the result of an error, the next Baidu because there is no installation bcmath extension.

Then install chant, search for a moment, I was yum install php7.2, extensions can be installed yum

Ah, yum is really a great tool

Well, we started

1. Type the command (72W is the php version, there is a chance without an error)

yum install php72w-bcmath
carriage;

2.ok, the installation is complete, restart Apache or Nginx server on the list, you see playing is as simple as that!

ps: Of course, the proposal is still under server restart, restart Nginx for example, I have no effect, or restart Dafa good!

shutdown -r now # restart immediately

Guess you like

Origin blog.51cto.com/13293070/2439064