我在OS X 10.10.1上安装了Erlang。即:
Erlang/OTP 17 [erts-6.2.1] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
我想关注许多webmachine介绍tutorials中的一个,并创建一个新项目 - 不幸的是我总是陷入困境。这是我的过程:
$ git clone https://github.com/basho/webmachine.git
$ ./webmachine/scripts/new_webmachine.sh testproject
第二个命令失败:
==> priv (create)
ERROR: Template wmskel not found.
ERROR: create failed while processing /Users/wasabii/webmachine/priv: rebar_abort
我在Ubuntu 14和OS X上都显示的上述错误消息无法获得更多信息。在前一种情况下,它是一个全新的设置,在尝试之前只执行了sudo apt-get git/erlang
运行shell脚本。
有什么我想念的吗?我不太明白错误信息。
答案 0 :(得分:2)
不幸的是,您似乎遇到了由rebar
存储库的顶级目录中的webmachine
可执行文件更新引起的问题。如果您查看提交a85499e,那么一切都应该按照您的预期进行:
$ git checkout develop
Switched to branch 'develop'
Your branch is up-to-date with 'origin/develop'.
$ ./scripts/new_webmachine.sh testproject /tmp
==> priv (create)
ERROR: Template wmskel not found.
ERROR: create failed while processing /usr/local/src/webmachine/priv: rebar_abort
$ git checkout a85499e
Note: checking out 'a85499e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at a85499e... Merge pull request #210 from basho/feature/log-request-times
$ ./scripts/new_webmachine.sh testproject /tmp
==> priv (create)
Writing /tmp/testproject/README
Writing /tmp/testproject/Makefile
Writing /tmp/testproject/rebar.config
Writing /tmp/testproject/rebar
Writing /tmp/testproject/start.sh
Writing /tmp/testproject/src/testproject.app.src
Writing /tmp/testproject/src/testproject.erl
Writing /tmp/testproject/src/testproject_app.erl
Writing /tmp/testproject/src/testproject_sup.erl
Writing /tmp/testproject/src/testproject_config.erl
Writing /tmp/testproject/src/testproject_resource.erl