Ich benutze einen Ubuntu 16 Server zum Testen mit php7.1
. Eine meiner Apps verwendet die Funktion bcadd
. Ich weiß, dass ich dafür das bcmath
Modul installieren muss, aber ich kann php7.1-bcmath
Nicht finden. Als ich versuchte, apt install php-bcmath
Zu installieren, installierte es einfach das php7.0-bcmath
- Modul.
Ich konnte das Modul php7.1-bcmath
Nirgends finden, um es auf meinem Server zu installieren. Hat jemand eine Idee?
apt install php7.1-bcmath
Hat Folgendes zurückgegeben:
E: Unable to locate package php7.1-bcmath
E: Couldn't find any package by glob 'php7.1-bcmath'
E: Couldn't find any package by regex 'php7.1-bcmath'
Beantwortung meiner eigenen Frage. Behebung des Problems mit folgendem Repo-Update.
add-apt-repository ppa:ondrej/php
apt update
apt install php7.1-bcmath
Starten Sie Apache neu und los geht's.
installieren Sie dies: https://packages.ubuntu.com/fr/artful/AMD64/php7.1-bcmath/download
füge das hinzu :
deb http://security.ubuntu.com/ubuntu artful-security main universe
zu /etc/apt/sources.list
$ Sudo apt update
$ Sudo apt install php7.1-bcmath