[erlang-questions] can i tell what version or erlang a .beam was compiled with?

Garry Hodgson garry@REDACTED
Fri May 8 22:00:03 CEST 2015


On 05/08/2015 02:28 PM, Roger Lipscombe wrote:
> On 8 May 2015 at 18:41, Garry Hodgson <garry@REDACTED> wrote:
>> is there any way i can determine from a .beam file
>> what version of erlang was used to compile it? or, for that
>> matter, any other way to rule out or confirm this possibility?
> beam_lib has what you need:
> ...
> What's that "4.9.4"? It's the compiler version...
>
> <0.39.0> (myapp@REDACTED) 6> code:which(compile).
> "/usr/local/erlang-R16B03-1/lib/compiler-4.9.4/ebin/compile.beam"
ahh, perfect. i looked at beam_lib, but missed that.
thanks very much.


-- 
Garry Hodgson
Lead Member of Technical Staff
AT&T Chief Security Office (CSO)

"This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited."




More information about the erlang-questions mailing list