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
5
votes
1 answer

How to add a dependency from my local file system with Rebar3?

I have two Erlang applications: single app mylogger and umbrella app myapp. I want to include a current version of mylogger as a dependency to myapp. Rebar3 only suggests to add deps from git like {mylogger, {git,…
Nick Saw
  • 457
  • 4
  • 15
5
votes
1 answer

Where to put data for an Erlang release to run

I used rebar to create a release for my Erlang application. My application need to read data from a file. Normally, it is located in the directory where I start erl. But when it comes to release, I don't know where can I put the data so as the…
5
votes
1 answer

Stuck at {"init terminating in do_boot",{undef,[{rmbrDb,start,[],[]},

My project has a number of dependencies in .../deps, and two contained Erlang apps in .../apps. rebar.config: {sub_dirs, ["apps/rmbrDb","apps/rmbrRest","rel"]}. {lib_dirs, ["deps","apps"]}. {deps, [ {webmachine, "1.10.*", {git,…
Pum Walters
  • 339
  • 1
  • 3
  • 11
5
votes
1 answer

Rebar: compiling only project files (without dependencies)

I'm new to Erlang and Rebar and just created my first rebar project. My development cycle looks like that: Edit project files Invoke rebar compile to recompile project Run my start.bat file to run and test my application Go to step 1 :-) The…
Piotr Sobczyk
  • 6,443
  • 7
  • 47
  • 70
5
votes
3 answers

"Uncaught error in rebar_core" when trying to build rebar

I have to add and remove nodes on riak. For this, I am trying to build rebar, following the steps in the following link: https://github.com/basho/rebar I am getting the following the about erlang library missing, when I run the bootstrap…
Autumn
  • 339
  • 5
  • 19
5
votes
3 answers

rebar: Missing application directory

I'm testing rebar on Windows 8 64Bis Erlang 64bits R15B02 I've compiled rebar from github code and created a basic app $ mkdir testapp; cd testapp $ mkdir rel $ rebar create-app appid=testapp $ echo "{sub_dirs, ["rel"]}." > rebar.config $ cd rel $…
rkmax
  • 17,633
  • 23
  • 91
  • 176
5
votes
2 answers

Always got undef error of lager_transform when using lager log framework

I want to use lager as my log utility and I have orgnazied my proj as below: proj\ | |--lager\ | |--src\ | |--ebin\ | |--... | |--logserver\ | |--src\ | |--ebin\ | |--rebar.config | |--... | …
user1040933
  • 277
  • 5
  • 14
4
votes
1 answer

Where should you put application properties in a rebar erlang application?

A newbie question: I wrote my first rebar based erlang application. I want to configure some basic properites like server host etc. Where is the best place to put them and how should I load them into the app?
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
4
votes
2 answers

Rebar get-deps does not play well with msysgit 1.7.4 on Windows

Has anyone been successful with using rebar get-deps on Windows? Mine fails and complains about version numbers. If you have been successful, which git did you use?
Jieren
  • 1,952
  • 4
  • 18
  • 26
4
votes
1 answer

Erlang releases with Rebar: What am I missing?

Thanks to much help here, I'm well on my way toward building my first Erlang release. No real code yet, but I want to understand how it's done. I've consulted and followed several web tutorials as well Martin et. al., but still seem to be missing…
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
4
votes
0 answers

How to specify another static c library as a dependency/source in rebar?

I'm trying to build an application that uses an erlang library. (https://github.com/leo-project/erocksdb). This library itself is a wrapper over a C++ static library (rocksdb, compiled as librocksdb.a). rocksdb is made a git submodule of erocksdb,…
saketrp
  • 2,323
  • 3
  • 16
  • 18
4
votes
1 answer

Using profiling tools with rebar

I'm using rebar3 to build my application. I need to track down some performance problems and want to use fprof but it doesnt seem to be included in the release made by rebar. How can I get fprof (or eprof) included in the rebar release?
Daniel
  • 43
  • 2
4
votes
2 answers

How do I export all functions for common test only?

I have been trying to export all the functions in an erlang module for use in a common test SUITE, not an eunit module. So far it has not worked for me. I am using rebar to run the SUITE, and I came across this question…
liam_g
  • 314
  • 1
  • 5
  • 15
4
votes
2 answers

Configuring Lager - I get this error: undefined parse transform 'lager_transform'

I'm testing this https://github.com/saleyn/erws_example on R16B03 (both on windows & Ubuntu) ==> erws_example (compile) src/erws_handler.erl:none: undefined parse transform 'lager_transform' ERROR: compile failed while processing…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
4
votes
2 answers

How to get rebar to run 'make' for a dependency?

One of my dependencies doesn't use rebar -- it uses a Makefile. How do I get rebar to run this Makefile, rather than attempting to compile the source itself? Note that I'd like to continue using rebar for everything else.
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1 2
3
15 16