Erlang Central

Difference between revisions of "Release Version"

From ErlangCentral Wiki

(Find the Version/Release of Erlang.)
 
(Added an FAQ link and improved the wording.)
Line 1: Line 1:
 
== Problem ==
 
== Problem ==
Identify which version of Erlang you are running or which Release you have installed.
+
Identify which version of the Erlang runtime system you are using and which Release you have installed.
  
 
== Solution ==
 
== Solution ==
You may find [http://www.erlang.org/faq/faq.html#AEN897 this section of the Erlang FAQ] helps.
+
You will find [http://www.erlang.org/faq/faq.html#AEN235 What's the current version?] and [http://www.erlang.org/faq/faq.html#AEN897 Which version am I running?] in the Erlang FAQ helpful.
  
These Erlang commands may be useful:
+
These functions are relevant :
 
<code>
 
<code>
 
erlang:system_info(version).
 
erlang:system_info(version).
 
"5.5"  
 
"5.5"  
% This is the erts (Erlang Run-Time System) version which is
+
% This is the erts (Erlang Run-Time System) version which
% also visible in the banner when you run erl.
+
% is also visible in the banner when you run erl.
 
</code>
 
</code>
  

Revision as of 13:12, 29 July 2007

Problem

Identify which version of the Erlang runtime system you are using and which Release you have installed.

Solution

You will find What's the current version? and Which version am I running? in the Erlang FAQ helpful.

These functions are relevant :

erlang:system_info(version).
"5.5" 
% This is the erts (Erlang Run-Time System) version which
% is also visible in the banner when you run erl.
init:script_id().
{"OTP  APN 181 01","R11B"}
% The major Release version shows above as "R11B".