[英]Unable to install php7.1-bcmath on ubuntu 16.04
When I run the following command : composer require sonata-project/notification-bundle
I have this error: 当我运行以下命令时:
composer require sonata-project/notification-bundle
我有此错误:
- php-amqplib/php-amqplib v2.7.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
- php-amqplib/php-amqplib v2.7.1 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
- php-amqplib/php-amqplib v2.7.0 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
- sonata-project/notification-bundle 3.4.0 requires enqueue/amqp-lib ^0.8 -> satisfiable by enqueue/amqp-lib[0.8.0, 0.8.10, 0.8.11, 0.8.12, 0.8.13, 0.8.15, 0.8.2, 0.8.21, 0.8.23, 0.8.4, 0.8.5, 0.8.9].
Apparently bcmath is missing so I have run this: 显然bcmath丢失了,所以我运行了此命令:
sudo apt-get install php7.1-bcmath
And I get the error below: 我得到下面的错误:
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'
Any idea what causing the problem ? 知道导致问题的原因吗?
Symfony 4 php 7.1 Ubuntu 16.04 Symfony 4 PHP 7.1的Ubuntu 16.04
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1-bcmath
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.