bryanhuntesl
Perhaps we as community need to do something to make it easier to install Elixir on the various desktops.
What do people think? What are the pain-points getting Elixir installed and an environment configured.
Is the fact that you have to install both Erlang and Elixir to have a development environment an inconvenience?
Primarily, interested in the experience on Mac, and Windows - for Linux you’ve got the choice of asdf/kerl/distro packages/erlang solutions packages so I don’t think it’s such an issue.
Anyhow, any feedback welcome.
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
The obligatory hello world thread!
Who are you and where are you from? :stuck_out_tongue:
New
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgu...
New
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.
We’re particularly inte...
New
Is there a word for the ~> symbol used in Version strings?
Do you also just call it a Squiggle Arrow™ ?!
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 10 of 20 Posts
LostKobrakai
On macs one can use asdf as well. Brew does work for just installing “a” version. It doesn’t do version management like asdf though.
pdgonzalez872
yep,
asdfis actually the preferred way to install it for us.@bryanhuntesl I think installing Erlang and Elixir to your machine is a pretty straight forward ask if you want to use Elixir, right?
The main issues I’ve seen with installation problems is not following the
asdfreadme. There are a couple of steps that do make a difference. Also, the order as well, installing Erlang first (with a certain OTP version), then Elixir (with a matching OTP version).I have seen issues where mixing
brewwithasdfcaused some pain, but was never able to duplicate and folks resolved on their own after usingasdf. Once folks started using onlyasdf, issues went away.zkessin
I generally start each project with a Vagrantfile that sets up a VM that will reflect my production environment (Ubuntu, postgresql etc) then I am good to go. And when I screw up my development machine I can just revert the file and rebuild the VM.
I also rebuild the VM pretty much every morning. I even have a make target that deletes all the build artifacts, and the existing vagrant VM and rebuilds it all from scratch. That takes about 10-15 minutes
axelson
If you’re using asdf I think the biggest pain point is installing erlang, since it installs from source and compilation takes a good 20+ minutes. I’m sure there’s others as well, but that’s my largest pain point.
hauleth
There is another problem for me - differences in versions. In ASDF you need to be aware of the version of Erlang and version of Elixir that you are using. In most cases you can use Elixir compiles with older Erlang version, but other way around can fail. That is why I started using Nix, as it makes such mismatches impossible.
bryanhuntesl
I’ve thought about this before - the long compile time for Erlang on a local box. Maybe something could be done to pre-compile Erlang for consumption by an asdf plugin. The only annoyance is the fact we can’t use the same docker infrastructure we use for RPM/Deb/AMD/86 Linux. Still maybe there’s an trustworthy OSX build service somewhere.
garazdawi
The
.tar.gzfiles on Index of /download/ are precompiled. Though they are only available for major and maintenance releases, not patches.As of OTP-23.1 (to be released soon), we will also include a prebuilt
tar.gzwith all releases (major, maint and patch) on github.derek-zhou
Only 20 minutes? That’s very nice, maybe I should try it sometimes. For comparison, I think Erlang/OTP has similar scope as OpenJDK, which will take hours to compile. I am willing to bet that nodejs is not going to be faster.
chulkilee
I’m using asdf (with git clone) + homebrew on macOS and it works well for me.
1.10.4-otp-23)I found more challenges on setting up IDE/editors could be tricky (which deserves a separate thread)
.tools-versionautomaticallybryanhuntesl
Hmm that’s an interesting point - asdf doesn’t have the concept of transitive dependency at all. There are analogues to the Erlang/Elixir situation too, Java/Scala is an obvious one that comes to mind.