好吧,其實是參考了http://www.unixmen.com/install-erlang-elixir-centos-7elixir不能直接通過yum安裝,但是有基於erlang的綠色包。所以只要先通過yum裝好erlang即可。
1.登錄阿裡雲主機
2.查看系統版本
[code][~]$cat/etc/issue
CentOSrelease6.5(Final)
Kernel\ronan\m
[~]查看內核版本
[code]$uname-a
LinuxITE-We3.10.5-3.el6.x86_64#1SMPTueAug2014:10:49UTC2013x86_64x86_64x86_64GNU/Linux
[~]$cat/proc/version
Linuxversion3.10.5-3.el6.x86_64(rpmbuild@node1)(gccversion4.6.320120306(RedHat4.6.3-2)(GCC))#1SMPTueAug2014:10:49UTC2013
[~]$3.配置sudo
先su-
visudo
slviewALL=(ALL)NOPASSWD:/usr/bin/docker,/usr/bin/yum,/bin/rpm
4.嘗試直接sudoyuminstallelixir
失敗了。。。庫裡面沒有elixir
5.參考
http://www.unixmen.com/install-erlang-elixir-centos-7sudoyuminstallepel-release
wgethttp://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpmsudorpm-Uvherlang-solutions-1.0-1.noarch.rpm
sudoyumupdate
sudoyuminstallerlang
源碼安裝
gitclonehttps://github.com/elixir-lang/elixir.gitmakecleantest
或者直接
wgethttps://github.com/elixir-lang/elixir/releases/download/v1.2.5/Precompiled.zip解壓縮即可
6.設置環境變量(略)