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

[MacOS] cURL issue on installing 5.6.40 #22

Closed
abnersajr opened this issue Sep 1, 2019 · 5 comments
Closed

[MacOS] cURL issue on installing 5.6.40 #22

abnersajr opened this issue Sep 1, 2019 · 5 comments

Comments

@abnersajr
Copy link

Trying to install the PHP 5.6.40 this error are shown.
image

MacOS latest version. Mojave 10.14.6.
Curl was installed from Homebrew
Using ZSH.
This is on my .zshrc

export PATH=/usr/local/opt/curl/bin:q$(brew --prefix openvpn):/sbin:$HOME/.asdf/shims:$HOME/bin:/usr/local/bin:$(brew --prefix bison@2.7)/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH
@smorimoto
Copy link
Member

Same reason as #16.

@armaaar
Copy link

armaaar commented Nov 4, 2020

I have the same problem trying to install PHP 7.2.33. I've tried some solutions from phpbrew/phpbrew#861 but since they are neither targeted for mac nor asdf it didn't work well with me.

@smorimoto This problem is not related with PHP version

@smorimoto
Copy link
Member

smorimoto commented Nov 4, 2020

Exec whereis curl to find the corresponding path and pass it directly. Does it still fail?

Like:

PHP_CONFIGURE_OPTIONS="--with-curl=/usr/include/curl" asdf install php <VERSION>

@smorimoto
Copy link
Member

And did you check here? If you are using macOS, there are several steps you need to take.
https://github.com/asdf-community/asdf-php#prerequirements

@armaaar
Copy link

armaaar commented Nov 4, 2020

@smorimoto I've followed the workflow and read #61 with no luck. also I've tried defining curl path with --with-curl in PHP_CONFIGURE_OPTIONS but now it doesn't read zlib although it's installed and it had no problem reading it at first. I still need to do more tests...

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