<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thanks.  I think you may be right.  I'll have to work on how to set<div>this up, because this is a Mac and the Unix networking tools only</div><div>*sort of* work.  In particular, "hostname" doesn't have a "--long"</div><div>option.</div><div><br></div><div>Static IP may be a bit challenging, or at least laborious, because</div><div>my machine is a laptop moved relatively frequently to different</div><div>locations.</div><div><br></div><div>And I'm not clear on how to set up a "domain" in the sense you</div><div>mean.  I  have a couple of them, but they're not DNS'd to my</div><div>laptop.</div><div><br></div><div>I wonder if Erlang will evolve to match the way people use </div><div>computers now (and didn't 10, 20 years ago).</div><div><br></div><div>-jmc</div><div><br><div><div>On Jun 18, 2008, at 11:00 PM, Edwin Fine wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div>Is your OS set up to have a long hostname? What does</div><div>hostname --long show? I think Erlang expects to see</div><div>something like mybox.domain.name. Very often, home or</div><div>personal Linux installations are created without a domain</div><div>name, so hostname --long returns something just like</div><div>"mybox". You need to change this so that you have a domain</div><div>name. To do this, I think you would need to set your box to</div><div>have a static IP address (not DHCP) and modify /etc/hosts so</div><div>that the static IP address for your box is known by a fully</div><div>qualified name, e.g.</div></div> <br>/etc/hosts:<br><a href="http://127.0.0.1">127.0.0.1</a> localhost<br><a href="http://192.168.1.100">192.168.1.100</a> <a href="http://mybox.mydomain.com">mybox.mydomain.com</a><br><br>If you're not actually on a real domain (which is probable), you'll need to make one up.<br> <br>Hope this helps. It worked for me.<br><br><div class="gmail_quote">On Wed, Jun 18, 2008 at 9:48 PM, John Chandler <<a href="mailto:morph@growler.net">morph@growler.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I was following an example and found that my configuration lacks the<br> ability to "set long node name."  I checked the crash dump, and it<br> wasn't informative to me.  I would attach it, but it's 180K, so I'll<br> only do that if asked to.<br> <br> So, any idea what I should change in my configuration?<br> <br> -jmc<br> ====<br>  $ erl -name foo<br> {error_logger,{{2008,6,18},{21,43,13}},"Can't set long node name!<br> \nPlease check your configuration\n",[]}<br> {error_logger,{{2008,6,18},{21,43,13}},crash_report,[[{pid,<0.20.0>},<br> {registered_name,net_kernel},{error_info,{error,badarg}},<br> {initial_call,{gen,init_it,[gen_server,<0.17.0>,<0.17.0>,<br> {local,net_kernel},net_kernel,{foo,longnames,15000},[]]}},{ancestors,<br> [net_sup,kernel_sup,<0.8.0>]},{messages,[]},{links,[<0.17.0>]},<br> {dictionary,[{longnames,true}]},{trap_exit,true},{status,running},<br> {heap_size,233},{stack_size,21},{reductions,363}],[]]}<br> {error_logger,{{2008,6,18},{21,43,13}},supervisor_report,[{supervisor,<br> {local,net_sup}},{errorContext,start_error},{reason,<br> {'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},<br> {mfa,{net_kernel,start_link,[[foo,longnames]]}},<br> {restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}<br> {error_logger,{{2008,6,18},{21,43,13}},supervisor_report,[{supervisor,<br> {local,kernel_sup}},{errorContext,start_error},{reason,shutdown},<br> {offender,[{pid,undefined},{name,net_sup},{mfa,<br> {erl_distribution,start_link,[]}},{restart_type,permanent},<br> {shutdown,infinity},{child_type,supervisor}]}]}<br> {error_logger,{{2008,6,18},{21,43,13}},crash_report,[[{pid,<0.7.0>},<br> {registered_name,[]},{error_info,{shutdown,{kernel,start,[normal,<br> []]}}},{initial_call,{application_master,init,[<0.5.0>,<0.6.0>,<br> {appl_data,kernel,<br> [application_controller,erl_reply,auth,boot_server,code_server,disk_log_<br> server,disk_log_sup,erl_prim_loader,error_logger,file_server_2,fixtable_<br> server,global_group,global_name_server,heart,init,kernel_config,kernel_s<br> up,net_kernel,net_sup,rex,user,os_server,ddll_server,erl_epmd,inet_db,pg<br> 2],undefined,{kernel,[]},<br> [application,application_controller,application_master,application_start<br> er,auth,code,code_aux,packages,code_server,dist_util,erl_boot_server,erl<br> _distribution,erl_prim_loader,erl_reply,erlang,error_handler,error_logge<br> r,file,file_server,file_io_server,prim_file,global,global_group,global_s<br> earch,group,heart,hipe_unified_loader,inet6_tcp,inet6_tcp_dist,inet6_udp<br> ,inet_config,inet_hosts,inet_gethost_native,inet_tcp_dist,init,kernel,ke<br> rnel_config,net,net_adm,net_kernel,os,ram_file,rpc,user,user_drv,user_su<br> p,disk_log,disk_log_1,disk_log_server,disk_log_sup,dist_ac,erl_ddll,erl_<br> epmd,erts_debug,gen_tcp,gen_udp,gen_sctp,prim_inet,inet,inet_db,inet_dns<br> ,inet_parse,inet_res,inet_tcp,inet_udp,inet_sctp,pg2,seq_trace,wrap_log_<br> reader,zlib,otp_ring0],[],infinity,infinity},normal]}},{ancestors,<br> [<0.6.0>]},{messages,[{'EXIT',<0.8.0>,normal}]},{links,<br> [<0.6.0>,<0.5.0>]},{dictionary,[]},{trap_exit,true},{status,running},<br> {heap_size,987},{stack_size,21},{reductions,2063}],[]]}<br> {error_logger,{{2008,6,18},{21,43,13}},std_info,[{application,kernel},<br> {exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br> {"Kernel pid<br> terminated",application_controller,"{application_start_failure,kernel,<br> {shutdown,{kernel,start,[normal,[]]}}}"}<br> <br> Crash dump was written to: erl_crash.dump<br> Kernel pid terminated (application_controller)<br> ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,<br> []]}}})<br> _______________________________________________<br> erlang-questions mailing list<br> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br> <br> </blockquote></div><br></blockquote></div><br></div></body></html>