Beginner Erlang, when compiling the. erl file, Tip:
>1 C (some_module)
./some_module.erl:none:no such file or directory
Error
This is because the. erl file is not being caused in the current working directory of Erlang. Enter the following function in the Erlang shell to get the current working directory: >1 pwd (). You can switch the working directory using the following function: >1 c:cd ("X:/your_erlang_directory"). It is important to note that even under Windows, separators use "/" to create an. erlang file in the Windows user directory and enter the above command in the file so that the Erlang shell automatically switches to the specified directory after it is started. Files with only the extension (. Erlang) cannot be created directly under Windows, and you can create files using Notepad-Save As. Can also be created on the cmd command line: > CD%userprofile%