Erlang Development Quick Start-Environment Setup

1. Open the erlang official website and download the erlang development package. (erlang ).

  http://erlang.org/
  
  http://erlang.org/download/otp_win32_18.0.exe (win)

  
2. Install the erlang development package, then locate the installation directory of erlang, and add its bin to the PATH.

   ERL_HOME PATH = ${erlang_install_dir}   
   
   PATH = PATH;%{ERL_HOME PATH}\bin


   

3. Open the console cmd and

   type: erl and press Enter. At this time, there should be a response. If there is no response, it means that erlang has not been installed successfully or the path has not been set correctly.
   
   Type "12+23+62." and press Enter, the system should display 97.
   
   OK! The Runtime is built.


4. Use eclipse to develop erlang to
   
   download the latest version of eclipse. version above mars. The Java SE Runtime needs to be installed on the system to 
   
   open eclipse, click "help -> Eclipse Marketplace",
   
   type "erlide" to search, select the first search result to install, and then restart Eclipse.
   
   After restarting, a setting box will pop up. Select "Erlang -> InstalledRuntimes" on the left, click "Add" on the right, add the erlang path, and click "OK".
   
   "File -> Erlang Project", create a new Project.
   
   Right-click the src folder under #{Project}, select "New -> Module", and name it hello. determine.
   
   In this way, a file named hello.erl is generated in the src directory, and double-click to open the file. Then press Ctrl + F11 to run.
      
   After running, a blank multi-line input box appears at the bottom left of eclipse.
   
   Type "io.format("hello")." in it and press Enter. The above output box instantly displays hello
      
   OK! IDE is built!
   

Guess you like

Origin blog.csdn.net/RoadToTheExpert/article/details/52448072