Erlang Erl命令在Windows 10上不起作用

ujv3wf0j  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(282)

Hello i was trying to issue some distributed erlang commands such as erl -sname / erl -name and i do not get a response.
If i put . at the end it says syntax error.
If i don't it won't return anything and it will treat it like an unfinished command.
I thought this is only for these commands but it seems there are others that will not do anything like erl -man <module_name> .
Do i need to set something up to be able to issue erl commands.

P.S OS is Windows 10 .

dpiehjr4

dpiehjr41#

The erl command (with or without -sname ) is simply how you run Erlang from a console window like cmd or powershell. On Windows, to get a fully working Erlang shell with command line editing etc, you need to use the special werl executable instead of erl - this is due to how Windows consoles work. Try opening a cmd or powershell windows and see how it works.
If you open the properties of the icon you have used for starting Erlang, you will see that the command it is running is werl (from the Start menu you have to use "more -> open file path" to find the actual icon first). You can edit this and add options like -sname yournodename to the command, or you can create a copy of the icon (e.g. to your desktop) and give it a more suitable name, like "My Erlang node", and then edit its options.

相关问题