Skip to content

README: Fix non-existent iconv in macOS instruction #19475

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Krinkle
Copy link

@Krinkle Krinkle commented Aug 14, 2025

Follows-up 22e444c (GH-18670). There is currently no formula called "iconv" at https://brew.sh/ or https://github.com/Homebrew/homebrew-core/.

$ brew install iconv
Warning: No available formula with the name "iconv". Did you mean icon or cconv?

There is one called libiconv, however.

https://formulae.brew.sh/formula/libiconv

Follows-up 22e444c (phpGH-18670). There is currently no formula called
"iconv" at https://brew.sh/ or https://github.com/Homebrew/homebrew-core/.

```
$ brew install iconv
Warning: No available formula with the name "iconv". Did you mean icon or cconv?
```

There is one called libiconv, however.

https://formulae.brew.sh/formula/libiconv
@DanielEScherzer
Copy link
Member

@Krinkle can you confirm that libiconv does what the iconv dependency was meant to do, and that the updated instructions allow for building PHP on macos?

CC @xepozz who added the documentation

@xepozz
Copy link
Contributor

xepozz commented Aug 14, 2025

image image

Agree this is correct version. Looks like I copied from the linux instruction

@DanielEScherzer
Copy link
Member

Thanks, will merge after confirmation that the updated docs do indeed allow for build PHP

@Krinkle
Copy link
Author

Krinkle commented Aug 14, 2025

Before installing libiconv, ./configure --enable-debug failed. So, whatever the correct one is, I didn't already have it installed by chance.

After installing libiconv, is still failed. Apparently, /opt/homebrew/opt/libiconv/bin as part of my PATH is insufficient. The script then tells me to use --with-iconv. Calling it with ./configure --enable-debug --with-iconv=/opt/homebrew/opt/libiconv works properly on macOS for me, and make -j8 && make TEST_PHP_ARGS=-j8 test now passes.

@DanielEScherzer
Copy link
Member

After installing libiconv, is still failed. Apparently, /opt/homebrew/opt/libiconv/bin as part of my PATH is insufficient. The script then tells me to use --with-iconv. Calling it with ./configure --enable-debug --with-iconv=/opt/homebrew/opt/libiconv works properly on macOS for me, and make -j8 && make TEST_PHP_ARGS=-j8 test now passes.

Okay, do you want to add that part to the documentation?

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

Successfully merging this pull request may close these issues.

3 participants