Questions tagged [rebar]

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

235 questions
0
votes
0 answers

using NIFs with rebar

I'am a beginer in rebar and try to build an Erlang application that use NIF with rebar but i have some questions to ask you about: 1.In the .c files i include "erl_nif.h"how rebar tell the compilator about the location of this file 2.when our .c…
Bou6
  • 84
  • 2
  • 10
0
votes
1 answer

Mongooseim with rabbitMQ: mochijson2 potentially included by two different applications

I am trying to build mongooseim with rabbitMQ. Im getting the below error while doing make rel. ==> rel (generate) ERROR: generate failed while processing /home/mongoose/MongooseIM/rel: {'EXIT',{{badmatch,{error,"Module mochijson2 potentially…
Kamrul Khan
  • 3,260
  • 4
  • 32
  • 59
0
votes
1 answer

erlang rebar generate not working

I just want use rebar generate the release, but it not works for me : I am following the steps in : https://github.com/rebar/rebar/wiki/Release-handling ─$ rebar generate 1 ↵ ==> rel…
Chinaxing
  • 8,054
  • 4
  • 28
  • 36
0
votes
1 answer

Daemonizing a shell script that runs rebar hangs

I am trying to run rebar from within a daemonized UNIX process. This is an example of the line of code I am trying to run in a daemonized shell script: ~/rebar/rebar create template=mytemp nodeid=foo appid=foo Why would this process be hanging…
0
votes
1 answer

How to version an erlang project?

Is there any way to version/tag an erlang project? So far I've been using git tags to state my version releases, and a custom field in my application's config (eg {version, "0.0.1-alpha"}). But is there any better way to achieve this? I am using…
Evan P
  • 1,767
  • 1
  • 20
  • 37
0
votes
1 answer

Command 'generate' not found, compiling with rebar

I am following this blog: http://maplekeycompany.blogspot.se/2012/03/very-basic-cowboy-setup.html In short, I am trying to compile an application with rebar just as the person in the blog. Everything goes smoothly until I want to run the command:…
0
votes
1 answer

how to use rebar to create an erlang module with an eunit test?

My goal is quite simple; while I am learning Erlang, I would like to use rebar to create a basic module with an eunit test: I have tried the following: mkdir erlangscratch cd erlangscratch rebar create template=simplemod modid=erlangscratch Edit…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
0
votes
0 answers

Can't compile Cowboy

I'm using rebar for installing cowboy, but when I do (after rebar get-deps): > rebar compile I'm getting: - ==> cowboy (compile) src/cowboy_req.erl:1223: syntax error before: '{' src/cowboy_req.erl:226: function kvlist_to_map/2 undefined…
Pepeluis
  • 931
  • 2
  • 10
  • 18
0
votes
1 answer

Erlang App don't make project

There is a project in the language of Erlang, if I want to raise it with Rebar, Rebar that is get-deps + rebar compile I get an error like this: Uncaught error in rebar_core: {'EXIT', {badarg, …
0
votes
1 answer

rebar generate fails after compile successes

I am new to rebar and try to create a demo app to understand the flow. I have downloaded rebar & ran bootstrap. I created a project according to this manual: justenough-otp1 when I run the compile it compiles all the files and when it runs it. when…
antonpuz
  • 3,256
  • 4
  • 25
  • 48
0
votes
1 answer

Why is my Erlang application crashing?

I'm building a simple erlang application and very new to the enviornment, so I'm having trouble making sense of some errors I'm getting. I'm not sure what the root of my problem is here, so if there's anything relevant that I don't post, please let…
Selali Adobor
  • 2,060
  • 18
  • 30
0
votes
2 answers

Erlang (rebar?): fixing "potentially included by two different application" errors

So I need to build riak from git snapshot, (note: there's also a recent official snapshot sharing same problem). During build, following happens: Generating dev1 - node='dev1@127.0.0.1' yzsolrjmx=10013 yzsolr=10014 pbc=10017 http=10018…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
0
votes
1 answer

Mustache conflict at release build

I use wooga's fork of mustache.erl (https://github.com/wooga/mustache.erl) in my project. And when I try to create release I get an error because rebar uses this mustache.beam file instead of a file included in its source. What should I do to…
P_A
  • 1,804
  • 1
  • 19
  • 33
0
votes
1 answer

Application asn1 is used in release app-release name and cannot be excluded

This error occurs then I try to generate release: ERROR: generate failed while processing rel: {'EXIT',{{badmatch,{error,"Application asn1 is used in release \"app-release\" and cannot be excluded"}} I've got the following code in my…
Stepan Kuzmin
  • 1,031
  • 2
  • 11
  • 21
0
votes
1 answer

Why is rebar ignoring my ct_dir setting?

I've got an Erlang program arranged like this: deps/ apps/ apps/foo/ apps/foo/src/ ...etc. My top-level rebar.config contains a ct_dir option, as follows: {ct_dir, "suites"}. ...but ./rebar ct is still looking for suite files in the test folder.
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1 2 3
15
16