Closed yuklia closed 4 years ago
The header that cannot be found, eunit/include/eunit.hrl
, comes from EUnit, which is a separate package on Debian and Debian derivatives.
Ubuntu 18.04 provides Erlang 20.2 in its standard package repositories. RabbitMQ 3.8.0 requires Erlang 21.3 or 22.x. I doubt you would be able to build all of the dependencies on 20.2.
If I use the same package list plus a few server build dependencies, in particular Elixir, the plugin builds just fine on Ubuntu 20.04 (I added erlang-eunit
to the list just in case). Actually, if Elixir is installed from the Erlang Solutions apt repo, so will be Erlang (23), which is perfectly fine.
This plugin hasn't changed in a long time. You can use a published release instead of building it from source. I don't see any reason to build it from source unless you intend to use a fork.
Compared to the default Make target, make dist
also required installing rsync.
apt-get install erlang-base erlang-src erlang-dev erlang-eunit make gnupg2 rsync wget
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && dpkg -i erlang-solutions_2.0_all.deb
apt-get update -y
apt-get install elixir
is a close enough approximation to what I have in this image. Again, building this plugin from source is not necessary unless the plugin has been modified.
@michaelklishin in my case it is, unfortunately, necessary, because I need 3.8 version for rabbitmq-delayed-message-exchange. Ready to use binary exists only for 3.7 in the community https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/
my target goal is to have rabbitmq-prometheus plugin but i need 3.8 and also i need
@yuklia have you looked at GitHub releases? https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/tag/v3.8.0 is 3.8-compatible. This release was produced by the RabbitMQ core team.
yeah, really that is what i need - rabbitmq_delayed_message_exchange-3.8.0.ez i tried to unpack https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/archive/v3.8.0.zip instead ((
i am sorry for disturb, thanks a lot for help!
Apparently the README was recommending the Community plugins repo on Bintray which is not really maintained any more. I have updated it to link to GH releases.
I am trying to build rabbitmq-delayed-message-exchange on ubuntu:18.04
here is part of Dockerfile:
as you can see i installed additional packages: erlang-nox erlang-dev erlang-src but with no luck: