Topic: BCMath for ClearOS PHP 5.6?

Thank you Remi for making these great packages.

I have installed PHP 5.6 into my ClearOS 7.3, following the instruction here:

It worked very well, except that my Laravel app is complaining about a missing module: bcmath. I installed the module using: yum install php56-php-bcmath.x86_64 , but this did not solve the issues. Laravel still complaining!

I'd like to know if there is anyway to enable this bcmath in PHP5.6?

Thank you again.

2 (edited by techana 2017-09-20 09:31:20)

Re: BCMath for ClearOS PHP 5.6?

It seems the problem has been encountered before in here:

But still, I cannot figure out how to over come it. The solution in the above thread is too vague. I'd appreciate a clearer hint.

I executed the following command, restarted apache, but still no support of bcmath in php:

cp /opt/remi/php56/root/usr/lib64/php/modules/ /usr/lib64/php/modules/

Re: BCMath for ClearOS PHP 5.6?

OK! I finally figured out smile

I installed a wrong bcmath package! I've a single PHP version installtion, but I installed: yum install php56-php-bcmath.x86_64 , which is wrong

The correct package I should have installed is:

yum install php-bcmath.x86_64

Laravel is working pretty well now smile

Thank you.

Re: BCMath for ClearOS PHP 5.6?


Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test