如何在 Ubuntu 上为 PHP7 安装 GMP [英] How to install GMP for PHP7 on Ubuntu
本文介绍了如何在 Ubuntu 上为 PHP7 安装 GMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 SimpleSAML 项目上尝试运行 composer update
时遇到以下错误.
I was getting the following error when trying to run composer update
on a SimpleSAML project.
- openid/php-openid dev-master requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
运行 sudo apt-get install php5-gmp
不起作用,sudo apt-get install php7-gmp
推荐答案
要在 Ubuntu 上安装 GMP for PHP7.0,请运行:sudo apt-get install php7.0-gmp
To install GMP for PHP7.0 on Ubuntu, run:
sudo apt-get install php7.0-gmp
确保您的 php.ini
包含以下内容:extension=php_gmp.so
Make sure your php.ini
contains the following:
extension=php_gmp.so
要找出您的 php.ini
所在的位置,请运行:php --ini
To find out where your php.ini
is located, run:
php --ini
这篇关于如何在 Ubuntu 上为 PHP7 安装 GMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文