I do everything according to the instructions: PHP | "The requested PHP extension bcmath is missing from your system."
apt-get update
apt-get install php7.2-bcmath
I get:
Reading package lists… Done Building dependency tree Reading state
information… Done E: Unable to locate package php7.2-bcmath E:
Couldn’t find any package by regex ‘php7.2-bcmath’
Why the system cannot find this module?
2
Answers
It doesn't work for me. I added the code to the file (8th line)
and it shows the error:
So I added at the end last line: "jessie main"
Now I have the same as before:
Why am I still unable to install this package?
Use deb.sury.org
Just add https://packages.sury.org/php/ to Your apt/sources.list, and voila. There is php7.2-bcmath and a lot of other php stuff