简体   繁体   English

Windows命令行中的erlang

[英]erlang from windows command line

Anyone knows how to open the Erlang shell from windows command line? 有谁知道如何从Windows命令行打开Erlang shell? In official tutorial recommended to write "werl" to the command prompt but this command doesn't work. 在官方教程中,建议在命令提示符下写入“ werl”,但此命令无效。 PS I have installed erlang to my PC. PS我已经在我的PC上安装了erlang。

You have 2 simple ways to start an erlang shell on windows. 您有2种简单的方法可以在Windows上启动erlang shell。

1) you can open a terminal directly into the folder that contains werl.exe you want. 1)您可以将终端直接打开到包含所需的werl.exe的文件夹中。 Use Shift + right click and choose "open terminal here". 使用Shift +右键单击并选择“在此处打开终端”。 Then type "werl.exe" 然后输入“ werl.exe”

2) you can go into that folder using "cd path", then type "werl.exe" 2)您可以使用“ cd path”进入该文件夹,然后键入“ werl.exe”

Also if you use werl.exe, a new window will open. 另外,如果您使用werl.exe,则会打开一个新窗口。 If you want to stay with your windows terminal you should use erl.exe 如果您想呆在Windows终端上,则应使用erl.exe

werl uses the wxwidget library. werl使用wxwidget库。 Everything is installed automatically if you use the windows binary file . 如果使用Windows二进制文件,则会自动安装所有内容。

If you have installed from source, then wxwidget must be installed separately. 如果您是从源代码安装的,则必须单独安装wxwidget。

It is possible to start the erlang shell in a dos window: start a command window with cmd, and start the erlang shell from this window using erl. 可以在dos窗口中启动erlang shell:使用cmd启动命令窗口,然后使用erl从该窗口中启动erlang shell。

I guess that you already checked that werl exe is in the search path. 我猜您已经检查过werl exe是否在搜索路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM