Open theofidry opened 5 months ago
Which PHP version do you run? And which PHP version do you want to install?
Is there any step to reproduce the issue?
Apologies I hit enter a bit too fast there:
$ phpbrew --version
phpbrew - 2.1.0
cliframework core: 2.5.4
$ php --version
PHP 8.3.7 (cli) (built: May 24 2024 16:33:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.7, Copyright (c) Zend Technologies
# MacOS 14.5 (23F79)
# Apple M3 Pro
The command I used is:
phpbrew --debug install --stdout --jobs=$(nproc) \
8.3 \
+default \
+intl=shared,$(brew --prefix icu4c) \
+mysql \
+pgsql \
+openssl="$(brew --prefix openssl@3)" \
+curl="$(brew --prefix curl)" \
+iconv="$(brew --prefix libiconv)" \
+bz2="$(brew --prefix bzip2)" \
+zlib="$(brew --prefix zlib)" \
+pcre="$(brew --prefix pcre2)" +xml=$(brew --prefix libxml2) \
+fpm \
-- \
--with-sodium
The beginning of the logs:
===> phpbrew will now build 8.3.8
---> Parsing variants from command arguments '+default +intl=shared,/opt/homebrew/opt/icu4c +mysql +pgsql +openssl=/opt/homebrew/opt/openssl@3 +curl=/opt/homebrew/opt/curl +iconv=/opt/homebrew/opt/libiconv +bz2=/opt/homebrew/opt/bzip2 +zlib=/opt/homebrew/opt/zlib +pcre=/opt/homebrew/opt/pcre2 +xml=/opt/homebrew/opt/libxml2 +fpm -- --with-sodium'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: f4a6cb005ae117aba86c2044932cf563899a2e977ac09781aa74b2161ddc563b
===> Extracting /Users/tfidry/.phpbrew/distfiles/php-8.3.8.tar.bz2 to /Users/tfidry/.phpbrew/build/tmp.1718456181/php-8.3.8
===> Moving /Users/tfidry/.phpbrew/build/tmp.1718456181/php-8.3.8 to /Users/tfidry/.phpbrew/build/php-8.3.8
Source Directory: /Users/tfidry/.phpbrew/build/php-8.3.8
Writing variant info to /Users/tfidry/.phpbrew/php/php-8.3.8/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /Users/tfidry/.phpbrew/build/php-8.3.8
===> 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
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file 'ext/readline/config.m4'
2 out of 2 hunks failed--saving rejects to 'ext/readline/config.m4.rej'
Patch failed
0 changes patched.
Enabled variants: [intl, mysql, pgsql, openssl, curl, iconv, bz2, zlib, pcre, xml, fpm, opcache, bcmath, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pdo, pear, phar, posix, readline, sockets, tokenizer, zip]
Disabled variants: []
===> Configuring 8.3.8...
./configure '--cache-file=/Users/tfidry/.phpbrew/cache/config.cache' '--prefix=/Users/tfidry/.phpbrew/php/php-8.3.8' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--enable-intl' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/homebrew/Cellar/postgresql@14/14.12/bin' '--with-pdo-pgsql=/opt/homebrew/Cellar/postgresql@14/14.12/bin' '--with-openssl' '--with-curl' '--with-iconv=/opt/homebrew/opt/libiconv' '--with-bz2=/opt/homebrew/opt/bzip2' '--with-zlib' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--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=/opt/homebrew/opt/mhash' '--enable-pcntl' '--enable-pdo' '--with-pear=/Users/tfidry/.phpbrew/php/php-8.3.8/lib/php/pear' '--enable-posix' '--with-readline=/opt/homebrew/opt/readline' '--enable-sockets' '--with-zip' '--with-sodium' '--with-config-file-path=/Users/tfidry/.phpbrew/php/php-8.3.8/etc/cli' '--with-config-file-scan-dir=/Users/tfidry/.phpbrew/php/php-8.3.8/var/db/cli' 'PKG_CONFIG_PATH=/opt/homebrew/Cellar/icu4c/74.2/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/curl/lib/pkgconfig:/opt/homebrew/opt/zlib/lib/pkgconfig:/opt/homebrew/opt/libxml2/lib/pkgconfig:/opt/homebrew/opt/oniguruma/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig:' 2>&1
configure: WARNING: unrecognized options: --enable-json
configure: loading cache /Users/tfidry/.phpbrew/cache/config.cache
You can see here:
configure: loading cache /Users/tfidry/.phpbrew/cache/config.cache
I've manually created the ~/.phpbrew/cache
directory but otherwise you were getting the error reported. I have no idea what this cache is about so I don't know if it should be the same for any PHP installation or not...
During a phpbrew install command I can see in the logs:
I don't know if the cache should be common like that or on an install basis, but it looks like it never got created either.