Never mind my last comment, I manually compiled my version of the whole OTP, installed it in /opt/erlang with ./configure --prefix=/opt/erlang. Then added to my .bashrc the following export PATH=/opt/bin/erlang:$PATH. I put /opt/bin/erlang first so when I run "erl" it finds the executable in /opt/ and not the one in /usr/lib/erlang (which is the one that the package manager installs).
Never mind my last comment, I manually compiled my version of the whole OTP, installed it in /opt/erlang with ./configure --prefix= /opt/erlang. Then added to my .bashrc the following export PATH=/opt/ bin/erlang: $PATH. I put /opt/bin/erlang first so when I run "erl" it finds the executable in /opt/ and not the one in /usr/lib/erlang (which is the one that the package manager installs).