linux安装erlang

本文介绍了如何在Linux系统上下载、安装Erlang编程语言,包括系统环境检查、编译依赖安装、源码包配置、编译与安装过程,以及如何设置环境变量以验证Erlang版本。
摘要由CSDN通过智能技术生成

摘要

Erlang是一种通用的面向并发的编程语言,它由瑞典电信设备制造商爱立信所辖的CS-Lab开发,目的是创造一种可以应对大规模并发活动的编程语言和运行环境。

环境准备

系统环境

使用命令:uname -a 或者 uname -r,执行后如下:
linux系统信息指令

安装编译依赖

yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget

下载

下载地址 : 官网下载

$ wget https://erlang.org/download/otp_src_25.1.tar.gz

解压

$ tar -xzvf otp_src_25.1.tar.gz
$ cd otp_src_25.1
$ ./configure --prefix=/usr/local/erlang

这里执行后 会出现一些警告信息:

root@test-vmware71:/usr/local/otp_src_25.1# ./configure --prefix=/usr/local/erlang
config.status: creating c_src/Makefile
configure: WARNING: No GLU headers found, wx will NOT be usable
configure: WARNING:
    wxWidgets must be installed on your system.

    Please check that wx-config is in path, the directory
    where wxWidgets libraries are installed (returned by
    'wx-config --libs' or 'wx-config --static --libs' command)
    is in LD_LIBRARY_PATH or equivalent variable and
    wxWidgets version is 3.0.2 or above.

*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************

jinterface     : No Java compiler found
odbc           : ODBC library - link check failed

*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************

wx             : No GLU headers found, wx will NOT be usable
wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available

    wxWidgets must be installed on your system.

    Please check that wx-config is in path, the directoryguest
    where wxWidgets libraries are installed (returned by
    'wx-config --libs' or 'wx-config --static --libs' command)
    is in LD_LIBRARY_PATH or equivalent variable and
    wxWidgets version is 3.0.2 or above.

*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************

documentation  : 
                 fop is missing.
                 Using fakefop to generate placeholder PDF files.

*********************************************************************

跳过继续执行!!!

编译与安装

make && make install

配置环境变量

$ vim /etc/profile

在后面追加内容:

export ERLANG_HOME=/usr/local/erlang
export PATH=$ERLANG_HOME/bin:$PATH

然后执行刷新配置

$ source /etc/profile

验证Erlang

erl -version
  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值