Linux下安装Erlang

本文档记录了在Linux系统中安装Erlang的过程,包括下载源码、解压、配置以及遇到的依赖问题,如ncurses-devel、openssl-devel、unixODBC-devel和C++编译器的安装。虽然成功解决了部分依赖,但仍有jinterface、odbc和orber应用因缺少Java编译器和ODBC库未成功启用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.下载对应的文件

[root@ceph-node1 ~]# wget http://www.erlang.org/download/otp_src_R16B02.tar.gz


2.解压

[root@ceph-node1 ~]# tar zxvf otp_src_R16B02.tar.gz

[root@ceph-node1 ~]# cd otp_src_R16B02/

[root@ceph-node1 ~]#./configure

出现以下报错:

configure: error: No curses library functions found
configure: error: /bin/sh '/root/otp_src_R16B02/erts/configure' failed for erts

yum install ncurses-devel -y

重新编译安装:
[root@ceph-node1 ~]#./configure

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

crypto         : No usable OpenSSL found
jinterface     : No Java compiler found
odbc           : ODBC library - link check failed
orber          : No C++ compiler found
ssh            : No usable OpenSSL found
ssl            : No usable OpenSSL found

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

wx             : wxWidgets not found, wx will NOT be usable

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

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

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

安装openssl

[root@ceph-node1 otp_src_R16B02]#yum list | grep ssl

[root@ceph-node1 otp_src_R16B02]# yum install openssl-devel -y

./configure

报错:

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

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

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

wx             : wxWidgets not found, wx will NOT be usable

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

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

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

[root@ceph-node1 otp_src_R16B02]# yum list | grep ODBC

[root@ceph-node1 otp_src_R16B02]# yum install unixODBC-devel -y

./configure

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

jinterface     : No Java compiler found
orber          : No C++ compiler found

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

wx             : wxWidgets not found, wx will NOT be usable

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

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

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

[root@ceph-node1 otp_src_R16B02]# yum install gcc-c++ -y

./configure


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值