-1
I’m trying to install Zabbix in my notebook Ubuntu 18.04 and when it comes time to configure in the browser appears this message
I’ve used this command on the terminal apt-get install php-bcmath
and then I rebooted Apache and it didn’t work out, how can I activate?
Try
sudo apt-get install php7.0-bcmath
,sudo apt-get install php7.1-bcmatch
orsudo apt-get install php7.2-bcmath
etc. It depends on your version of PHP. Without informing it, it is difficult.– Valdeir Psr
sudo apt-get install php7.0-bcmatch Reading package lists... Ready Building dependency tree Reading status information... Ready E: Impossible to find php7.0-bcmatch E: Couldn’t find any package by glob 'php7.0-bcmatch' E: Could not find the package via the regular expression 'php7.0-bcmatch' When I put 7.1 or 7.2 it gives the same answer
– Daniel Araújo
What version of your PHP
php -v
? You can also use the commandsudo apt-cache search bcmath
– Valdeir Psr
This is PHP 7.1.15-0
– Daniel Araújo
Then you can use the
sudo ... php7.1-bcmath
Or theapt-cache
as cited.– Valdeir Psr
apt-cache php7.1-bcmath?
– Daniel Araújo
sudo apt-get install php7.1-bcmath
if it doesn’t work usesudo apt-cache search bcmath
to see what options you can use.– Valdeir Psr
daniel@DanielPC:~$ sudo apt-cache search bcmath
php-bcmath - Bcmath module for PHP [default]
php7.2-bcmath - Bcmath module for PHP
daniel@DanielPC:~$ sudo apt-get install php7.2-bcmatch
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
E: Impossível encontrar o pacote php7.2-bcmatch
E: Couldn't find any package by glob 'php7.2-bcmatch'
E: Não foi possível encontrar o pacote através da expressão regular 'php7.2-bcmatch'
– Daniel Araújo
package not found
– Daniel Araújo
@Valdeirpsr managed to solve, I updated php to version 2 and then used sudo
apt-get install php7.2-bcmath
and the problem was solved, thank you very much for your help!– Daniel Araújo