fedora 22 安装 elixir

  1. 安装配置kerl
    1.1 安装kerl

    curl -O https://raw.githubusercontent.com/yrashk/kerl/master/kerl
    chmod a+x kerl
    sudo mv kerl /usr/local/bin
    
    curl -O  https://github.com/yrashk/kerl/raw/master/bash_completion/kerl
    sudo mv kerl /etc/bash_completion.d/

    1.2 安装编译依赖

    sudo dnf install -y gcc ncurses-devel openssl-devel

    1.3 创建 .kerl 配置文件

    echo 'export KERL_CONFIGURE_OPTIONS="--with-ssl=/usr --enable-smp-support --enable-threads --enable-kernel-poll --enable-sctp --without-javac"' >> .kerlrc
  2. 使用 kerl 安装 Erlang
    2.1 列出可选release版本

    kerl list releases

    Getting the available releases from erlang.org…
    R10B-0 R10B-10 R10B-1a R10B-2 R10B-3 R10B-4 R10B-5 R10B-6 R10B-7 R10B-8 R10B-9 R11B-0 R11B-1 R11B-2 R11B-3 R11B-4 R11B-5 R12B-0 R12B-1 R12B-2 R12B-3 R12B-4 R12B-5 R13A R13B01 R13B02-1 R13B02 R13B03 R13B04 R13B R14A R14B01 R14B02 R14B03 R14B04 R14B_erts-5.8.1.1 R14B R15B01 R15B02 R15B02_with_MSVCR100_installer_fix R15B03-1 R15B03 R15B R16A_RELEASE_CANDIDATE R16B01 R16B02 R16B03-1 R16B03 R16B 17.0-rc1 17.0-rc2 17.0 17.1 17.3 17.4 17.5 18.0 18.1 18.2.1 18.2
    Run “/usr/local/bin/kerl update releases” to update this list from erlang.org

    2.2 构建 & 安装

    kerl build 18.2.1 vanilla_erlang
    kerl install vanilla_erlang ~/.kerl/installations/vanilla_erlang/

    2.3 激活

    
    # 查看安装列表
    
    kerl list installations
    
    
    # 激活
    
    source ~/.kerl/installations/vanilla_erlang/activate
    
    
    # 验证
    
    erl --version
  3. 安装kiex

    curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s
    
    echo 'test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex"' >> ~/.bashrc
    
    source ~/.bashrc
  4. 使用 kiex 安装 elixir

     kiex install stable
     kiex use <version>
     # 验证
     iex --version

参考: Installing Erlang using kerl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值