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
Unable to install on macOS: 'in6addr_any' follows non-static declaration #157
Comments
Had the same issue fixed it by
|
Strange, I've not seen this error before. I'm not really sure what is wrong, but are you certain you installed all the dependencies correctly on OSX? |
It may be worth opening an issue on the kerl issue tracker (asdf-erlang relies on kerl for builds) https://github.com/kerl/kerl/ |
@zubairshokh I tried that but didn't work for me 😭 @Stratus3D hm I'm pretty sure I did, I even installed more stuff that I had the last time I was able to build 22.1.8. I've also tried with javac but got same outcome. At this point I just gave up and installed the latest version I could find on homebrew -- which, lucky me, is 22.1.8 -- so at least I can get back to work. Thanks anyways, I'll open the issue on kerl as well. I guess I can keep this issue open for a few more days in case someone here has any information regarding this error and hopefully an easy workaround. |
Oddly it works on my machine (OSX 10.15.5, I'll try upgrading tomorrow).
|
Maybe the "solution" in Ruby's puma somehow relates to this problem? See puma/puma#2304. See this comment for the implicit declaration changes in Apple's gcc. |
I was running into the same problem as @rwillians, following @nbibler's comment, I was able to install Erlang/OTP 23.0.3 successfully using |
TL;DR:Installing xcode was most likely the solution for me. Hey guys Good news: I was able to install it now. The main changes that I can remember are:
First, after @jswanner said that @nbibler suggestion worked for him, I tried it: export CFLAGS="-02 -Wno-error=implicit-function-declaration"
export KERL_BUILD_DOCS="no"
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
asdf install erlang 23.0.3 That actually worked for the problem which I opened this issue for -- I no longer see that Then I tried using export CFLAGS="-02 -Wno-error=implicit-function-declaration"
export KERL_BUILD_DOCS="no"
export KERL_CONFIGURE_OPTIONS="--with-ssl=$(brew --prefix openssl)"
asdf install erlang 23.0.3 Well it didn't work, same xcodebuild thing. So I finally took the defeat and installed xcode -- I had command line tools installed tho, which was enough for me the last time I installed erlang about 8 months ago -- and then I tried it again: export KERL_BUILD_DOCS="no"
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
asdf install erlang 23.0.3 And it worked. -- Unfortunately I don't have the time to reset my environment and try it all over again using only the bare minimal dependencies to properly build erlang, but my best guess here is that xcode is now (not sure since how long) a required dep. |
FYI I was able to install it with these two flags:
|
@thdaraujo do you have Xcode installed? |
no, just the xcode command line tools @rwillians |
This works for me, thank you |
This did the trick for me (via #116 (comment))
|
This works for me, thank u ! |
Edit:
Possible solutions:
I'm trying to install it on macOS Catalina 10.15.6 (19G73) but I'm getting an error related to
inet_drv
:Full log: otp_build_23.0.3.log
I have tried with all the following versions and had the same error:
Here's the deps I've installed and the flags I set:
I searched around and I found a ref to this error in an old thread where it says the possible solution is to rebuild erlang from scratch: http://erlang.org/pipermail/erlang-questions/2012-September/069262.html
I've tried installing from git (
asdf install erlang ref:OTP-22.3.4.5
) but got the same error 😭Has anyone managed to workaround this?
PS: around late November of last year I was able to install 22.1.8 with no hassle at all
The text was updated successfully, but these errors were encountered: