[erlang-questions] "erlang-src" package upgrade breaks "syntax_tools" and rebar builds

Roger Lipscombe <>
Fri Jan 31 15:23:45 CET 2014

This morning, I let apt-get upgrade install a new "erlang-src"
package. This has broken rebar. Specifically, I get the error message:

ERROR: compile failed while processing /home/roger/Source/rebar/rebar:

That is: rebar fails to compile other things, but (here) is also seen
failing to compile itself.

Upon investigation, I discover that I have both
"/usr/lib/erlang/lib/syntax_tools-1.6.12" and
"/usr/lib/erlang/lib/syntax_tools-1.6.13". The "-1.6.12" directory
contains "ebin", but no "src", and the "-1.6.13" directory contains
"src", but no "ebin".

It would appear that my installation is using the newer one, and
failing to find the .beam files.

So, some questions:

1. How do I (on Linux Mint 15, so basically Ubuntu) figure out which
APT repository the .deb file came from? This so that I can lay blame
2. I'd like to roll back the "erlang-src" package that broke this, but
it appears to have the same version number as the previous one both
are "1:16.b.3". Any idea how I do this?
3. Can I simply delete the offending, newer, directory?
4. If not, how do I get the binaries for "-1.6.13"?
5. Or: how do I compile the source to do that myself?

My feeling is that Erlang Solutions have repackaged "erlang-src", and
somehow bumped the version number so that it got upgraded (not that I
can tell the difference), but that, for some reason, I'm not seeing
the corresponding "erlang-syntax-tools" upgrade, which would contain
the "ebin" directory.



More information about the erlang-questions mailing list