[erlang-questions] C Nodes Tutorial "erl_publish" error

by by@REDACTED
Sun Sep 22 10:58:30 CEST 2019


Hi,

I fixed this by manually run epmd daemon as below:
$ epmd -daemon

With kind regards,
Yao

> 在 2019年9月21日,18:22,by <by@REDACTED> 写道:
> 
> Hi,
> 
> I am going through this tutorial: http://erlang.org/doc/tutorial/cnode.html <http://erlang.org/doc/tutorial/cnode.html>
> 
> Compile steps works, but when I try to run the example with below command:
> $ ./cserver 3456
> 
> I got this:
> erl_publish
> 
> $ echo $?
> 1
> 
> Does anyone encounter this before?
> Based on the documentation, seems this issue comes from:
>   if (erl_publish(port) == -1)
>     erl_err_quit("erl_publish");
> But what should I do to fix this?
> 
> I run this on my Mac computer: macOS Sierra 10.12.6
> Erlang version: Erlang/OTP 22.0.1
> 
> With kind regards,
> Yao
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190922/d80f5dea/attachment.htm>


More information about the erlang-questions mailing list