New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation of PHP 8.1 fails #1278
Labels
Comments
It seems that the The probable reason is: the |
Using the following steps to verify and reproduce the issue in the Ubuntu 20.04: $ phpbrew --debug install 8.0 +default -- --enable-option-checking=fatal
===> phpbrew will now build 8.0.26
---> Parsing variants from command arguments '+default -- --enable-option-checking=fatal'
===> Loading and resolving variants...
Downloading https://www.php.net/distributions/php-8.0.26.tar.bz2 via php stream
https://www.php.net/distributions/php-8.0.26.tar.bz2 => /root/.phpbrew/distfiles/php-8.0.26.tar.bz2
===> Extracting /root/.phpbrew/distfiles/php-8.0.26.tar.bz2 to /root/.phpbrew/build/tmp.1670324964/php-8.0.26
===> Moving /root/.phpbrew/build/tmp.1670324964/php-8.0.26 to /root/.phpbrew/build/php-8.0.26
Source Directory: /root/.phpbrew/build/php-8.0.26
Writing variant info to /root/.phpbrew/php/php-8.0.26/phpbrew.variants
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Enabled variants: [xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, curl, openssl, zip]
Disabled variants: []
===> Configuring 8.0.26...
Use tail command to see what's going on:
$ tail -F '/root/.phpbrew/build/php-8.0.26/build.log'
./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/php-8.0.26' '--with-config-file-path=/root/.phpbrew/php/php-8.0.26/etc' '--with-config-file-scan-dir=/root/.phpbrew/php/php-8.0.26/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--enable-pdo' '--with-pear=/root/.phpbrew/php/php-8.0.26/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl' '--with-openssl' '--with-zip' '--enable-option-checking=fatal' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig' >> '/root/.phpbrew/build/php-8.0.26/build.log' 2>&1
Error: Configure failed:
The last 5 lines in the log file:
configure: error: unrecognized options: --enable-json
Please checkout the build log file for more details:
tail /root/.phpbrew/build/php-8.0.26/build.log |
Any solution to this? |
The workaround is to not use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output
Expected Result
Successful installation.
Command
Build Log
command output
Platform
OSX 11.6 M1
I believe the culprit is
--enable-option-checking=fatal
as it works fine without. But IMO it's just a symptom of the problem that PHPBrew adds (not sure where)--enable-json
– presumably because of the variant+json
. If you try-json
it will add--disable-json
which will result in the same error.I came across this page which suggest that the json variant is obsolete from PHP 8.0 onwards. So I would suggest:
+json
or-json
explicitly for a PHP8+ installation+default
for a PHP8+ installation (i.e. no notice)The text was updated successfully, but these errors were encountered: