If you install all the dependencies of the Erlang, just running
sudo aptitude install libwxgtk2.8-dev libgl1-mesa-dev libglu1-mesa-dev libpng3
and then build Erlang/OTP from the source, it will work for you.
But standard Erlang packages in Ubuntu won't run any application with WxWidgets GUI...
If you install all the dependencies of the Erlang, just running
sudo aptitude install libwxgtk2.8-dev libgl1-mesa-dev libglu1-mesa-dev libpng3
and then build Erlang/OTP from the source, it will work for you.
But standard Erlang packages in Ubuntu won't run any application with WxWidgets GUI...