在ubuntu上安装php70-gd [英] install php70-gd on ubuntu
本文介绍了在ubuntu上安装php70-gd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近,新的php7已发布.但是,当我尝试安装gd软件包时,找不到该库.
Recently the new php7 has been released. However, when I am trying to install the gd package, the library can not be found.
我已经尝试过
sudo apt-get install php70-gd
和
sudo apt-get install php70-php-gd
有人知道gd是否可用于php 7吗?
Does anybody have an idea if gd is available for php 7?
推荐答案
可通过下一步,安装所需的版本:
Next, install the desired version:
sudo apt-get install php7.0-gd
# or
sudo apt-get install php7.1-gd
# or
sudo apt-get install php7.2-gd
# or
sudo apt-get install php7.3-gd
# or
sudo apt-get install php7.4-gd
如 MacroMan所述,在Ubuntu 16.04下,您不需要再添加存储库.只需发布sudo apt-get install php7.0-gd
作品即可.
As MacroMan stated, under Ubuntu 16.04 you don't need to add the repository any more. Simply issuing sudo apt-get install php7.0-gd
works.
这篇关于在ubuntu上安装php70-gd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文