服务器搭建--Linux安装erlang

本文详细介绍了在Linux环境下安装Erlang的过程,包括安装必要的依赖环境、下载及安装Erlang源码包,并配置环境变量等步骤。

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

1.安装依赖环境:

1)安装GCC GCC-C++ Openssl等模块,安装过就不需要安装了

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
2)安装ncurses

yum -y install ncurses-devel

2.下载erlang:

官网下载:http://erlang.org/download/

或者直接下载

[root@manmanda2018 ~]# cd /usr/local/src/
[root@manmanda2018 src]# wget http://erlang.org/download/otp_src_20.3.tar.gz
3.安装erlang:

解压:

[root@manmanda2018 ~]# cd /usr/local/src/
[root@manmanda2018 src]# tar -zxvf otp_src_20.3.tar.gz
安装:

[root@manmanda2018 src]# cd otp_src_20.3
[root@manmanda2018 otp_src_20.3]# ./configure --prefix /usr/local/soft
[root@manmanda2018 otp_src_20.3]# make
[root@manmanda2018 otp_src_20.3]# make install
查看安装位置:

[root@manmanda2018 ~]# whereis erlang
erlang: /usr/local/lib/erlang
配置环境变量:

在/etx/profile文件最后加上

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

执行

[root@manmanda2018 ~]# source /etc/profile
查看是否安装成功:

[root@manmanda2018 ~]# erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V9.2 (abort with ^G)
1>
安装完成。

执行./configure可能遇到以下错误:


然后会出现以下信息:
*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************


odbc           : ODBC library - link check failed


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


wx             : wxWidgets not found, wx will NOT be usable


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


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


*********************************************************************
解决第一个odbc问题,运行如下命令:
yum install unixODBC unixODBC-devel

至于第二可以安装,也可以不安装,不会影响整体安装。如有需要到这个网址下载:
http://www.wxwindows.org/downloads/#stable
解决完后,接着执行如下:
make
make install

服务器搭建--Linux安装jdk

服务器搭建--Linux安装tomcat

服务器搭建--Linux安装mysql5.7

服务器搭建--Linux安装MongoDB3.6.4

服务器搭建--Linux安装nginx

服务器搭建--Linux安装memcached

服务器搭建--Linux安装redis

服务器搭建--Linux安装erlang

服务器搭建--Linux安装rabbitmq
---------------------
作者:子非鱼yy
来源:CSDN
原文:https://blog.csdn.net/ztx114/article/details/79912570?utm_source=copy
版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://www.cnblogs.com/shizhijie/p/9795244.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值