Closed the-csaba closed 1 year ago
What's the output of
which -a php
brew info php
?
Also, what's the output of
brew info aom
? aom
was revision-bumped on Jan 25 due to jpeg-xl
's version bump, so brew upgrade
should've upgraded that too.
Just ran php -v
from a fresh brew install php
in GitHub Actions, and it works fine. php
also does not show any linkage to aom
or jpeg-xl
.
Your php
is likely one (or more) of:
None of the above is supported. If it's outdated but installed from homebrew-core
, please do brew update && brew upgrade php
. We can reopen this if that doesn't fix it. If you installed it from a third-party tap, please report this to that tap instead.
@carlocab , @gromgit :
β― which -a php
/opt/homebrew/bin/php
β― brew info php
==> php: stable 8.2.2 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
/opt/homebrew/Cellar/php/8.2.2 (519 files, 83.3MB) *
Poured from bottle using the formulae.brew.sh API on 2023-02-06 at 10:01:47
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb
License: PHP-3.01
==> Dependencies
Build: httpd β, pkg-config β
Required: apr β, apr-util β, argon2 β, aspell β, autoconf β, curl β, freetds β, gd β, gettext β, gmp β, icu4c β, krb5 β, libpq β, libsodium β, libzip β, oniguruma β, openldap β, openssl@1.1 β, pcre2 β, sqlite β, tidy-html5 β, unixodbc β
==> Options
--HEAD
Install HEAD version
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module $(brew --prefix)/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
$(brew --prefix)/etc/php/8.2/
To start php now and restart at login:
brew services start php
β― brew info aom
==> aom: stable 3.5.0 (bottled)
Codec library for encoding and decoding AV1 video streams
https://aomedia.googlesource.com/aom
/opt/homebrew/Cellar/aom/3.5.0_2 (23 files, 8.5MB) *
Poured from bottle using the formulae.brew.sh API on 2023-02-06 at 12:00:05
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/aom.rb
License: BSD-2-Clause
==> Dependencies
Build: cmake β, pkg-config β
Required: jpeg-xl β, libvmaf β
php
also does not show any linkage to aom or jpeg-xl.
No, it doesn't state linkage, but a similar problem happened in the past: https://web.archive.org/web/20190629045728/https://github.com/Homebrew/homebrew-php/issues/4358
Let me tell you, the php package was not built from source, was not outdated, and not installed from a third party. Yesterday I spent three hours figuring out the problem and reporting it here. Closing an issue without understanding or investigating is a frustrating experience that genuinely discourages people from participating.
β― brew info aom ==> aom: stable 3.5.0 (bottled) Codec library for encoding and decoding AV1 video streams https://aomedia.googlesource.com/aom /opt/homebrew/Cellar/aom/3.5.0_2 (23 files, 8.5MB) * Poured from bottle using the formulae.brew.sh API on 2023-02-06 at 12:00:05
You're now running a different version of aom
than when you first reported your issue. Is php -v
still throwing errors?
I can't remember, but I probably have the same version. I have DevOps responsibilities, so I run brew update && brew upgrade
every workday. And it was updated two weeks ago according to the aom.rb file history.
However, at some point, I reinstalled the aom (brew reinstall aom --force
) because I had some error when I tried to install jpeg-xl.
I can't remember, but I probably have the same version.
To be clear, your original report said:
Referenced from: <A72D24E1-5548-35C3-9838-2ED81CBCD000> /opt/homebrew/Cellar/aom/3.5.0_1/lib/libaom.3.5.0.dylib
That's aom
3.5.0 revision 1. From 2 hours ago:
/opt/homebrew/Cellar/aom/3.5.0_2 (23 files, 8.5MB) *
That's aom
3.5.0 revision 2, which no longer references libjxl
1.0.7:
$ brew linkage aom
System libraries:
/usr/lib/libSystem.B.dylib
/usr/lib/libc++.1.dylib
Homebrew libraries:
/opt/homebrew/opt/highway/lib/libhwy.1.dylib (highway)
/opt/homebrew/opt/jpeg-xl/lib/libjxl.0.8.dylib (jpeg-xl)
/opt/homebrew/opt/libvmaf/lib/libvmaf.1.dylib (libvmaf)
Indirect dependencies with linkage:
highway
Variable-referenced libraries:
@rpath/libaom.3.dylib
Running php -v
should confirm whether that upgrade fixed your issue.
Thank you for pointing that out. Now it makes sense how the error happened in the first place. So, let me reconstructure what happened:
jpeg-xl
from 0.7.0
to 0.8.0
,aom
from 3.5.0_1
to 3.5.0_2
for some reasonThese two things caused aom to panic because it expected a different version of jpeg-xl, which ultimately made php
fail.
I now have aom 3.5.0_2, jpeg-xl 0.8.1 and php 8.2.2 working well as intended. All poured from bottle.
I appreciate the help
I wonder if this could be a JSON API issue. Would need data at time of issue to know for sure.
If it was an API issue, then shouldn't be seen in near term as default usage of API was reverted.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
run php script
What happened (include all command output)?
What did you expect to happen?
run php without error
Step-by-step reproduction instructions (by running
brew
commands)