Hi, I installed the following php bundles: php-basic, php-extras and php-basic-dev.
I ran the following command:
php -r "phpinfo();"
And I got the following error:
PHP Fatal error: Unable to start pcre module in Unknown on line 0
I’m assuming that the pcre module was already installed through one of the php bubdles. Do I need to configure something else to get php to run in the cli. As a side note, I am not going to be running php to serve a web app, I just need it for running arcanist
The only solution until the next release is to downgrade your system.
That can be done with
sudo swupd repair --picky -m [osversion]
Or
sudo swupd repair -m [osversion] --bundles=[bundle1,bundle2]
opened 03:42PM - 30 May 20 UTC
closed 10:20PM - 01 Jun 20 UTC
bug
Just started today. I'm on the rolling release.
```bash
php --version
```
…
```
PHP Fatal error: Unable to start pcre module in Unknown on line 0
```
Tested on fresh install inside vm:
```bash
sudo swupd bundle-add php-basic
```
```bash
php -S localhost:4000
```
```
[Sat May 30 11:40:02 2020] PHP Fatal error: Unable to start pcre module in Unknown on line 0
```
And the official docker image
```bash
sudo docker pull clearlinux/php-fpm
```
```
Using default tag: latest
latest: Pulling from clearlinux/php-fpm
30c7c5b56447: Pull complete
d53ad32a8386: Pull complete
c3c523c5f37c: Pull complete
0b5595f8c6a1: Pull complete
14482b385674: Pull complete
f0aeb79afdf4: Pull complete
Digest: sha256:1dfe421990bbd12bc907ee0ee60dc93ac6c27007ff7bb70e83a36e6f700e31b6
Status: Downloaded newer image for clearlinux/php-fpm:latest
docker.io/clearlinux/php-fpm:latest
```
```bash
sudo docker run --name some-php-fpm clearlinux/php-fpm
```
```
[30-May-2020 15:48:06] NOTICE: PHP message: PHP Fatal error: Unable to start pcre module in Unknown on line 0
```
@ahkok
https://cdn.download.clearlinux.org/update/
Alright, thanks for helping me out.
if you are on 33250 and need to get the patch, and your system isn’t seeing an update, the fix that worked for me was:
sudo swupd repair -m 33260 --picky
13 files did not match
13 of 13 files were repaired
You can run
sudo swupd diagnose -m 33260
first see what to expect from the repair.
I did an update to 33260 just now and I’m not seeing the error anymore.
clearvm ~ » sudo swupd info
Distribution: Clear Linux OS
Installed version: 33260
Version URL: https://cdn.download.clearlinux.org/update
Content URL: https://cdn.download.clearlinux.org/update
clearvm ~ » php -r "phpinfo();"
[1092/1237]phpinfo()
PHP Version => 7.4.5
...
Thanks for tracking this to resolution and relaying the information between the forums and GitHub @inmanturbo