[MacPorts] #64741: php81 Unable to start pcre module
MacPorts
noreply at macports.org
Fri Mar 4 11:22:33 UTC 2022
#64741: php81 Unable to start pcre module
---------------------------+--------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: pcre
Port: php81 |
---------------------------+--------------------
Comment (by ryandesign):
Replying to [ticket:64741 ShadSterling]:
> {{{
> Fatal error: Unable to start pcre module in Unknown on line 0
> }}}
Hmm, I haven't encountered this before. Googling this error, I found
[https://stackoverflow.com/questions/62350107/php-fatal-error-unable-to-
start-pcre-module-in-unknown-on-line-0 a page] suggesting it could be
caused by copies of libpcre in /usr/local/lib. Do you have anything in
/usr/local/lib? If so, I recommend removing what you have in /usr/local;
see wiki:FAQ#usrlocal.
Replying to [comment:1 ShadSterling]:
> Looks like installing `pcre2` fixed it. But `pcre2` is listed as a
library dependency of `php81`, so how did `php81` get installed without
one of its dependencies?
I cannot imagine any way that that could have happened.
Replying to [comment:2 ShadSterling]:
> After running my routine update cycle for the first time after upgrading
to Monterey, the error returned, and this time reinstalling `pcre2` didn't
fix it.
That's curious.
> Turns out `php73` is not affected, so until newer versions are usable
I'll be using `php73`
That's curious too. If anything I would have expected you to say that
php72 and earlier are not affected but php73 and later are. php72 and
earlier use pcre while php73 and later use pcre2.
--
Ticket URL: <https://trac.macports.org/ticket/64741#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list