erl and erlc fail to start on Redhat Linux 6.1

Adam P. Jenkins <>
Thu Aug 3 19:18:46 CEST 2000


Hi,

I'm having a problem getting erlang to run.  I have a Linux system, on on
PII 500Mhz, 128 megs ram, Redhat Linux 6.1 with kernel 2.2.12 and glibc
2.1.2.

I first downloaded and installed erlang_otp-R6B-4.i386.rpm from
www.erlang.org.  When I try to run erl, I get the following error message:

[dwarin:/tmp]# erl
{error_logger,{{2000,8,3},{13,2,4}},supervisor_report,[{supervisor,{local,ke
rnel
_sup}},{errorContext,start_error},{reason,{'EXIT',{noproc,{gen_server,call,[
net_
sup,{start_child,{inet_gethost_native,{inet_gethost_native,start_link,[]},pe
rman
ent,1000,worker,[inet_gethost_native]}},infinity]}}}},{offender,[{pid,undefi
ned}
,{name,inet_db},{mfa,{inet_db,start_link,[]}},{restart_type,permanent},{shut
down
,2000},{child_type,worker}]}]}
{error_logger,{{2000,8,3},{13,2,4}},crash_report,[[{pid,<0.7.0>},{registered
_nam
e,[]},{error_info,{shutdown,{kernel,start,[normal,[]]}}},{initial_call,{appl
icat
ion_master,init,[<0.5.0>,<0.6.0>,{appl_data,kernel,[application_controller,e
rl_r
eply,auth,boot_server,code_server,disk_log_server,disk_log_sup,erl_prim_load
er,e
rror_logger,file_server,fixtable_server,global_group,global_name_server,hear
t,in
it,kernel_config,kernel_sup,net_kernel,net_sup,rex,user,os_server,ddll_serve
r,er
l_epmd,inet_db,pg2],undefined,{kernel,[]},[application,application_controlle
r,ap
plication_master,application_starter,auth,code,code_aux,code_server,code_ser
ver_
int,dist_util,erl_boot_server,erl_distribution,erl_open_port,erl_prim_loader
,erl
_reply,erlang,error_handler,error_logger,file,global,global_group,global_sea
rch,
group,heart,inet6_tcp,inet6_tcp_dist,inet6_udp,inet_config,inet_hosts,inet_g
etho
st_native,inet_tcp_dist,otp_pre_init,init,kernel,kernel_config,net,net_adm,n
et_k
ernel,os,ram_file,rpc,user,user_drv,user_sup,disk_log,disk_log_1,disk_log_se
rver
,disk_log_sup,dist_ac,erl_atom_cache,erl_ddll,erl_epmd,erl_external,erts_deb
ug,f
ixtable_server,gen_tcp,gen_udp,inet,inet_db,inet_dns,inet_parse,inet_res,ine
t_tc
p,inet_udp,pg2,seq_trace,socks5,socks5_auth,socks5_tcp,socks5_udp,wrap_log_r
eade
r],[],infinity,infinity},normal]}},{ancestors,[<0.6.0>]},{messages,[{'EXIT',
<0.8
.0>,normal}]},{links,[<0.6.0>,<0.5.0>]},{dictionary,[]},{trap_exit,true},{st
atus
,running},{heap_size,987},{stack_size,21},{reductions,1063}],[]]}
{error_logger,{{2000,8,3},{13,2,4}},std_info,[{application,kernel},{exited,{
shut
down,{kernel,start,[normal,[]]}}},{type,permanent}]}
{'Kernel pid terminated',application_controller,shutdown}
Kernel pid terminated (application_controller) (shutdown)
[dwarin:/tmp]#

I thought maybe this binary RPM had been built with incompatible libraries
so I downloaded the source archive, otp_src_R6B-0.tar.gz, and ran
./configure and make.  When make got to the point where it started to use
erlc to compile erlang files, it gave a similar error:

make[4]: Entering directory `/tmp/otp_src_R6B-0/lib/gs/contribs/bonk'
erlc -W  -bbeam   -o../ebin bonk.erl
{error_logger,{{2000,8,3},{12,54,34}},supervisor_report,[{supervisor,{local,
kern
el_sup}},{errorContext,start_error},{reason,{'EXIT',{noproc,{gen_server,call
,[ne
t_sup,{start_child,{inet_gethost_native,{inet_gethost_native,start_link,[]},
perm
anent,1000,worker,[inet_gethost_native]}},infinity]}}}},{offender,[{pid,unde
fine
d},{name,inet_db},{mfa,{inet_db,start_link,[]}},{restart_type,permanent},{sh
utdo
wn,2000},{child_type,worker}]}]}
{error_logger,{{2000,8,3},{12,54,34}},crash_report,[[{pid,<0.7.0>},{register
ed_n
ame,[]},{error_info,{shutdown,{kernel,start,[normal,[]]}}},{initial_call,{ap
plic
ation_master,init,[<0.5.0>,<0.6.0>,{appl_data,kernel,[application_controller
,erl
_reply,auth,boot_server,code_server,disk_log_server,disk_log_sup,erl_prim_lo
ader
,error_logger,file_server,fixtable_server,global_group,global_name_server,he
art,
init,kernel_config,kernel_sup,net_kernel,net_sup,rex,user,os_server,ddll_ser
ver,
erl_epmd,inet_db,pg2],undefined,{kernel,[]},[application,application_control
ler,
application_master,application_starter,auth,code,code_aux,code_server,code_s
erve
r_int,dist_util,erl_boot_server,erl_distribution,erl_open_port,erl_prim_load
er,e
rl_reply,erlang,error_handler,error_logger,file,global,global_group,global_s
earc
h,group,heart,inet6_tcp,inet6_tcp_dist,inet6_udp,inet_config,inet_hosts,inet
_get
host_native,inet_tcp_dist,otp_pre_init,init,kernel,kernel_config,net,net_adm
,net
_kernel,os,ram_file,rpc,user,user_drv,user_sup,disk_log,disk_log_1,disk_log_
serv
er,disk_log_sup,dist_ac,erl_atom_cache,erl_ddll,erl_epmd,erl_external,erts_d
ebug
,fixtable_server,gen_tcp,gen_udp,inet,inet_db,inet_dns,inet_parse,inet_res,i
net_
tcp,inet_udp,pg2,seq_trace,socks5,socks5_auth,socks5_tcp,socks5_udp,wrap_log
_rea
der],[],infinity,infinity},normal]}},{ancestors,[<0.6.0>]},{messages,[{'EXIT
',<0
.8.0>,normal}]},{links,[<0.6.0>,<0.5.0>]},{dictionary,[]},{trap_exit,true},{
stat
us,running},{heap_size,987},{stack_size,21},{reductions,1063}],[]]}
{error_logger,{{2000,8,3},{12,54,34}},std_info,[{application,kernel},{exited
,{sh
utdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{'Kernel pid terminated',application_controller,shutdown}
Kernel pid terminated (application_controller) (shutdown)
make[4]: *** [../ebin/bonk.beam] Error 1
make[4]: Leaving directory `/tmp/otp_src_R6B-0/lib/gs/contribs/bonk'

I had already uninstalled the binary erlang rpm, so I know this was using
the version of erlc that it had just compiled.  Do you have any idea why
this is happening?  I can't decipher anything intelligible from the error
message.  I can post the erl_crash.dump file too if that would help.  I
assume it's just something simple wrong with my setup.  Thank you in advance
for any help you can give.

Adam

--
Adam P. Jenkins






More information about the erlang-questions mailing list