红联Linux门户
Linux帮助

centos 6.5安装elixir

发布时间:2016-11-09 10:00:59来源:linux网站作者:laputa73
elixir不能直接通过yum安装,但是有基于erlang的绿色包。所以只要先通过yum装好erlang即可。
 
1.登录阿里云主机
 
2.查看系统版本
[~]$ cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
[ ~]
查看内核版本
$ uname -a
Linux ITE-We 3.10.5-3.el6.x86_64 #1 SMP Tue Aug 20 14:10:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[ ~]$ cat /proc/version
Linux version 3.10.5-3.el6.x86_64 (rpmbuild@node1) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) ) #1 SMP Tue Aug 20 14:10:49 UTC 2013
[~]$ 
 
3.配置sudo
先su -
visudo
slview  ALL=(ALL) NOPASSWD: /usr/bin/docker,/usr/bin/yum,/bin/rpm
 
4.尝试直接 sudo yum install elixir
失败了。库里面没有elixir
 
5.参考
http://www.unixmen.com/install-erlang-elixir-centos-7
sudo yum install epel-release
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum update
sudo yum install erlang
源码安装
git clone https://github.com/elixir-lang/elixir.git
make clean test
或者直接
wget https://github.com/elixir-lang/elixir/releases/download/v1.2.5/Precompiled.zip
解压缩即可
 
6.设置环境变量(略)
 
本文永久更新地址:http://www.linuxdiyf.com/linux/25847.html