php - 如何在 Wheezy Debian php 5.6 中安装 php5-gd

标签 php debian gd php-gd

我的 2 个站点无法正常工作,因为我无法将 php5-gd 库安装到 Debian Wheezy php5.6 ...

我试过了

aptitude 安装 php5-gd,系统说我缺少 2 个依赖项,我无法找到或安装...

aptitude install php5-gd

sudo apt-get install php5-gd

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:

php5-gd :
Depends: libt1-5 (>= 5.1.0) but it is not installable

Depends: libvpx1 (>= 1.0.0) but it is not installable

E: Unable to correct problems, you have held broken packages.

最佳答案

你有没有先更新你的apt-get?

首先,运行:

sudo apt-get update

然后如果成功运行;

sudo apt-get upgrade

如果你跑 df-lah

首先,它可能会显示您的/boot 处于 100% 尝试; sudo apt-get autoremove

然后从头开始,然后试试你的php5-gd

当失败时 尝试:

sudo apt-get install -f

关于php - 如何在 Wheezy Debian php 5.6 中安装 php5-gd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57542970/

相关文章:

php 数据库查询 (phpMyAdmin) 只将一个值(第一个)带回 amcharts

php - PHP MYSQL、latin1_swedish_ci 和 utf8_general_ci 的非法混合排序规则

php - 如何通过 PHP 在 mysql 中插入外部文件的一部分?

ubuntu - 如何在不重新编译任何未更改的文件的情况下重建 Ubuntu 内核源代码?

php - 如何将 PNGS 与 alpha channel 合并为一个更大的图像?

php - 如何使用 PHP GD 显示动态生成的内联图像

php - SQL、PHP 导出到 CSV 静态字段

ssh - 使用 SSH 下载 FTP 数据

ansible - 创建系统接口(interface)名称列表及其 MAC 地址

php - 如何遍历图像的所有像素?