Sites using PHP 7.4.1 and PHP 8.0 cannot “open site shell”, but Sites using PHP 7.3.5 can
This is when using the ZSH shell
When using Bash, it works fine.
The exact issue is:
See terminal output:
WP-CLI: WP-CLI 2.5.0-alpha
Composer: 1.10.8 2020-06-24
PHP: 7.4.1
MySQL: mysql Ver 8.0.16 for Linux on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /usr/bin/zsh ...
/usr/bin/zsh: /home/tlock/.config/Local/lightning-services/php-7.4.1+14/bin/linux/shared-libs/libm.so.6: version `GLIBC_2.29' not found (required by /usr/bin/zsh)
Troubleshooting Questions
-Does this happen for all sites in Local, or just one in particular?
all, given the conditions listed above
Replication
-Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
Use zsh shell, php 7.4 or php 8.0, on debian/ubuntu
System Details
-Which version of Local is being used?
5.9.8 (but this has been an issue from the 2 or three major versions I have used)
What Operating System (OS) and OS version is being used?
Linux - Pop OS 20.10 (ubuntu/deb) (but this has been an issue on previous OS versions 19.10, 20.04 as well)
WP-CLI: WP-CLI 2.5.0-alpha
Composer: 1.10.8 2020-06-24
PHP: 7.4.1
MySQL: mysql Ver 8.0.16 for Linux on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /usr/bin/zsh ...
/usr/bin/zsh: /home/jrrodriguez/.config/Local/lightning-services/php-7.4.1+14/bin/linux/shared-libs/libm.so.6: version `GLIBC_2.29' not found (required by /usr/bin/zsh)
Hello, I’m experiencing similar problem. When creating new site on 7.4.1 I cannot access to database through adminer or open site shell.
Thank you @ben.turner . Just installed 5.10.3 and checked, the problem is still present.
The only thing I use “open site shell” for is WP-CLI. Currently, I would have to change my shell from ZSH to Bash (log out and log back in), then I can. To avoid this I have been trying to use a global install of WP CLI rather than the one bundled with the Local container/VM (sorry I don’t know how Local works under the hood), but this doesn’t work for me. Will search the forums for a workaround, but if the Dev team is actively working on supporting ZSH on linux, that would be amazing!
@ben.turner Hi Ben, just downloaded 5.10.4 and checked, issue is still present. Figured its worth a ping on this thread. I’ll keep pinging on releases so that this thread doesn’t auto-close.
There should be a fix deployed, however this had more to do with the Lightning Services (php configuration).
Right now, Local doesn’t have a good way of updating those easily, but it’s something we want to improve on. Can you try manually downloading the latest PHP Lightning Service by following the steps outlined in this FAQ: