erlang安装报错

[MTRJ005@sgh1vcsp01 otp_src_18.3]$ sudo ./configure --prefix=/opt/erlang
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for ld... ld
checking for GNU make... yes (make)
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking ERTS version... 7.3
checking OTP release... 18
checking OTP version... 18.3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating make/output.mk
config.status: creating make/emd2exml
configure: configuring in lib
configure: running /bin/sh '/opt/otp_src_18.3/lib/configure' --prefix=/opt/erlang  '--prefix=/opt/erlan                                                                 g' --cache-file=/dev/null --srcdir=/opt/otp_src_18.3/lib
configure: creating ./config.status
configure: configuring in snmp/.
configure: running /bin/sh '/opt/otp_src_18.3/lib/snmp/./configure' --prefix=/opt/erlang  '--prefix=/op                                                                 t/erlang' '--cache-file=/dev/null' '--srcdir=/opt/otp_src_18.3/lib' --cache-file=/dev/null --srcdir=/op                                                                 t/otp_src_18.3/lib/snmp/.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for perl... no_perl
configure: error: Perl is required to generate v2 to v1 mib converter script
configure: error: /bin/sh '/opt/otp_src_18.3/lib/snmp/./configure' failed for snmp/.
configure: error: /bin/sh '/opt/otp_src_18.3/lib/configure' failed for lib

依赖于perl,所以使用yum install perl。

161819_jthA_3262302.png

安装好perl之后,继续执行configure命令

162042_YCsg_3262302.png

162115_QalL_3262302.png

换了新的错误:提示No curses library function found!

解决方案:sudo yum install ncurses-devel

162303_bE3u_3262302.png

再次执行configure命令,执行结果如下

163259_gjIA_3262302.png

 sudo yum install unixODBC-devel,在执行configure命令

再执行 sudo make && make install

170411_aZ7l_3262302.png

决定还是切换到ROOT用户,再试一次

 

113905_j1CU_3262302.png

需要安装G++

 sudo yum install gcc-c++

113840_quow_3262302.png

继续报错:hipe/hipe_process.h:82:12: error: ‘ERTS_ALC_T_HIPE’ undeclared (first use in this function)

114302_SRuU_3262302.png

 

 

转载于:https://my.oschina.net/u/3262302/blog/1791807

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值