fedora30(linux):编译安装erlang 23.2(emulator 11.1.4)
2023-09-14 09:01:18 时间
一,关于erlang
1,官网:https://www.erlang.org/
2,erlang的下载地址:
http://erlang.org/download/
复制最新的稳定版的安装包地址:
http://erlang.org/download/otp_src_23.2.tar.gz
说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest
对应的源码可以访问这里获取: https://github.com/liuhongdi/
说明:作者:刘宏缔 邮箱: 371125307@qq.com
二,下载erlang:
[root@localhost redismock]# cd /usr/local/source/ [root@localhost source]# wget http://erlang.org/download/otp_src_23.2.tar.gz
三,安装erlang:
1,解压:
[root@localhost source]# tar -zxvf otp_src_23.2.tar.gz
2,配置、编译、安装
进入源码目录:
[root@localhost source]# cd otp_src_23.2/
创建安装目录:
[root@localhost otp_src_23.2]# mkdir /usr/local/soft/erlang
配置:
[root@localhost otp_src_23.2]# ./configure --prefix=/usr/local/soft/erlang
安装:
[root@localhost otp_src_23.2]# make && make install
3,测试安装是否成功:
[root@localhost otp_src_23.2]# /usr/local/soft/erlang/bin/erl Erlang/OTP 23 [erts-11.1.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe] Eshell V11.1.4 (abort with ^G) 1>
四,安装过程中的报错:
1,报错:
configure: error: No curses library functions found ERROR: /usr/local/source/otp_src_23.2/erts/configure failed! 已杀死
解决:
[root@localhost otp_src_23.2]# dnf install ncurses-devel
五,配置bin路径:
[root@localhost otp_src_23.2]# vi /etc/profile
内容:增加两行:
export ERL_PATH=/usr/local/soft/erlang/bin
export PATH=$ERL_PATH:$PATH
使生效
[root@localhost otp_src_23.2]# source /etc/profile
测试效果
[root@localhost otp_src_23.2]# erl Erlang/OTP 23 [erts-11.1.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe] Eshell V11.1.4 (abort with ^G) 1>
六,查看erlang的版本:
[root@localhost otp_src_23.2]# erl -version Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 11.1.4
七,查看linux的版本:
[root@localhost otp_src_23.2]# more /etc/redhat-release Fedora release 30 (Thirty)
相关文章
- 权限Linux下添加文件夹权限的操作方法(linux添加文件夹)
- Linux环境安装快速上手指南(linux环境安装包)
- 管理Linux进程:利用命令行(linux进程命令行)
- Linux目录结构:深入解析(linux表示目录)
- .net安装 Linux 上的 ASP.NET 环境(linux安装asp)
- 安装维护VM和Linux安装维护实践指南(vm与linux)
- 文件系统在 Linux 上安装 XFS 文件系统(linux安装xfs)
- 实现Linux系统路由器安装(linux安装路由器)
- Linux服务器安装及运维全过程(linux服务过程)
- Linux防火墙:关闭防护策略(关闭linux的防火墙)
- Linux 环境下反汇编软件的应用(linux反汇编软件)
- 系统Linux的枝叶——延伸无限可能(linux的分支)
- 初级:如何在 Linux Mint 上安装 Google Chrome
- Linux .so文件详解:如何安装及使用(linux.so)
- 如何在Linux系统中安装和运行Windows 7?(linux中win7)
- 如何在Linux上安装Poco?(linux安装poco)
- Linux常用软件安装教程:多种简便方式解析(linux安装软件方式)
- 片机Linux串口接入卡片机的实现(linux串口卡)
- Linux安装中文字符:一步一步指南(linux安装中文字符)
- Linux上安装谷歌浏览器的简易指南(linux安装谷歌浏览器)
- 如何通过文本模式安装Linux操作系统(文本模式安装linux)
- 五种简便易行的Linux安装方式(linux安装方式)
- Linux系统下编译安装显卡驱动教程(linux编译显卡驱动)
- 轻松掌握Linux内存查看技巧(linux 内存查看)
- Linux下文件数量的最大限制(linux 文件数限制)