rebar

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

时光毁灭记忆、已成空白 提交于 2019-12-25 02:37:05
问题 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 handoff=10019 (cd rel && ../rebar generate target_dir=../dev/dev1 overlay_vars=vars/dev1_vars.config) ==> rel (generate) ERROR: generate failed while processing /tmp/riak/rel: {'EXIT',{{badmatch,{error,"Module mochijson2 potentially included by two different

What is the best way to include a header file (wx.hrl for example) in a release using rebar

China☆狼群 提交于 2019-12-24 14:23:56
问题 I am preparing a release for an application using rebar, and I wonder what is the usual way to include header file from standard library. In my case, it is the wx.hrl file, which is included with its full absolute path in my code. I guess that it is not the right way :o) 回答1: -include_lib("wx/include/wx.hrl"). This makes the preprocessor look for the latest version of the wx application in the code path. See this question for more details. 来源: https://stackoverflow.com/questions/18363244/what

What is the standard build tool in Erlang?

南笙酒味 提交于 2019-12-23 08:04:27
问题 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. Erlang Make http://www.erlang.org/doc/man/make.html Rebar Erlang.mk 回答1: Rebar is gradually being replaced by rebar3, which provides more deterministic builds and conflict resolution, packages (integrating with hex.pm), and so on. As one of the current rebar and rebar3 maintainers, I'd recommend rebar3. 回答2: Yes, we can use default make tool for

Erlang: Mnesia can not create schema while release with rebar

笑着哭i 提交于 2019-12-22 10:12:08
问题 When I call mnesia:create_schema on startup, the program crashes. If I run my program in ebin without releasing it, it works find. The error log as follows: =INFO REPORT==== 3-Jul-2013::09:44:06 === application: eddy exited: {bad_return, {{eddy_app,start,[normal,[]]}, {'EXIT', {{badmatch, {error, {'EXIT', {undef, [{mnesia_backup,open_write, ["/home/cometeor/eddy/rel/eddy/Mnesia.eddy@127.0.0.1/eddy@127.0.0.1137284464686415846847780"], []}, {mnesia_bup,do_apply,4, [{file,"mnesia_bup.erl"},{line

rebar unable to get dependency from github

断了今生、忘了曾经 提交于 2019-12-22 04:07:33
问题 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, "1.0.1", {git, "git://github.com/xslogic/eleveldb", "HEAD"}} ]}. When I do ./rebar compile I get: Dependency not available: thrift_erl-0.5.0 ({git, "git://github.com/xslogic/thrift_erl", "HEAD"}) Dependency not available: eleveldb-1.0.1 ({git, "git:/

rebar unable to get dependency from github

你说的曾经没有我的故事 提交于 2019-12-22 04:07:00
问题 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, "1.0.1", {git, "git://github.com/xslogic/eleveldb", "HEAD"}} ]}. When I do ./rebar compile I get: Dependency not available: thrift_erl-0.5.0 ({git, "git://github.com/xslogic/thrift_erl", "HEAD"}) Dependency not available: eleveldb-1.0.1 ({git, "git:/

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

*爱你&永不变心* 提交于 2019-12-19 06:05:39
问题 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', {undef, [{crypto,start,[]}, {rebar_core,run,1}, {rebar,main,1}, {escript,run,2}, {escript,start,1}, {init,start_it,1}, {init,start_em,1}]}} Any ideas what I'm doing wrong? 回答1: It looks like your Erlang was compiled without OpenSSL (the crypto module). crypto is required for

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

隐身守侯 提交于 2019-12-19 06:05:16
问题 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', {undef, [{crypto,start,[]}, {rebar_core,run,1}, {rebar,main,1}, {escript,run,2}, {escript,start,1}, {init,start_it,1}, {init,start_em,1}]}} Any ideas what I'm doing wrong? 回答1: It looks like your Erlang was compiled without OpenSSL (the crypto module). crypto is required for

Mochiweb: Include and compile other libraries

北城余情 提交于 2019-12-13 08:32:20
问题 My app uses Mochiweb. I have noticed that Mochiweb files reside in the myapp/deps/mochiweb directory and rebar compiles them when I run make in the myapp directory. I wanted to add ibrowse to write a few tests which make http requests to my app. So I cloned ibrowse from github to myapp/deps/ibrowse directory. But it seems that Erlang does not know where to get the .beam files for ibrowse and therefore all my tests that use the ibrowse module fail: myapp ebin %%compiled tests reside here,

How to build and use epgsql (erlang)

强颜欢笑 提交于 2019-12-13 02:56:47
问题 My erlang program directory structure is below: src pgtest.erl lib epgsql rebar I downloaded the epgsql library from https://github.com/epgsql/epgsql then tried to build it with make which gave me the below error: make: rebar: Command not found make: *** [compile] Error 127 So then I downloaded rebar from https://github.com/basho/rebar and build it. It was build successfully and gave me the message. Congratulations! You now have a self-contained script called "rebar" in your current working