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
27
votes
2 answers

Package management on Erlang and Elixir

I searched for package management on Erlang and Elixir and got some pointers to rebar rebar3 mix hex and relx etc. Can you help clarify the relationships among them? Where to use what? Is package just synonym to Erlang's application made up of…
sof
  • 9,113
  • 16
  • 57
  • 83
20
votes
3 answers

Is there a way to tell rebar not to run eunit tests for the dependencies?

When running: ./rebar eunit the tests are run also for the external dependencies. Is there a way to change this behaviour? Maybe through the rebar.config file?
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
19
votes
2 answers

Easy way of loading project's Rebar dependencies in Erlang shell

I've got a project that uses Rebar as build tool. When developing, I would like all my app dependencies that are specified in Rebar.config be compiled & loaded in the shell as easy as possible. I'm using the Erlang shell in Emacs. What's a quick way…
Ward Bekker
  • 6,316
  • 9
  • 38
  • 61
17
votes
4 answers

How to run erlang (rebar build) application

I am new to Erlang world and currently can't figure out how to start my dummy erlang application. Probably, I am just missing something... So, I created an application with rebar (rebar create-app appid=dummys). Currently I…
kikulikov
  • 2,512
  • 4
  • 29
  • 45
16
votes
1 answer

What is the difference between rebar and rebar3? or erlang.mk

I am very new to Erlang programming language. Is there a standard build tool in Erlang? I have googled out these, not sure which one I should use. I don't know that what kind of occasion is it used for?
Leviathan
  • 335
  • 2
  • 5
  • 10
16
votes
4 answers

How to install, compile, and utilize Rebar in Windows 8

Is this possible? All tutorials I've come across on how to build and use Rebar involve Unix commands, and I'm a most unfortunate Windows user. I'd really like to avoid installing Cygwin if I can help it. For example, to build Rebar you get: $ git…
FredTheWebGuy
  • 2,546
  • 3
  • 27
  • 34
13
votes
2 answers

Idiomatic way to ship command line tools written in Erlang

The problem Most of the articles and books about Erlang I could find focus on creating long running server-like applications, leaving the process of command line tools creation not covered. I have a multi-app rebar3 project consisting of 3…
Ihor Kaharlichenko
  • 5,944
  • 1
  • 26
  • 32
12
votes
2 answers

start erlang application from command line

I have an erlang application, compiled with rebar. Normally I start it with like this: application:start(myapp). from inside the erl shell. Could anyone tell me how to start it like a normal command line program?
LtWorf
  • 7,286
  • 6
  • 31
  • 45
11
votes
1 answer

Command 'generate' not understood or not applicable

I am trying to run rebar generate to generate a release for an erlang rebar project and getting the following error. Any ideas what I am doing wrong? ./rebar generate Command 'generate' not understood or not applicable I am on OSX with erlang…
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
11
votes
4 answers

Cannot start sample erlang release generated with rebar

I'm a beginner with rebar and erlang generally. I was trying to create an erlang release with rebar according to this tutorial: http://www.metabrew.com/article/erlang-rebar-tutorial-generating-releases-upgrades and got stuck at the point of running…
ghik
  • 10,706
  • 1
  • 37
  • 50
11
votes
2 answers

erlang rebar escriptize & nifs

I can use nif's if I write the escript myself, however when I use rebar escriptize the nif functions cannot be found. I think it is because *.so objects are not getting packed like beam files. Here is an simple example; rebar.config: {deps, [ …
cashmere
  • 2,811
  • 1
  • 23
  • 32
10
votes
1 answer

Mixed Erlang/Elixir projects - can I use mix or rebar?

For Erlang code, I use rebar. For Elixir code, I use the built-in mix tool. Now I want to have a mixed Erlang/Elixir project. Can I use rebar to compile Elixir code? Or can I use mix to compile Erlang code? If so, how?
Stratus3D
  • 4,648
  • 4
  • 35
  • 67
10
votes
4 answers

Erlang detach shell from node / Quit shell without killing node

I feel like I'm missing something stupid obvious, but I've looked all over and can't find the answer to my question. Suppose I have an application release that I've built with rebar and I start it a la rel/my_app/bin/my_app start I let it happily…
dantswain
  • 5,427
  • 1
  • 29
  • 37
10
votes
3 answers

rebar unable to get dependency from github

I am unable to get any dependency from github using rebar. rebar.config file: {sub_dirs, ["rel"]}. {deps_dir, ["deps"]}. {erl_opts, [debug_info]}. {deps, [ {thrift_erl, "0.5.0", {git, "git://github.com/xslogic/thrift_erl", "HEAD"}}, {eleveldb,…
mbsheikh
  • 2,501
  • 5
  • 23
  • 33
9
votes
5 answers

rebar: error exit on create-app: {crypto,start,[]}

I followed the instructions here, to the letter. I then ran the instruction to create an application project structure, and got the following error. $ ./rebar create-app appid=myapp Uncaught error in rebar_core: {'EXIT', …
Andrew Matthews
  • 3,006
  • 2
  • 29
  • 42
1
2 3
15 16