如何在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上为PHP7.0安装GMP,请运行:
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屋!
查看全文