SZJX

SZJX

Unable to build Elixir with Erlang OTP 21: 'cannot get bootfile','no_dot_erlang.boot'

I’ve never built Elixir on my own and this is the first time I’ve tried to do so. However, make clean test fails with:

{"init terminating in do_boot",{'cannot get bootfile','no_dot_erlang.boot'}}
init terminating in do_boot ({cannot get bootfile,no_dot_erlang.boot})

Crash dump is being written to: erl_crash.dump...done
make: *** [lib/elixir/src/elixir_parser.erl] Fehler 1

I’m not sure what’s happening. Is it the case that Elixir was unable to find the path to the erl executable for some reason?

I was able to run erl and test it with a helloworld Erlang file just fine.

System: Kernel: 3.10.0-693.21.1.el7.x86_64 x86_64 bits: 64 gcc: 4.8.5
           Console: tty 0 Distro: Scientific Linux release 7.5 (Nitrogen)

Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

The Elixir repo is the newest master branch from Git.

First 7 of 7 Posts Switch mode

rlb3

rlb3

SZJX

SZJX OP

Actually they’re not exactly the same issue, as Jose pointed out on the Github issue I opened. Elixir itself should still compile against OTP21.

I eventually found the problem: I installed the erlang package following an online guide, while in fact I should have installed esl-erlang package, which includes the complete package.

From the Erlang FAQ

The “esl-erlang” package is a file containg the complete installation: it includes the Erlang/OTP platform and all of its applications. The “erlang” package is a frontend to a number of smaller packages. Currently we support both “erlang” and “esl-erlang”.

I didn’t get the difference between those two packages at first sight and chose the wrong option. Apparently to successfully run Elixir you need the latter.

Thanks for pointing to the issue. That also helped to clarify the matter and point me to the right direction.

NobbZ

NobbZ

Instead of installing “everything erlang related” you should have tried to figure out which of the other erlang-* packages are necessary to actually start the build, such that it can get properly documented.

SZJX

SZJX OP

Right. However the documentation about it is very scarce. Even when searching for the difference between these two packages there are only a lot of confusing online posts where nobody is sure. For example esl-erlang or erlang? · Issue #22 · sous-chefs/erlang · GitHub I think the official installation guide on Elixir also would result in installing the full package. Could you point to the relevant information about which packages to install?

NobbZ

NobbZ

Sadly I can’t.

I’m not using one of those systems anymore where thats relevant.

For personal use, I use archlinux, where most thinks just work (while still beeing DIY when it comes to configuration).

For deployment I prefer to build systems on top of alpine when I am able to choose, where also most of the time things just work (but get really fiddly if not). Sometimes customers and clients want me to use provided service images, this is when I often just hand over precompiled binaries (no erlang/elixir so far, but go only) and let them figure out how to integrate them the best way.

SZJX

SZJX OP

Yeah I also use Arch personally and it’s awesome. In this project I was handed CentOS/Scientific Linux so I have no choice.

Your suggestion is sound but apparently nobody has actually spent time figuring it out. Installing the full package seems to be the default by now. Maybe it can be something that the Elixir team improves upon (in the documentation etc.) if they want. But I doubt it’ll be a priority.

NobbZ

NobbZ

Well, ESL is actually third party and neither under the control of the erlang, nor of the elixir team. In the end they can change anything in any direction without telling anyone…

And if one wants to build from source, one has of course to make sure on his own, that he fullfills all of the development/build dependencies, which can differ greatly from the runtime dependencies.

I’d still hope, that the regular elixir package provided by ESL just works, so you should just use that. If it does not work, you should contact ESL and report that as a bug in their packages/repository, as it makes it unusable for elixir users.

— All posts loaded —

Where Next?

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement