Solution to installing Erlang on Windows Server and not recognizing erl command

Table of contents

1. Download Erlang

2. Install Erlang 

3. Set up Erlang

4. Inspection and installation

 5. Unable to recognize erl command


If you encounter inexplicable problems during installation, you can try to apply the latest patch to Windows. There is a friend in the comment area who successfully installed the update by turning off Windows. Thanks to this friend for providing a solution.

Operating system: windows Server 2012 R12

Erlang:Erlang v24.3.4(otp_win64_24.3.4.exe)

RabbitMQ is developed using the Erlang language, so Erlang must be installed correctly when installing RabbitMQ, otherwise it will not run and it will prompt: ERLANG_HOME not set correctly

******************************
ERLANG_HOME not set correctly.
******************************

Please either set ERLANG_HOME to point to your Erlang installation or place the
RabbitMQ server distribution in the Erlang lib folder.

1. Download Erlang

Enter the Erlang official website. If you want to download the latest version of Erlang, just click [Download Windows installer] to download. The system will automatically match the corresponding version. If you choose 64-bit or 32-bit, just click the arrow on the right side of the button.

If you want to download other versions, click on the corresponding major version number (blue arrow) on the right side of the page. After selecting the minor version number, the download address will be displayed at the bottom of the page. Select [Git Tag] to enter the github download page.

Scroll to the bottom of the page and select the corresponding version to download.

2. Install Erlang 

Double-click Erlang to install and click next.

3. Set up Erlang

Create a new environment variable ERLANG_HOME, the value is the path of Erlang installation in the previous step, such as C:\Program Files\erl-24.3.4. And add %ERLANG_HOME%\bin to the path, paying attention to the semicolons.

4. Inspection and installation

Win+R enter cmd to open the command window. Be sure to set the environment variables before opening the command window! ! Enter erl -version:

 5. Unable to recognize erl command

The first installation is to double-click the installation directly and follow the third step to set up, but when entering erl, it prompts:

'erl' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

I checked the settings many times and found no problems. I checked the environment variables through the set path command and the path settings were correct. The last article reminded me that when installing RabbitMQ, you need to use administrator rights to open the directory.

Reinstall Erlang with administrator rights (right-click the installation file and select [Run as administrator]). After installation, reopen the DOS command window and execute erl -version to display the version number.

Guess you like

Origin blog.csdn.net/caicaimaomao/article/details/124904499