[erlang-questions] Using Dialyzer on Ubuntu 9.10?

Kostis Sagonas kostis@REDACTED
Fri Dec 18 17:52:07 CET 2009


Jeremy Raymond wrote:
> Hello,
> 
> I'm attempting to run dialyzer on my code on Ubuntu 9.10 with the Erlang
> version (R13B01) that ships with Ubuntu. Dialyzer tells me I need to build
> my plt file. When I attempt to do so by running the command:
> 
>      dialyzer --build_plt -r
> /usr/lib/erlang/lib/{compiler-*,kernel-*,dialyzer-*,erts-*,stdlib-*}/ebin
> 
> I get the error message, 'dialyzer: Could not get abstract code for
> file...'. Searching online it seems that the debug info has been stripped
> out of the beam files of the Erlang shipped with Ubuntu to reduce the size
> as per: https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/385093.
> 
> Do I need to download/compiler Erlang myself with the debug info to use
> dialyzer or am I missing something here (can I find the debug info somewhere
> else)?

I think you should do yourself a favour and scrap the Ubuntu Erlang 
package and instead go for installing yourself the source version of 
R13B03, which builds .beam files with debug_info in them (as it should).

Besides the ability to run dialyzer on your code, you will end up with a 
better/newer Erlang system.  The installation process itself should be 
trivial.

Kostis


More information about the erlang-questions mailing list