"No such file or directory" and current working directory issues occur when Erlang compiles

Source: Internet
Author: User

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%

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.