How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS

Node.js

check latest https://github.com/nvm-sh/nvm/releases As of 2021/1/1, v0.37.2 is the latest, so install v0.37.2.

Install node

touch ~/.zshrc
cd /tmp
NVMURL=https://rawgit.com/creationix/nvm/v0.37.2/install.sh
wget --no-check-certificate $NVMURL
zsh install.sh
rm -f install.sh
source ~/.zshrc

Check the recommended version. https://nodejs.org/ja/

nvm install 14.15.3

Various installations Required for Erlang https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-linux/

sudo apt-get update
sudo apt-get install automake autoconf libreadline-dev libncurses-dev \
libssl-dev libyaml-dev libxslt1-dev libffi-dev libtool unixodbc-dev \
libwxgtk3.0-gtk3-dev libgl1-mesa-dev  libglu1-mesa-dev libssh-dev xsltproc fop \
libxml2-utils

sudo apt-get -y install build-essential libncurses5-dev openssl
sudo apt-get install curl git-core

sudo apt-get install openjdk-13-jdk default-jdk

Required for Phoenix

sudo apt-get -y install inotify-tools

Install kerl

cd /tmp
sudo curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
sudo chmod a+x kerl
sudo mv kerl /usr/local/bin

Install Erlang/OTP

kerl list releases
kerl build 23.2 23.2

kerl install 23.2 ~/erlang/23.2

Activate Erlang/OTP

. ~/erlang/23.2/activate
echo 'export PATH="$HOME/erlang/23.2/bin:$PATH"' >> ~/.zshrc

Install kiex

cd /tmp
git clone https://github.com/taylor/kiex.git
cd kiex
./install
source $HOME/.kiex/scripts/kiex
vi ~/.zshrc

~/.zshrc


source $HOME/.kiex/scripts/kiex

Will be added.

Install elixir

kiex install 1.11.2
kiex use 1.11.2 --default

Install Hex and Rebar

mix local.hex --force
mix local.rebar --force

Install Phoenix

mix archive.install hex phx_new 1.5.7
mix phx.new -v

Reference: Elixir/Phoenix Beginner ① 3rd Edition: First Steps (OIAX BOOKS) https://www.amazon.co.jp/exec/obidos/ASIN/B01N2K6UBZ/oiax-22/ref=nosim

Recommended Posts

How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to install multiple JDKs on Ubuntu 18.04 LTS
How to install WildFly on Ubuntu 18.04
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
How to install production Metabase on Ubuntu
How to install and use Composer on an ECS instance on Ubuntu 16.04
How to install and configure the monitoring tool "Graphite" on Ubuntu
How to install network drivers on standalone Ubuntu
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
Install raspi-config on Ubuntu 20.04 (LTS)
Install WordPress 5.5 on Ubuntu 20.04 LTS
How to install NVIDIA driver on Ubuntu ssh destination
Install JDK and JRE on Ubuntu 16.10
How to install ImageMagick on Windows 10
How to use Bio-Formats on Ubuntu 20.04
How to install MariaDB 10.4 on CentOS 8
How to build vim on Ubuntu 20.04
How to install the language used in Ubuntu and how to build the environment
How to install Adopt OpenJDK on Debian, Ubuntu with apt (-get)
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
How to install Play Framework 2.6 for Mac
How to install Eclipse (Photon) on Mac
I want to install PHP 7.2 on Ubuntu 20.04.
How to install beta php8.0 on CentOS8
How to change the timezone on Ubuntu
How to install kafkacat on Amazon Linux2
How to install c2ffi on Ubuntu, which automatically parses C header files
Build and install Wireshark Development Release (3.3.1) on Ubuntu
How to configure ubuntu to be used on GCP
Install and switch between multiple Javas on Ubuntu
[Ruby on Rails] How to install Bootstrap in Rails
How to build a Pytorch environment on Ubuntu
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Install pyqt5 on ubuntu
Install Ruby on Ubuntu 20.04
How to install Docker
How to install docker-machine
Install Autoware on Ubuntu 18.04.5
Apache2 on Ubuntu20.04 LTS
How to install MySQL
Install Homebrew on Ubuntu 20.04
How to install ngrok
How to install Ruby on an EC2 instance on AWS
How to hover and click on Selenium DOM elements
How to remove Ubuntu when dual booting Windows and Ubuntu
Install rbenv with apt on ubuntu and put ruby
How to use RealSense with ubuntu 20.04 and ROS Noetic
Install MySQL 5.6 on CentOS6 [How to specify the version]
How to install Gradle and Kotlin with SDKMAN (Mac)
(Ruby on Rails6) How to create models and tables
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
Building WebGIS on Ubuntu20.04 LTS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Cybozu Office 10 on Ubuntu 20.4
How to use OpenCV 4 on Android and view camera live view
Install Docker on Ubuntu Server 20.04
[Rails] How to install devise
How to deploy on heroku
Install zabbix agent (5.0) on Ubuntu 18.04
Install MAV Proxy on Ubuntu 18.04