[erlang-questions] Erlang compilation travails

Jesse Gumm gumm@REDACTED
Wed May 7 04:01:36 CEST 2014

Garrett's definitely right about the Ubuntu Erlang package quagmire
It's like someone heard that sharding is web scale so they decided to
shard Erlang itself.

Alternatively to compiling from source, the Erlang solutions packages
for Ubuntu are great:


On Tue, May 6, 2014 at 6:16 PM,  <lloyd@REDACTED> wrote:
> Well, the mystery is more insidious than we thought.
> I scoured my Debian Wheezy system clean of all vestiges of Erlang and reinstalled from source. Went like a charm. Can even add 1 + 1 in erl.
> But... Encountered the same problem as previously reported while trying to compile rebar.
> My next step is to scour Erlang clean once again and install R16B. If that doesn't work... Then I'll try everything again on my second Debian Wheezy box.
> And if that doesn't work I'll... Well let's not go there.
> Best,
> Lloyd
> -----Original Message-----
> From: "Garrett Smith" <g@REDACTED>
> Sent: Tuesday, May 6, 2014 6:24pm
> To: "Lloyd Prentice" <lloyd@REDACTED>
> Cc: "Erlang-Questions Questions" <erlang-questions@REDACTED>
> Subject: Re: [erlang-questions] Erlang compilation travails
> On Tue, May 6, 2014 at 5:03 PM,  <lloyd@REDACTED> wrote:
>> Hello,
>> I've been working my way up the Erlang learning curve for several years now quite cheerfully--- coding, installing, compiling, uninstalling, etc. But over the past several days my attempts to install n2o/samples have thrown crash dumps at the very last stages of compilation.
>> Thinking the problem may be an hardware, OS, or Erlang installation issue, I moved to another box running Debian Wheezy. But on this box installation of rebar fails in the ./bootstrap step.  Moved to second Debian box--- same issue.
>> The only common denominator is and upgrade of Ubuntu to 14.04 on box one and installation of Erlang under kerl on all three boxes.
>> Been at this all day trying to get to the root of the problem. Decided to go back to basics and COMPLETELY uninstall Erlang, rebar, and kerl from the first Debian box and reinstall Erlang and rebar from scratch.
>> But here's the mystery:
>> lloyd@REDACTED:~$ sudo apt-get --purge remove 'erlang*'
>> lloyd@REDACTED:~$ sudo dpkg-query -l 'erlang*'
>> dpkg-query: no packages found matching erlang*
>> lloyd@REDACTED:~$ sudo dpkg-query -l kerl
>> dpkg-query: no packages found matching kerl
>> lloyd@REDACTED:~$ sudo dpkg-query -l rebar
>> dpkg-query: no packages found matching rebar
>> lloyd@REDACTED:~$ cd .kerl
>> bash: cd: .kerl: No such file or directory
>> lloyd@REDACTED:~$ whereis erlang
>> erlang:
>> lloyd@REDACTED:~$ whereis rebar
>> rebar:
>> lloyd@REDACTED:~$ whereis kerl
>> kerl:
>> lloyd@REDACTED:~$ cd /usr/local/bin
>> lloyd@REDACTED:/usr/local/bin$ ls -l
>> total 0
>> lloyd@REDACTED:~$ cd ~
>> lloyd@REDACTED:~$ erl
>> Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
>> Eshell V6.0  (abort with ^G)
>> 1>
>> Yikes! After all that house-cleaning, erl still runs!
>> So my question: In which dark corner of my directory tree is erl still lurking?
>> Bonus question: Am I being a stupid dunderhead at somewhere along the line or my computers IPIO (Inate Perversion of Inanimate Objects) deamons?
>> Help!
> It may be a pointless sacrifice to the Gods of Superstition -- there
> may in fact not be problem -- but lore has it that the system packages
> for Erlang are notoriously fickle, especially where Erlang is split up
> into dozens and dozens of dependent packages as they are for Ubuntu.
> I personally would not spend a single minute troubleshooting a
> problematic Ubuntu Erlang installation. Rather, I'd uninstall it and
> compile Erlang from source and use that version via "sudo make
> install". It takes a while, but I bet it takes a lot less time than
> figuring out the Ubuntu problem.
> This article from the nice folks at Basho will help you compile on Ubuntu:
> http://docs.basho.com/riak/latest/ops/building/installing/erlang/
> But I could be wrong -- I'm just sayin' what I'd do here :)
> Garrett
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

More information about the erlang-questions mailing list