Erlang Otp Download Windows ~UPD~

0 views
Skip to first unread message

Wardex Walker

unread,
Jan 24, 2024, 10:03:20 PM1/24/24
to loamueclabear

Now before you can start working on Erlang, you need to ensure that you have a fully functional version of Erlang running on your system. This section will look into the installation of Erlang and its subsequent configuration on a windows machine to get started with Erlang.

I copied the bin path, went back to my hello-world folder, right-clicked start.cmd and chose for edit, and assumed replacing 5.7.5 (the Erlang version in the nitrogen package) with 5.9.2 would be enough, but then I noticed: there is also and erts-5.7.5 subfolderfolder in the hello world project, which looks like it contains the whole erlang version...

erlang otp download windows


DOWNLOADhttps://t.co/7teFM3CF0n



When running the commands from the batch file manually with the installed erlang (i.e. the one from c:\program files) I get a crash on the execution of the last line, so it compiles, but refuses to run. So I decide to uninstall erlang, as I assume it is some kind of a version conflict, and I probably do not need the installation anyway.

I browsed a bit further in the git project, and found this document mentioned on the readme: "Compiling Nitrogen on Windows"... There they advise to install Erlang for win R15B02 for windows and install it in the folder "c:\erl5.9", so I installed yet another erlang (5.9.2), but now in the recommended folder, and tried running nitrogen again; here's what happened:

My understanding of erlang is growing slowly ... Looks like this file just extracts all method definitions, since these have not changed, there is no need to change it, so I just commented the whole enchilada (gist here: ) et voila, it compiles!

With Erlang versions starting with 20.2, the cookie file locations are: %HOMEDRIVE%%HOMEPATH%.erlang.cookie (usually C:\Users%USERNAME%.erlang.cookie for user %USERNAME%) if both the HOMEDRIVE and HOMEPATH environment variables are set %USERPROFILE%.erlang.cookie (usually C:\Users%USERNAME%.erlang.cookie) if HOMEDRIVE and HOMEPATH are not both set.

For the RabbitMQ Windows service - %USERPROFILE%.erlang.cookie (usually C:\WINDOWS\system32\config\systemprofile) The cookie file used by the Windows service account and the user running CLI tools must be synchronized.

On Erlang versions prior to 20.2 (e.g. 19.3 or 20.1), the cookie file locations are: %HOMEDRIVE%%HOMEPATH%.erlang.cookie (usually C:\Users%USERNAME%.\erlang.cookie for user %USERNAME%) if both the HOMEDRIVE and HOMEPATH environment variables are set %USERPROFILE%.erlang.cookie (usually C:\Users\%USERNAME%.\erlang.cookie) if HOMEDRIVE and HOMEPATH are not both set.

That cookie value is the shared secret for the cluster, so all nodes which will be joined to the cluster must use this shared secret. Retrieve the value out of the cookie in the above location from the node you are trying to join so that you can use it with the Set ErlangCookieFileCommand on another node. The other node will have its erlang cookie set to match the first node and the clustering commands will be used to join the other node to the first node. It will then be brought into mirror with the first node.

df19127ead
Reply all
Reply to author
Forward
0 new messages