albydarned

albydarned

Hello all!

I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily driver.

Wondering if anyone out there has had any luck installing elixir and Erlang using a version manager like asdf? I’ve been trying but getting a few build errors. If it takes considerable effort I’ll probably remote into a server to do whatever elixir development I need to until its more documented and better supported.

Thanks

Showing Posts 1 to 10

josevalim

josevalim

Creator of Elixir

Try compiling it from the GitHub repo, in particular, the maint branch, as there have been some fixes related to BigSur recently: Fix the make configuration for macOS 11.0.1 by idyll · Pull Request #2865 · erlang/otp · GitHub

14
Post #1
albydarned

albydarned OP

Thanks Jose!

I was able to get everything working by installing homebrew using rosetta 2. I followed this guide: Homebrew on Apple Silicon — Sam Soffes

Still haven’t had much success installing older versions or using ASDF but 1.11 will work for what I need.

type1fool

type1fool

Homebrew has a compatibility tracker for several formulae.
https://github.com/Homebrew/brew/issues/7857?ref=dtf.ru

aenglisc

aenglisc

Speaking of which, I wonder if the ERTS would work fine with asymmetric cores.

hauleth

hauleth

I see no reason why not, all is up to the system scheduler. It can be tested on LITTLE.big architecture from ARM (M1 uses similar approach).

DanBunea

DanBunea

Hi @albydarned,

I plan to buy an M1 Pro. My development is now pretty much only Elixir (Phoenix/LiveView etc). So if I can install Elixir using Homebrew (with Rosetta2), it seems I can push the Order button.

Am I right?
Thanks,
Dan

wojtekmach

wojtekmach

Hex Core Team

I have an experimental project that is a one click install of OTP+Elixir that you might find helpful:

$ curl -L -O https://wojtekmach.github.io/beamup/install.sh && bash install.sh

The script simply downloads precompiled OTP & Elixir releases. See GitHub - wojtekmach/beamup · GitHub. Currently the only available OTP release is 23.1.4 on , darwin-x86_64, darwin-arm64, linux-x86_64, and linux-armv7l (built on rpi4).

If you have a Mac with M1, this should work out of the box natively as well as via Rosetta 2.

As I mentioned initially, this is just a proof of concept. I had brief discussion with members of OTP team on attaching pre-compiled builds to new OTP releases, for macOS in particular. If GitHub ever exposes darwin-amd64 as a target, we’d definitely take advantage of that too.

That being said, you’d most likely want to use Homebrew for other things so it might make sense to use the unofficial support or wait for the official one. I’m personally trying out MacPorts this time around and it seems to work pretty well though it can’t install erlang yet.

aenglisc

aenglisc

NIce! The “about” link seems to be incorrect though.

wojtekmach

wojtekmach

Hex Core Team

thanks, fixed!

albydarned

albydarned OP

Has anyone here had success installing older versions of elixir or OTP?

Using brew to install elixir 1.11 has worked great, but I have some older projects I want to support.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews