简体   繁体   English

"如何在 xampp Ubuntu 18.04 中安装\/启用 GD?"

[英]How to install/enable GD in xampp Ubuntu 18.04?

I Can't figure out how to install php-gd for PHP7.2.11.我不知道如何为 PHP7.2.11 安装 php-gd。 Is there any way to install/enable GD extension in xampp Ubuntu 18.04?有没有办法在 xampp Ubuntu 18.04 中安装/启用 GD 扩展? I checked the php.ini file but I can't find php_gd2.so line.Any suggestions??我检查了 php.ini 文件,但找不到php_gd2.so行。有什么建议吗?

Under Linux you have ".so" files.在 Linux 下,您有“.so”文件。 You can install it very easy over the package manager.您可以通过包管理器轻松安装它。 Check before if the package is installed:之前检查是否安装了软件包:

dpkg -l|grep php7.2-gd

If not then install it via apt.如果没有,则通过apt安装它。

apt install php7.2-gd

If you have an oder version then use apt-get install .如果您有 oder 版本,请使用apt-get install It is possible that this package is used and installed by default that is thy you should check, if it's already installed.有可能默认情况下使用和安装了这个包,如果它已经安装,你应该检查一下。

sudo add-apt-repository ppa:ondrej/php sudo apt-get install php7.2-gd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM