Create an install-able RPM from rebar3 release

Ben Adams <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CH0PR19MB5297C1883B624EDE071F001DAC759@CH0PR19MB5297.namprd19.prod.outlook.com>
Hello everyone,

I'm working on creating an installable version of my app in RPM and DEB format.

When starting the app after rpm install:

===============================
/usr/app/rel/app1/bin/app1 foreground
Exact ERTS version (12.1.5) match not found, instead using 12.1.5. The release may fail to run.
init terminating in do_boot ({load_failed,[logger_simple_h,logger_config,logger_backend,logger_server,logger_filters,logger,kernel,heart,file_io_server,file_server,file,error_logger,code_server,code,a

Crash dump is being written to: erl_crash.dump...done

===============================

This is my build script:

===============================
# Build Code
./rebar3 release

# Start RPM BUILD PROCESS
mkdir -p rel/usr/app1

rsync -avz _build/default/ rel/usr/app1/
fpm -s dir \
    -t rpm \
    --depends erlang \
    -n app1 \
    -C "$(pwd)/rel" \
    -v 0.0.1 \
    --iteration 1
===============================
When installing the app all files look to be there, build and target are using erlang 24
Both servers have the same versions installed:

===============================
[root@development ~]# rpm -aq erlang-erts erlang
erlang-erts-24.1.7-1.fc35.x86_64
erlang-24.1.7-1.fc35.x86_64

===============================

Not sure what the process is for fixing the problem.

Happy Holidays!!

Thank you,

Ben Adams
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.