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
1
vote
1 answer

About integrate lager/rebar/common_test

I am using rebar to do UT in my Erlang project. Before introducing lager, everything is OK and I can run common_test like below: 1) Run all the test suites E:\>.\rebar ct 2) Run a specified test suite E:\>.\rebar ct suites=client_app But after…
user1040933
  • 277
  • 5
  • 14
1
vote
1 answer

Skip port compilation for certain OS?

I have a Rebar-based Erlang application that builds a port program. This port program is Linux-specific, so compilation fails on Mac OS. However, I'd like Rebar to just skip the port program when building on Mac OS. How can I do that? The current…
legoscia
  • 39,593
  • 22
  • 116
  • 167
1
vote
1 answer

Rebar dependencies via http proxy

I have a rebar.config that contains this deps entry: {cowboy, ".*", {git, "http://github.com/extend/cowboy.git", {branch, "master"}}} An when I run "rebar compile" I get this: Dependency not available: cowboy-.* ({git, …
danron
  • 189
  • 8
1
vote
1 answer

Why does not my re-compile procedure work from inside the console?

I have an Erlang application (for now just a few library modules) bundled up under Rebar. Directory structure looks like this: MyProject - apps -- myapp --- ebin --- src --- yada - rebar - rebar.conf MyProject$ ./rebar compile…
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
1
vote
1 answer

How can I see all available reltool overlay template variables?

I have a fairly standard OTP setup with rebar and reltool. I've setup reltool to use a vars.config to swap in overlay template variables with {overlay_vars, "files/vars.config"}. I've noticed that variables other than what I have listed in…
brentiumbrent
  • 415
  • 5
  • 12
1
vote
1 answer

Erlang gproc compilation failed

I seems to have some issues in order to compile gproc from uwiger. I have fetched the ZIP here after unzipping, I have done $./rebar get-deps ==> gproc (get-deps) Pulling edown from {git,"git://github.com/esl/edown.git","HEAD"} Cloning into…
TheSquad
  • 7,385
  • 8
  • 40
  • 79
0
votes
2 answers

How to setup private deps from github in rebar.config?

Just wondering if it is possible to setup private deps in rebar.config? Especially if this deps from github. Any ideas?
Worker
  • 2,411
  • 6
  • 29
  • 55
0
votes
1 answer

Erlang: how to get multiple releases running at the same time?

Is it possible to have multiple releases created by rebar to run at the same time? I have one server where I'd like to run different releases simultaneously to test them out. The problem is when I do: rel/myapp_a/bin/myapp_a stop It manages to stop…
randombits
  • 47,058
  • 76
  • 251
  • 433
0
votes
2 answers

Rebar include ext libs error

rebar config: {deps, [ {ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git", "master"}} ]}. When make: Uncaught error in rebar_core: {'EXIT', {badarg, …
Bruce Dou
  • 4,673
  • 10
  • 37
  • 56
0
votes
1 answer

How do I tell rebar3 to use werl on Windows?

This may apply to any rebar commands but it is mostly about rebar shell. By default rebar uses erl and this might be clunky on Windows shells.
aronisstav
  • 7,755
  • 5
  • 23
  • 48
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

problem using rebar to compile c source

I tried to use rebar to compile an iconv port extracted from ejabberd (http://www.ejabberd.im/), it successfully generated an "iconv_erl.so". but when I use erl_ddll:load_driver("priv/", iconv_erl) to load it, it returns {error,{open_error,-10}}. Is…
Chi Zhang
  • 771
  • 2
  • 8
  • 22
0
votes
0 answers

CouchDB 2.3.1 make install fails on RHEL7.6

I'm currently trying to install couchDB from source on a RedHat 7.6 machine, and following CouchDB docs install directions: http://docs.couchdb.org/en/stable/install/unix.html#installation-from-source I installed the dependencies: sudo yum install…
Ninja1
  • 1
  • 1
0
votes
1 answer

Rebar3 release ERTS files from host OS?

I made a release package with rebar3 command: rebar3 as prod release tar The executable files contained in myapp/erts-10.0.1/bin are only .exe ones. The files in myapp/bin to start the application are .cmd files. The operating system where I'm…
orbitkorbi
  • 45
  • 5
0
votes
1 answer

Erlang: advantages to separate relx.config?

I always had a rebar.config and a relx.config. However, I read this page by the author of Learn you some Erlang: http://howistart.org/posts/erlang/1/, and he has the relx section in his rebar.config and no relx.config. Is there a pro/con to this?…
Tommy
  • 12,588
  • 14
  • 59
  • 110