Skip to content
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

Homebrew has disabled [email protected] #181

Open
mortenscheel opened this issue Nov 13, 2024 · 5 comments
Open

Homebrew has disabled [email protected] #181

mortenscheel opened this issue Nov 13, 2024 · 5 comments

Comments

@mortenscheel
Copy link

Error: [email protected] has been disabled because it is not supported upstream! It was disabled on 2024-10-24.

How does one install php without it?

@jbcaprell
Copy link

jbcaprell commented Nov 15, 2024

The flag --with-openssl=$(brew --prefix openssl) works for me; that is:

export PHP_CONFIGURE_OPTIONS="--with-iconv=/opt/homebrew/opt/libiconv --with-openssl=$(brew --prefix openssl)"
asdf install php 8.3.13

… works for me without [email protected].

@mortenscheel
Copy link
Author

mortenscheel commented Nov 20, 2024

… works for me without [email protected].

Yeah but if you set PHP_CONFIGURE_OPTIONS yourself, the installer will completely skip the automatic os-based configure options. This is the output of os_based_configure_options on my machine:

--with-gmp=/opt/homebrew/opt/gmp --with-sodium=/opt/homebrew/opt/libsodium --with-freetype-dir=/opt/homebrew/opt/freetype --with-gettext=/opt/homebrew/opt/gettext --with-icu-dir=/opt/homebrew/opt/icu4c@76 --with-webp-dir=/opt/homebrew/opt/webp --with-png-dir=/opt/homebrew/opt/libpng --with-zlib-dir=/opt/homebrew/opt/zlib --with-libzip=/opt/homebrew/opt/libzip --with-readline=/opt/homebrew/opt/readline --with-iconv=/opt/homebrew/opt/libiconv

I don't think most users would want to manage and maintain all those options themselves.

I would prefer if this plugin either changed [email protected] to openssl in the install script, or if that's not possible, allow us to override that specific value with an environment variable.

@jbcaprell
Copy link

… works for me without [email protected].

Yeah but if you set PHP_CONFIGURE_OPTIONS yourself, the installer will completely skip the automatic os-based configure options. This is the output of os_based_configure_options on my machine:

--with-gmp=/opt/homebrew/opt/gmp --with-sodium=/opt/homebrew/opt/libsodium --with-freetype-dir=/opt/homebrew/opt/freetype --with-gettext=/opt/homebrew/opt/gettext --with-icu-dir=/opt/homebrew/opt/icu4c@76 --with-webp-dir=/opt/homebrew/opt/webp --with-png-dir=/opt/homebrew/opt/libpng --with-zlib-dir=/opt/homebrew/opt/zlib --with-libzip=/opt/homebrew/opt/libzip --with-readline=/opt/homebrew/opt/readline --with-iconv=/opt/homebrew/opt/libiconv

I don't think most users would want to manage and maintain all those options themselves.

I would prefer if this plugin either changed [email protected] to openssl in the install script, or if that's not possible, allow us to override that specific value with an environment variable.

Absolutely! My response should be viewed as a band-aid for folks who just want to install PHP and move on with their lives, nothing more.

@watarukura
Copy link

@mortenscheel
Copy link
Author

Yeah that's the issue. I think the best and easiest solution is to allow overriding the openssl version with an environment variable, or simply merging #154 so we can append the configure options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants