尝试在 SimpleSAML 项目上运行 composer update
时出现以下错误。
- 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
原文由 Sam Malayek 发布,翻译遵循 CC BY-SA 4.0 许可协议
要在 Ubuntu 上安装 PHP7.0 的 GMP,请运行:
sudo apt-get install php7.0-gmp
确保您的
php.ini
包含以下内容:extension=php_gmp.so
要找出您的
php.ini
所在的位置,请运行:php --ini