我正在尝试在 ubuntu 服务器上安装swool
然后perl
出现以下错误:
ERROR: `phpize' failed
当我搜索时,我发现我应该安装,php-dev
但随后出现以下错误:
The following packages have unmet dependencies:
php8.2-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: shtool but it is not installable
Depends: libtool (>= 2.4.6-0.1~) but it is not installable
Recommends: pkg-php-tools but it is not installable
E: Unable to correct problems, you have held broken packages.
我找不到任何解决方案https://stackoverflow.com或者https://askubuntu.com如果你能帮助我,那就太好了
答案1
PHP 8.2 不在默认的 Ubuntu 20.04 存储库中,因此您必须使用ppa:ondrej/php
。您没有提到是否正在使用它。
这是我刚刚测试的,它可以在我的 Ubuntu 20.04 机器上运行:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt upgrade
sudo apt install php8.2-dev