FGMGIT

FGMGIT

Configure error with erlang 23.0.3 in MacOS 11 (Big sur)

Hello everyone,

I’m working unfortunately or necessarily with MacOS 11 Big Sur. And tried to install Elixir Nerves 1.6.3 and uninstall Erlang 23 with Hombrew, according with Nerves 1.6.3 install documentation, it seems that is not possible to reinstall that version with asdf, kerl or brew, even building Erlang / OTP from scratch will not be possible for OTP 23.0.3.

It seems that the only version that builds for MacOSX 11 is Erlang/OTP24. With what you will have:

** (Mix) Major version mismatch between host and target Erlang/OTP versions

I have only been able to build Erlang on MacOSX 11 by following this bug note. But only in OTP 24.

and

https://github.com/erlang/otp

If I try asdf or kerl to build 23.0.3:

checking OTP version... 23.0.3
configure: error: 

  You are natively building Erlang/OTP for a later version of MacOSX
  than current version (11.0). You either need to
  cross-build Erlang/OTP, or set the environment variable
  MACOSX_DEPLOYMENT_TARGET to 11.0 (or a lower version).

Try to set MACOSX_DEPLOYMENT_TARGET to 11.0 or 10.5 doesn’t seems to work

export MACOSX_DEPLOYMENT_TARGET=11

Is there any advance with support for MacOS 11? or someone facing problems with erlang 23.0.3 in MacOS 11?

Most Liked

axelclark

axelclark

I just installed erlang 23.2.1 with asdf in MacOS 11 (Big Sur) and didn’t have any issues. It looks like the issue is fixed (bumped kerl version to 2.0.2) with this commit. Thanks @fhunleth!

rodrigues

rodrigues

I’ve had this issue last week in Big Sur, indeed appending the && false to that line in configure.in helped fix it :+1:

This thread describes how to deal with it in the context of asdf builds:

https://github.com/asdf-vm/asdf-erlang/issues/161#issuecomment-731477842

axelson

axelson

Scenic Core Team

Now that there’s a patch for Apply Erlang patch to build on OSX Big Sur by fhunleth · Pull Request #356 · kerl/kerl · GitHub (thanks @fhunleth :heart:) hopefully this won’t be an issue for much longer. Although I’m not sure if ASDF needs a PR to pull in the latest kerl (or if a kerl release is needed).

Where Next?

Popular in Questions Top

nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42158 114
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29703 241
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39523 209
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement