Open Ziggizag opened 11 months ago
I don't, because you haven't provided enough information.
make
?OK - so now it seems it was because I had Erlang but no "dev" version. I have installed erlang-dev and now:
Error: No Makefile to build dependency .../rabbitmq-email/deps/thoas.
I use Ubuntu 22.04 LTS - I am not a compilation expert, sorry. Everything possible is updated to most recent version.
And indeed, the output is a giant wall of text...
But it starts with:
Please note how I edited your previous comment to put the text behind a dropdown.
cd path/to/rabbitmq-email
git clean -xffd > /tmp/output.txt
make 2>&1 | tee -a /tmp/output.txt
/tmp/output.txt
to your response.Thanks. I am getting a different error than you. I will investigate.
Here is the output from my Ubuntu 22 env: lrb-output.txt
Just FYI, I am working on higher priority items like this but will fix this issue as time allows.
Hello, please see if this works in your environment:
git clone https://github.com/rabbitmq/rabbitmq-server.git
cd rabbitmq-server
make FULL=1
cd deps
git clone https://github.com/gotthardp/rabbitmq-email.git
cd rabbitmq-email
make
Thank you @lukebakken, with your hint it work in my environment
I leave here a snippet of code for a multistage docker build where before we build the plugin and then copy the plugin inside the rabbitmq image.
This for rabbitmq 3.11
ARG RABBITMQ_VERSION=3.11.26
FROM elixir:1.14.5-otp-25 as builder
ARG RABBITMQ_VERSION
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y rsync
RUN cd $HOME; git clone --depth 1 --branch v${RABBITMQ_VERSION} https://github.com/rabbitmq/rabbitmq-server.git
RUN cd $HOME/rabbitmq-server && make FULL=1
RUN cd $HOME/rabbitmq-server/deps && git clone --depth 1 --branch v1.1.1 https://github.com/gotthardp/rabbitmq-email.git
RUN cd $HOME/rabbitmq-server/deps/rabbitmq-email && make RABBITMQ_VERSION=v${RABBITMQ_VERSION} dist
FROM docker.io/bitnami/rabbitmq:${RABBITMQ_VERSION}
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/eiconv-1.0.0 /opt/bitnami/rabbitmq/plugins/eiconv-1.0.0
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/gen_smtp-1.2.0 /opt/bitnami/rabbitmq/plugins/gen_smtp-1.2.0
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/rabbitmq_email-1.1.1 /opt/bitnami/rabbitmq/plugins/rabbitmq_email-1.1.1
This for rabbitmq 3.12 with new erlang/otp version
ARG RABBITMQ_VERSION=3.12.11
FROM elixir:1.14.5 as builder
ARG RABBITMQ_VERSION
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y rsync
RUN cd $HOME; git clone --depth 1 --branch v${RABBITMQ_VERSION} https://github.com/rabbitmq/rabbitmq-server.git
RUN cd $HOME/rabbitmq-server && make FULL=1
RUN cd $HOME/rabbitmq-server/deps && git clone --depth 1 --branch v1.1.1 https://github.com/gotthardp/rabbitmq-email.git
RUN cd $HOME/rabbitmq-server/deps/rabbitmq-email && make RABBITMQ_VERSION=v${RABBITMQ_VERSION} dist
FROM docker.io/bitnami/rabbitmq:${RABBITMQ_VERSION}
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/eiconv-1.0.0 /opt/bitnami/rabbitmq/plugins/eiconv-1.0.0
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/gen_smtp-1.2.0 /opt/bitnami/rabbitmq/plugins/gen_smtp-1.2.0
COPY --from=builder /root/rabbitmq-server/deps/rabbitmq-email/plugins/rabbitmq_email-1.1.1 /opt/bitnami/rabbitmq/plugins/rabbitmq_email-1.1.1
Hi,
"make" command results in the following error:
Writing file src/smtp_rfc5322_scan.erl, /usr/lib/erlang/lib/parsetools-2.5/include/leexinc.hrl: no such file or directory
Any idea?