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。

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

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

解决方案:sudo yum install ncurses-devel

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

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

再执行 sudo make && make install

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

需要安装G++

 sudo yum install gcc-c++

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

猜你喜欢

转载自my.oschina.net/u/3262302/blog/1791807
今日推荐