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
1
vote
0 answers

Trying to install rebar3 in Android (via termux), multiple errors received

I just downloaded the rebar3 package using wget from termux (android app), then I executed chmod +x rebar3. Then, I run nano rebar3 and I changed the first line from #!/usr/bin/env escript to #!/data/data/com.termux/files/usr/bin/env escript But,…
Santiago Aranguri
  • 151
  • 1
  • 2
  • 8
1
vote
2 answers

Trouble specifying rebar dependency when trying to profile couchdb using eflame

I am trying to use eflame to profile CouchDB code to investigate some performance issues in my application. I tried adding the eflame dependency in rebar.config.script (https://github.com/apache/couchdb/blob/master/rebar.config.script) However I get…
Rohit
  • 583
  • 6
  • 9
1
vote
2 answers

Error during starting the application with cowboy example ('noproc', ranch_listener_sup)

I'm trying run this cowboy example using rebar3: cowboy version 2.0.0-pre.5 What I do is: rebar3 new app hello_world copy the example src into my src updating rebar.config {cowboy,".*", {git, "https://github.com/ninenines/cowboy", {branch,…
Marat
  • 327
  • 1
  • 2
  • 10
1
vote
1 answer

Upgrading a riak_core application with relup

I am trying to upgrade a riak_core erlang application while it is running. Simple upgrades are working. I use rebar3 and relflow to upgrade the application succesfully. However, if I change the internals of a vnode and use relflow and rebar3 relup…
jvdveuten
  • 621
  • 4
  • 23
1
vote
1 answer

How to use OS environment variables in rebar3

I currently have a rebar3 based erlang application, it consists of an erlang backend and a javascript frontend. To combine the frontend and backend build systems I use a makefile. My rebar.config looks like this: rebar.config: ... {relx, [{release,…
Mathias Vonende
  • 1,400
  • 1
  • 18
  • 28
1
vote
1 answer

Start GProc as a dependency

I am trying to start gproc as a dependency inside the app, but it fails with: {error,{not_started,gproc}} This is my app.src file which is used by Rebar3 when compiling: {application, myapp, [{description, "MyApp"}, {vsn, "0.1.0"}, …
jvdveuten
  • 621
  • 4
  • 23
0
votes
1 answer

Rebar3 failed to fetch dependencies in docker container

Rebar3 dependencies installing locally but when I'm trying to run it inside the container raising error for all dependencies e.g: #0 1.936 ===> Failed to fetch and copy dep: {git,"https://github.com/mochi/mochiweb.git", #0 1.936 …
Moeen
  • 414
  • 2
  • 8
0
votes
1 answer

How to connect a windows erlang project to ubuntu's ejabberd?

I have configured the YML file of Ejabberd 23.04. I am able to see the Ejabberd dashboard in Firefox when I enter the username and password (screenshot attached below). Using the IP address and Port number of Ubuntu, I can see the Ejabberd…
0
votes
1 answer

Install specific rebar3 version on mac

I want to use rebar3 with erlang 24. The problem is, that if I install the newest rebar3 version I get the necessity for erlang 25. So I installed erlang 24 first but it did not change anything. I tried to install older rebar3 version with whom…
0
votes
1 answer

How do I get the cowboy ssl hello world example to run?

I'm new to cowboy and am attempting to get a version of the ssl_hello_world app to run. I've replaced the files in the priv/ssl directory with soft links to my certificate files. I've copied the toppage_h.erl file into my src directory generated by…
Lee
  • 29
  • 3
0
votes
1 answer

rebar3 can't load compiled files

I have used reabr3 to create an application to practice the RabbitMQ but the rebar3 can not load the additional file I created in the src folder to erlang shell. I used rebar3 new app rabbit. I had rabbit_app.erl rabbit_sup.erl and rabbit.app.src…
tandathuynh148
  • 190
  • 5
  • 15
0
votes
1 answer

Rebar3 is unable to download dependency on Windows 10

I am just starting with otp and rebar3. Following are the versions installed: Erlang/OTP 23 rebar 3.15.1 on Erlang/OTP 23 Erts 11.2 However, when I am trying to add the dependency cowboy from the Basic Usage page of rebar3, the compilation fails…
0
votes
1 answer

Error while building erlang project with leveldb

I am getting the error with leveldb while running the following. ./rebar3 shell
0
votes
1 answer

Rebar3: How do I refer to source artifacts of a library from erlang?

I have have library with an artifact: src/lib/prelude.kind that I'd like to access. However, when I call the library code from a different project (which has the library set up as a dependency), the file src/lib/prelude.kind doesn't exist. I can…
arnfred
  • 313
  • 3
  • 10
0
votes
1 answer

rebar3, supervisor, behaviour(application)

I have the following straightforward UDP Server: ONLY accept Binary <<0:32>>, otherwise it crash -module(server). -export([listen/1]). listen(Port) -> spawn(fun()->run_it(Port) end). run_it(Port) -> {ok, Skt} = gen_udp:open(Port,…
Lova Andrian
  • 123
  • 5