Questions tagged [rebar3]

Erlang build tool that makes it easy to compile and test Erlang applications and releases.

Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner.

Rebar3 is not Rebar - as the two are completely different.

Rebar3 is also a self-contained Erlang script. It is easy to distribute or embed directly in a project. Tasks or behaviours can be modified or expanded with a plugin system flexible enough that even other languages on the Erlang VM will use it as a build tool.

http://www.rebar3.org/

107 questions
2
votes
0 answers

How to build a release archive with rebar3 together with lager

I am trying to build an OTP release with rebar3. Under the project there are multiple applications. And all those applications will use lager as a logging framework. So I tried the rebar.config like this {erl_opts, [debug_info, {i,…
jnovice
  • 21
  • 1
2
votes
1 answer

A working example of a project using Rebar3

I am trying to integrate rebar3 into my project, but for some reason, I can't make it find and resolve dependencies when running the app. Dependencies are downloaded and put in the respective folders in the project and the app compiles without…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
1
vote
1 answer

Authenticity error when trying to install Rebar

I'm using Elixir 1.8.1 and am now seeing this error under our Gitlab CI: * creating /root/.mix/archives/hex-2.0.6 * creating /root/.mix/rebar ** (Mix) Could not install Rebar because Mix could not verify authenticity of metadata file at…
kepler
  • 1,712
  • 17
  • 18
1
vote
0 answers

Rebar3 Docker "Rebar dependency inets could not be loaded for reason no such file"

I was trying to setup Dockerfile for my application but this application also creates some Erlang scripts at runtime with Rebar3. The issue is when i execute rebar3 new escript at runtime, it gives me following error: <<"===> Rebar…
MePP
  • 11
  • 2
1
vote
1 answer

Failed to start Ranch listener https_listener in ranch_ssl:listen, for reason eacces (permission denied) on Linux

I'm trying to build a simple Erlang server with Cowboy on a Linux machine. However, when I run the server, I get the following error: =INFO REPORT==== === application: test_app exited: {bad_return, …
1
vote
1 answer

Get hidden user input in erlang app running thru rebar3 shell

I need to start an SSH connection in my app which requires a username and password. The username is constant so can be hardcoded, but I want the password to be hidden (similar to read -s pass in bash). I tried doing this with io:read, io:fread,…
halfway258
  • 115
  • 13
1
vote
1 answer

make on ChicagoBoss failing with escript: exception error: undefined function rebar:main/1

I am trying to install ChicagoBoss based on the instructions here. Now, Make is failing with exception - =ERROR REPORT==== 14-Dec-2022::11:15:33.605319 === beam/beam_load.c(148): Error loading module rebar: please re-compile this module with an…
close2zero
  • 85
  • 8
1
vote
1 answer

upgrade of erlang applications based on relup by rebar3

I am studying the upgrade of erlang applications based on this article. But there is some problem when I execute rebar3 relup: Option --relname is missing hello@centos7-dev:~/relapp1 ((1.0.12))$ rebar3 relup ===> Verifying dependencies... ===>…
孙海城
  • 389
  • 1
  • 7
1
vote
1 answer

Erlang rebar3 builds

I am building a server based on 'cowboy', using 'jiffy' for json processing. The problem I am running into is that after starting the shell by executing the binary generated by rebar3, only 'cowboy' is functioning as expected, but I have no access…
user1553131
  • 83
  • 1
  • 1
  • 5
1
vote
1 answer

How to host a gen_server as a standalone node using rebar3 release?

I have a rebar3 project which has some gen_server implementation. I would like to write an application in such a way, that the release would host that gen_server as an Erlang node in daemon mode. Example There is some gen server: %% file…
radrow
  • 6,419
  • 4
  • 26
  • 53
1
vote
1 answer

Erlang: How to include wx libraries in rebar3 release

How do I include the wx libraries, that are shipped with erlang (/lib/erlang/lib/wx-2.1.2), in my rebar3 release? I do not understand where to copy those files and how to declare them in my rebar.config file. I use this code in my…
1
vote
0 answers

What's the meaning of “stdlib: Object code (filename) out of date erlang”?

erlang 24.3.3, rebar3 are used. rebar3 as default keyboard show the following message bash-3.2$ rebar3 as default tar ===> Verifying dependencies... ===> Analyzing applications... ===> Compiling keyboard ===> Assembling release…
Chen Yu
  • 3,955
  • 1
  • 24
  • 51
1
vote
0 answers

How to install ss7MAPer on ubuntu 20.04 focal fossa

I have installed ss7MAPer on my ubuntu 20.04 ; I have followed all the steps to compile the program but when I reached the final step which is running this command: ./rebar3 shell it fail to run! The output is : Failed to read osmoss7_link_m3ua…
jaff
  • 11
  • 2
1
vote
1 answer

Is it possible to run bootstrap for rebar3 offline?

Does it possible to run bootstrap command offline for rebar3. Where do I keep the dependency packages(cf, erlware_commons,getopt, providers). I get below error when I run ./bootstrap offline. | Error: Unable to fetch package providers 1.8.1: failed…
phanikumar ch
  • 85
  • 1
  • 1
  • 13
1
vote
1 answer

Crash on rebar3_auto

When I use rebar3_auto, it works only at the compiling, when it is running, I change code in a file to make it load, but I get the error as the following: {undef,[{rebar3_auto,auto, …
Yarin Nim
  • 73
  • 3