我想在Debian Buster上安装apfd PHP扩展,但看起来系统找不到它。
链接到扩展:https://pecl.php.net/package/apfd
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-14-cloud-amd64PHP版本:
$ php --version
PHP 7.3.27-9+0~20210223.81+debian10~1.gbpa4a3d6 (cli) (built: Feb 23 2021 16:47:00) ( NTS )即使在apt更新之后,它也不像其他php包一样在apt列表中可用:
$ sudo apt search apfd
Sorting... Done
Full Text Search... Done
texlive-fonts-recommended/stable 2018.20190227-2 all
TeX Live: Recommended fonts这就是我想要做的:
$ sudo apt install php7.3-apfd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3-apfd
E: Couldn't find any package by glob 'php7.3-apfd'
E: Couldn't find any package by regex 'php7.3-apfd'以及:
$ sudo apt install php7-apfd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7-apfd我已经更新了apt,ondrej-php。
这很奇怪,因为我总是使用这个Ansible任务来安装PHP包,并且从来没有遇到过这样的问题:
- name: Install additional PHP modules required by PHP Unit
apt: pkg=php7.3-{{ item }} state=present
loop: "{{ php_modules }}"
when: php_version != 5
notify: restart fpm
php_modules:
- xml
- mbstring
- curl
- bcmath
- bz2
- dba
- soap
- zip
- intl
- gd
- imagick
- apfd使用apfd运行此Ansible任务时发生以下错误:
"item": "apfd",
"msg": "No package matching 'php7.3-apfd' is available"我完全不知道该怎么解决它。我可以使用前面提到的Ansible任务成功地安装其他php包,如imagick、gd、intl或soap。
发布于 2021-03-23 16:27:38
多亏了@Zeitounator,我设法安装了扩展。
步骤:
php-pear和php{{ php_version }}-dev:命令行版本:
sudo apt install php-pear php7.3-dev可能的版本:
- name: Install PHP packages
apt: pkg={{ item }} state=present
loop:
- php-pear
- php7.3-devcommunity.general to use community.general.pear Ansible模块:ansible-galaxy collection install community.general 安装apfd扩展
命令行版本:
pecl install apfd可能的版本:
- name: Install pear package
community.general.pear:
name: pecl/apfd
state: presenthttps://stackoverflow.com/questions/66753988
复制相似问题