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: http://wikisuite.org/How-to-install-PHP-5-6-on-ClearOS

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: https://forum.remirepo.net/viewtopic.php?id=3515

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/bcmath.so /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?

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi