【转载】stackoverflow 上关于 rebar 的讨论

简介:

  rebar-include-ext-libs-error    

Your config file worked for me so I'd suggest doing the following:  
  • make sure you have git installed
  • put the most recent build of rebar in your project directory
  • use a Makefile like the one I described here
  • delete your existing deps directory
  • run make
If you want to use rebar directly instead of using make you can do:  
?
1
2
$ . /rebar get-deps
$ . /rebar compile


  erlang-and-toolchains    

Editor: you can use whatever you want. I used emacs for my first year of erlang, but I'm currently using gedit.  
Version Control: I like git. It seems that most of the erlang community agrees (most projects are hosted on github).  
Workflow: I'd recommend getting familiar with rebar.  

Here is an example of a rebar-flavored Makefile:  
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REBAR := . /rebar
 
.PHONY: all deps doc test clean release
 
all: deps
     $(REBAR) compile
 
deps:
     $(REBAR) get-deps
 
doc:
     $(REBAR) doc skip_deps= true
 
test :
     $(REBAR) eunit skip_deps= true
 
clean:
     $(REBAR) clean
 
release: all test
     dialyzer --src src/*.erl deps/* /src/ *.erl
Here are some basic pointers:  
  • Put your unit tests in the same modules as the code they are testing. See the rebar wiki for details.
  • Add {cover_enabled, true} to your rebar.config file. Every time you run make test you get a coverage report in HTML!
  • Add your project's dependencies to your rebar.config and you can fetch and build them when you run make deps.
  • Make sure to comment your code with edoc. If you do, rebar can build all of your docs when your run make doc.
目录
相关文章
|
开发者 iOS开发
介绍 UITableView 和 UICollectionView,它们的区别是什么?
介绍 UITableView 和 UICollectionView,它们的区别是什么?
394 0
|
Linux 程序员 API
LINUX系统API---操作目录
LINUX系统API---操作目录
167 0
|
存储 程序员 定位技术
程序员必知:安卓的四大组件
程序员必知:安卓的四大组件
326 0
|
监控 负载均衡 测试技术
大模型开发:描述一个你之前工作中的模型部署过程。
完成大型语言模型训练后,经过验证集评估和泛化能力检查,进行模型剪枝与量化以减小规模。接着导出模型,封装成API,准备服务器环境。部署模型,集成后端服务,确保安全,配置负载均衡和扩容策略。设置监控和日志系统,进行A/B测试和灰度发布。最后,持续优化与维护,根据线上反馈调整模型。整个流程需团队协作,保证模型在实际应用中的稳定性和效率。
434 3
|
存储 NoSQL 关系型数据库
|
Java Android开发
|
安全
居家办公必备的5款功能强大且免费的软件
乐人之乐,人亦乐其乐,每天分享新的软件给大家,也不断从私信中收到小伙伴们推荐给我的,这是一件十分令人愉悦的事情。今天依旧为大家带来5款功能强大且免费的软件,不知道屏幕前的你用过几个呢?
285 0
居家办公必备的5款功能强大且免费的软件
|
SQL 开发框架 .NET
Api开发利器Bottle
Api开发利器Bottle
250 0
|
C语言
C语言入门——取余运算
C语言入门——取余运算
467 0
|
弹性计算 网络安全
NAT 网关三大使用场景
NAT网关适用于专有网络类型的ECS实例需要主动访问公网和被公网访问的场景。
2247 0