elixir 几种安装方式

1. yum

yum 源(直接放弃,版本太老)
 
2. 使用预编译包
wget https://github.com/elixir-lang/elixir/releases/download/v1.6.4/Precompiled.zip

配置环境变量

export PATH="$PATH:/path/to/elixir/bin"

备注: 对于jenkins 等构建环境可能需要使用绝对路径,或者直接进行软连接,同时系统需要安装erlang
3. erlang 安装
a. rpm 包

rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc

b. yum 源

touch /etc/yum.repos.d/eralng.repo

[erlang-solutions]
name=CentOS $releasever - $basearch - Erlang Solutions
baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
 
4. 参考资料
https://www.elixir-lang.org/install.html
https://www.erlang-solutions.com/resources/download.html
 

posted on 2018-04-10 17:16  荣锋亮  阅读(395)  评论(0编辑  收藏  举报

导航