tutorial on installing Elixir on CentOS 7

Source: Internet
Author: User
Tags zip centos

Here are two ways of doing this.

Release Warehouse

Execute Yum Info Elixir, we get:

Available Packages
Name:elixir
Arch:noarch
version:0.12.5
Release:2.el7
size:2.7 M
Repo:epel/x86_64
SUMMARY:A modern approach to programming for the Erlang VM
url:http://elixir-lang.org/
LICENSE:ASL 2.0 and ERPL
Description:elixir is a programming language built to the top of the Erlang VM.
: As Erlang, it is a functional language built to support distributed,
: Fault-tolerant, Non-stop applications with hot code swapping.
From the above data we can see that the Epel/x86_64 Warehouse Elixir version is 0.12.5, and the current (2016-08-01) official online display Elixir version is 1.3.2. So this method can give up.

Pre-compiling package

Elixir is available on GitHub and we can download and install it ourselves-remember to install Erlang first.

$ cd
$ wget Https://github.com/elixir-lang/elixir/archive/v1.3.2.zip
$ unzip v1.3.2.zip-d.
$ CD elixir-1.3.2
$ make
After success, the elixir path is added to the environment variable:

Export path= "$PATH:/home/sam/elixir-1.3.2/bin"
At the command line:

$ elixir-v
You can see if the elixir was installed successfully and the version that was successfully installed.

Here, I install the elixir in the user's home directory.

To upgrade elixir Thereafter, follow the same steps.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.