geerlingguy / ansible-role-php-pecl

Ansible Role - PHP PECL extension
https://galaxy.ansible.com/geerlingguy/php-pecl/
MIT License
32 stars 37 forks source link

Error installing mcrypt extension #17

Closed ghachey closed 3 years ago

ghachey commented 3 years ago

Looking for apcu.so?! Also has a warning WARNING: channel \"pecl.php.net\" has updated its protocols, use \"pecl channel-update pecl.php.net\" to update

TASK [geerlingguy.php-pecl : Install PECL libaries.] ***************************
failed: [testing-deb10.domain.com] (item=mcrypt-1.0.2) => {"ansible_loop_var": "item", "changed": false, "cmd": "yes '' | pecl install mcrypt-1.0.2", "delta": "0:00:02.455543", "end": "2021-01-31 15:05:28.362725", "failed_when_result": true, "item": "mcrypt-1.0.2", "msg": "non-zero return code", "rc": 1, "start": "2021-01-31 15:05:25.907182", "stderr": "PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20180731/apcu.so (/usr/lib/php/20180731/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/apcu.so.so (/usr/lib/php/20180731/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0", "stderr_lines": ["PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20180731/apcu.so (/usr/lib/php/20180731/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/apcu.so.so (/usr/lib/php/20180731/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"], "stdout": "WARNING: channel \"pecl.php.net\" has updated its protocols, use \"pecl channel-update pecl.php.net\" to update\ndownloading mcrypt-1.0.2.tgz ...\nStarting to download mcrypt-1.0.2.tgz (33,698 bytes)\n.........done: 33,698 bytes\n6 source files, building\nrunning: phpize\nsh: 1: phpize: not found\nERROR: `phpize' failed", "stdout_lines": ["WARNING: channel \"pecl.php.net\" has updated its protocols, use \"pecl channel-update pecl.php.net\" to update", "downloading mcrypt-1.0.2.tgz ...", "Starting to download mcrypt-1.0.2.tgz (33,698 bytes)", ".........done: 33,698 bytes", "6 source files, building", "running: phpize", "sh: 1: phpize: not found", "ERROR: `phpize' failed"]}

Using ansible 2.10.4 with python 3.8.5. And I believe I am using ansible-rol-php-pecl 2.0.0. Running the role on a Clean minimal Debian 10 VM.

stale[bot] commented 3 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 3 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.