4.1.0: CLI tools fail to build with "no such file or directory", "elixir.app" #13966
-
Describe the bugI am trying to build rabbitmq-server 4.1.0 from source on a Linux machine. I'm using Erlang 27.3.4 and I've tried using Elixir 1.18.4 and 1.17.3. The broker itself builds and works fine. However, the escript programs under /usr/lib/erlang/lib/rabbitmq-server-4.1.0/escript fail with "escript: exception error: undefined function 'Elixir.RabbitMQCtl':main/1". When I unzip the archives, I find that they contain basically the entirety of the
Any help would be greatly appreciated! Reproduction steps
Expected behaviorescripts have content similar to what is found in rabbitmq-server-generic-unix-4.1.0.tar.xz distribution Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hello, thanks for using RabbitMQ. Please note that when a GitHub project uses both Issues and Discussions, it's always best to use Discussions first unless you are 100% certain you have found a reproducible bug and have provided sufficient information to reproduce. In your case, your reproduction steps are not sufficient. I "build and install" both Erlang and Elixir all of the time and have never had this issue. You must provide exact reproduction steps if you'd like any free assistance:
For what it's worth, I use |
Beta Was this translation helpful? Give feedback.
-
@bneumeier our release workflows are public and so are the build images they use. They produce the releases you find on https://github.com/rabbitmq/rabbitmq-server/releases. In 4.1.0, Elixir code is compiled using erlang.mk. erlang.mk assumes a certain directory structure of the local Elixir installation #13580, and needs p7zip. We won't encourage or help with custom builds from source. If you choose to build from source, it's your responsibility entirely, and building from source while "not being proficient enough with Erlang to diagnose" is a curious choice. |
Beta Was this translation helpful? Give feedback.
-
When it was announced that (from 4.1) rabbitmq builds elixir with the native support from erlang.mk there were two things mentioned that changed:
We did see problems with the first point when elixir was installed with asdf. Could it be something similar with symlinks and relative paths in your case? |
Beta Was this translation helpful? Give feedback.
@bneumeier our release workflows are public and so are the build images they use. They produce the releases you find on https://github.com/rabbitmq/rabbitmq-server/releases.
In 4.1.0, Elixir code is compiled using erlang.mk. erlang.mk assumes a certain directory structure of the local Elixir installation #13580, and needs p7zip.
We won't encourage or help with custom builds from source. If you choose to build from source, it's your responsibility entirely, and building from source while "not being proficient enough with Erlang to diagnose" is a curious choice.