Erlang installation error

[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

Depends on perl, so use yum install perl.

After installing perl, continue to execute the configure command

Changed a new error: prompt No curses library function found!

Solution: sudo yum install ncurses-devel

Execute the configure command again, the execution result is as follows

 sudo yum install unixODBC-devel, execute the configure command

Then execute sudo make && make install

Decide or switch to ROOT user and try again

 

G++ needs to be installed

 sudo yum install gcc-c++

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

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325681223&siteId=291194637