-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Can't install PHP 7 on macOS #8
Comments
It looks like a typical error while compiling with icu4c libraries in recent versions of OSX. To be honest, I do not longer used this asdf plugin and when I did, getting it ready to run on OSX was near to a nightmare due to complicated dependencies and changes between versions made in the PHP building process itself. So I don't think I can help you more that searching in Google for that error on your specific OSX version :( sorry about that. What I would like to ask you is to post here the solution if you find any, so anybody in the same situation can solve it too. Thanks! |
I think I will be switching back to brew php. Good effort, but it's indeed not very useable or atleast not as easy as it should be. |
maybe this will bee helpfule: https://gist.github.com/redefinelab/4188331 |
My issue is different:
|
@jeromedalbert try: brew tap magrathealabs/homebrew-mlabs
brew install icu4c icu4c@58.1 5.6 export PATH="$(brew --prefix bison@2.7)/bin:$(brew --prefix icu4c@58.1)/bin:$(brew --prefix icu4c@58.1)/sbin:$PATH"
export PHP_CONFIGURE_OPTIONS="--with-iconv=$(brew --prefix libiconv) --with-openssl=$(brew --prefix openssl)"
asdf install php 5.6.36 7.x export PATH="$(brew --prefix bison)/bin:$(brew --prefix icu4c)/bin:$(brew --prefix icu4c)/sbin:$PATH"
export PHP_CONFIGURE_OPTIONS="--with-iconv=$(brew --prefix libiconv) --with-openssl=$(brew --prefix openssl)"
export PHP_CONFIGURE_OPTIONS='--disable-gettext'
asdf install php 7.2.6 |
Thanks @brunowego, that worked! I only needed PHP on my machine for a couple weeks 5 months ago, but it is still nice to know that I can manage all the languages in my machine — PHP included — with asdf. @odarriba I'm leaving this issue open even though it is fixed for me. Maybe the README should be updated with the content of @brunowego 's comment |
Unfortunately, still seem to be subject to php#71343 when trying to install |
@phortx This doesn't work for me 😵. Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_do_convert in gdkanji.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
_zif_iconv_substr in iconv.o
__php_iconv_strpos in iconv.o
_zif_iconv_mime_encode in iconv.o
__php_iconv_appendl in iconv.o
...
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
_zif_iconv_substr in iconv.o
__php_iconv_strpos in iconv.o
_zif_iconv_mime_encode in iconv.o
__php_iconv_mime_decode in iconv.o
...
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
_zif_iconv_substr in iconv.o
__php_iconv_strpos in iconv.o
_zif_iconv_mime_encode in iconv.o
__php_iconv_mime_decode in iconv.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/cli/php] Error 1 |
maybe partially relevant for you, i created #21 cause i had some problems installing php 7.3.7 on MacOS. |
It seems to be able to build without any issues in the latest version. |
Thank you, @brunowego. |
After running
PHP |
@StephanMeijer maybe you could, based-upon/inspired-by #21, create a merge request that handles detection of curl? |
@salzig Yes, that would be a good idea. |
For other people with issues: put quotes around the paths, like this:
|
@salzig can't get past this:
Using:
Do you know what to look at? Tried playing with |
did you try |
Yes, gives me the following results:
|
what does |
|
Now ran the following:
No result. No change. |
Ok, haven't used PHP for quite some time but tested the installation of 8.0.2 anyways.
Looks like it should normaly work without big problems. Are you sure you're using an up to date version of the php plugin? |
I am sure I am not using an up-to-date version, as I try to install php 7.1.3 specifically. |
php 8.0.6 gives no errors. |
@StephanMeijer i was talking about asdf-php, not php itself. Is your asdf-php plugin up to date? |
There are too many irrelevant people in the thread. If you need help, open a new post on discussions. |
Apropos #22 (comment), I'm suspecting that you can solve the problem by doing this instead of using the brew prefix. |
I can't install PHP 7 nor 8 on macOS either. Please account for Homebrew by default in ASDF PHP for macOS users. Other programming languages install just fine with ASDF, just not PHP. |
When I try to install PHP 7 on macOS High Sierra after following the instructions in the README, I get the following error:
Any idea about what is going on?
After Googling around I could only find one related and unsolved issue: phpbrew/phpbrew#899
The text was updated successfully, but these errors were encountered: