Cannot install Elixir because of Erlang?

Hello.
My friend tries to install elixir into MacOS. It stops at installing erlang every time, then he tried to install erlang 23 individually, but it failed as well.

Anyone has same problem?

I have never used MacOS and brew however I recommend asdf. You can install Elixir both from source and precompiled version.

5 Likes

Thank you for your answer.

Do you know anything about this?

What version of macOS is this?

If it’s running Big Sur, that might explain it.

I’ve been using Elixir from Homebrew for over a year, and I’ve never had problems like that.

1 Like

Have you looked up the mentioned log-file for full details?

Anyway, there are a lot of MacOS/Erlang combinations known to be broken for a variety of reasons. And as I do not use a Mac, I do not really keep track of those… Perhaps you can tell us what MacOS version you use, what version of XCode, etc.

1 Like

@mikl
@NobbZ

His MacOS version is 10.15.6, and Xcode version is 12.0.

drivers/common/inet_drv.c:1484:30: error: static declaration of 'in6addr_any' follows non-static declaration
static const struct in6_addr in6addr_any = { { IN6ADDR_ANY_INIT } };
                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h:211:30: note: previous declaration is here
extern const struct in6_addr in6addr_any;
                             ^
drivers/common/inet_drv.c:1493:30: error: static declaration of 'in6addr_loopback' follows non-static declaration
static const struct in6_addr in6addr_loopback =
                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h:212:30: note: previous declaration is here
extern const struct in6_addr in6addr_loopback;
                             ^
 CC	obj/x86_64-apple-darwin19.6.0/opt/smp/prim_file_nif.o
2 errors generated.
make[4]: *** [obj/x86_64-apple-darwin19.6.0/opt/smp/inet_drv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

It is the error part of the log file. I don’t see any solutions for this…
Do you have some ideas?

It was already reported before. Please take a look at those issues:


2 Likes

Setting CFLAGS to -O2 -Wno-error=implicit-function-declaration fixed it for me (as described in the linked issues).

2 Likes