I recently upgraded to elixir 1.6 (via homebrew) and now I am getting the following error when I try to compile any code (this example is from PragDave’s e4p repo, but I get the same error on any code I try):
I have tried deleting the _build directory, un- and re-installing elixir (through homebrew). Does anyone have any suggestions on what might be wrong, or how I can start troubleshooting this? Will I have better luck if I install erlang and elixir from their precompiled packages?
(context: if you got a pre-built Elixir from homebrew, and they built it against Erlang 20, and you’re running 19 - that could cause a missing chunk error like the above)
brew info erlang says that erlang is at 20.2.2. I tried blowing away my entire homebrew installation and re-installing just erlang and elixir, but I get the same versions as above, and the same issue.
Interestingly, upgrading to 1.6 was successful on my work machine. Both erlang and elixir there are also installed via homebrew (same versions), but that machine is still on OS X El Capitan. (The machine that is giving me fits is on macOS High Sierra.)
Is there any way to start troubleshooting this? Some light searching hasn’t come up with anyone else with the same problem, and I don’t know enough about erlang or elixir to even know where to start.
I was finally able to get it to work by installing Erlang 19.3 and Elixir 1.6 from their pre-compiled packages. @dom’s theory about a version mismatch seems to have been correct even though it appeared that homebrew was installing the correct versions.