C Nodes Tutorial "erl_publish" error

classic Classic list List threaded Threaded
2 messages Options
by
Reply | Threaded
Open this post in threaded view
|

C Nodes Tutorial "erl_publish" error

by
Hi,

I am going through this tutorial: 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
by
Reply | Threaded
Open this post in threaded view
|

Re: C Nodes Tutorial "erl_publish" error

by
Hi,

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

With kind regards,
Yao

在 2019年9月21日,18:22,by <[hidden email]> 写道:

Hi,

I am going through this tutorial: 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions