rrmartins

rrmartins

Installing elixir and erlang on mac m2

I’m trying to install the most current versions of elixir and erlang here on the mac.

I’m getting a segmentation fault error, so I’m trying to install via asdf and I get these errors.

> asdf install erlang 24.2                                                                                                                                
asdf_24.2 is not a kerl-managed Erlang/OTP installation
The asdf_24.2 build has been deleted
Extracting source code
Building Erlang/OTP 24.2 (asdf_24.2), please wait...
APPLICATIONS DISABLED (See: /Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_build_24.2.log)
 * jinterface     : Java compiler disabled by user
 * wx             : User gave --without-wx option
 * odbc           : User gave --without-odbc option

Build failed.
compiling multi-threaded driver:
clang -c -DMEGACO_DRV_NAME=\"megaco_flex_scanner_drv_mt\" -fno-common -Werror=return-type -g -O2 -I/usr/local/opt/openssl@1.1/include -fPIC -fno-common -DOTP_RELEASE -DMFS_FLEX_DEBUG=0 -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/emulator/beam -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/include -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/include/x86_64-apple-darwin22.3.0 -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/include/internal -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/include/internal/x86_64-apple-darwin22.3.0 -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/emulator/sys/unix -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/emulator/sys/common -I/Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_src_24.2/erts/x86_64-apple-darwin22.3.0  -funroll-loops -Wall -DMEGACO_LINENO  -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DMEGACO_REENTRANT_FLEX_SCANNER -o ../../priv/obj/x86_64-apple-darwin22.3.0/megaco_flex_scanner_drv_mt.o megaco_flex_scanner_drv_mt.c
make[5]: *** [../../ebin/megaco_flex_scanner.beam] Segmentation fault: 11
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [../../ebin/megaco_flex_scanner_handler.beam] Segmentation fault: 11
make[4]: *** [opt] Error 2
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Please see /Users/rrmartins/.asdf/plugins/erlang/kerl-home/builds/asdf_24.2/otp_build_24.2.log for full details.

anybody can help me in this situation? :slight_smile:

Marked As Solved

rrmartins

rrmartins

hi everyone,

I uninstalled the homebrew, because was installed with x86_64, and I installed the homebrew “basic” to my mac M2 arm. After this everything I installed had the arm.

Also Liked

Nicd

Nicd

If you search the forum for your error messages, you will find many threads. Such as this, which should be very relevant: Asdf install erlang 25.2 failing, unsure of cause, on Mac OSX Monterey 12.5.1 M1 Pro - #6 by Nicd

My guess is that you are running in Rosetta mode with a Homebrew installation migrated from an x86 MacBook (or installed in Rosetta mode). You need to make sure your terminal is in ARM mode (check arch). Then you need to uninstall Homebrew and reinstall it (if you want to use it). After that you can use asdf to install Erlang.

Where Next?

Popular in Questions Top

tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
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
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
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
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
New

We're in Beta

About us Mission Statement