bitli
In case this is handy for other people, here is how you can run Elixir on Android:
- Install https://termux.com/
apt update; apt upgradeto have your system up to date.- Install Erlang with
apt install erlang, you should be able to runerl. - (check if an Elixir package was created so you can avoid the trouble of the remaining lines
) - Install wget with
apt install wget(otherwise you will get bad address on any wget request). - Create a directory, and cd to it, for example:
mkdir elixir; cd elixir. - Download the precompiled package from the link named Precompiled.zip file for the latest release in the page http://elixir-lang.org/install.html#precompiled-package.At time of this writing the command
wget https://github.com/elixir-lang/elixir/releases/download/v1.4.2/Precompiled.zipshould do this. - Unzip the files with
unzip Precompiled.zip. - Go to directory bin.
- Download the file termux-fix-shebang from the source at https://raw.githubusercontent.com/termux/termux-packages/master/packages/termux-tools/termux-fix-shebang. You can use
wget https://raw.githubusercontent.com/termux/termux-packages/master/packages/termux-tools/termux-fix-shebang. - Execute
sh termux-fix-shebang elixir iex elixircin the bin directory (sh is required as the path of the shebang of the script is not compatible with termux). - Execute
which envand edit the first line of mix to set the path of commandenvto the one found by the command which. - Add
export PATH=$PATH:$HOME/elixir/binto your .bashrc or execute the command on your terminal.
You can then mix and iex. An Android phone is not exactly a convenient development platform, but it was useful to me to learn Elixir when waiting for whatever.
Trending in Guides/Tuts
# ~/src/livebook/.iex.exs
System.cmd("xdg-open", [ LivebookWeb.Endpoint.access_url() ] )
Because Livebook requires a unique passcode on ...
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
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
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
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Most Liked- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
soyjeansoy
here’s what i did (assuming you’re using
termux):pkg install erlanggit clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.1Next do the following (im using
zsh):asdf plugin-add elixirasdf install elixir 1.8.1or to find a version you can:asdf list-all elixirasdf global elixir 1.8.1to set this version globallyyou can visit their page on how to install asdf-vm.
happy coding!
NobbZ
Please try
apt install --yes wget, for the older interface to apt, that meant to not ask but assume the operator knows what he is doing and install/remove everything. Can’t check though if it is still valid on the new interface which is used by termux.PatNowak
Termux is awesome, but you might inform at the top of the post that this is the guide only for Android 5.0 and above. Thanks for the guide!