Building PHP.md
Building PHP
Ended up aborting this, but the notes might be handy for reference
# Install phpenv
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer | bash
# setup opensuse tumbleweed, php compiling required packages
sudo zypper install -y -t pattern devel_basis
sudo zypper install -y libxml2-devel libxslt-devel openssl-devel sqlite3-devel libbz2-devel libcurl-devel libpng-devel libjpeg-devel libicu-devel oniguruma-devel libtidy-devel libzip-devel
phpenv install 8.0.23
:(
HomeBrew method
For php-version
$ brew install php@7.3
$ php-version 7.3
For phpenv (untested and incomplete). Install phpenv first.
brew install openssl bzip2 libiconv
PHP_BUILD_CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl) --with-bz2=$(brew --prefix bzip2) --with-iconv=$(brew --prefix libiconv)" phpenv install 8.0.26
#macos #lang/php