0

我在 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 入门教程之一,并创建一个新项目 - 不幸的是我总是卡住。这是我的过程:

  1. $ git clone https://github.com/basho/webmachine.git
  2. $ ./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 脚本之前执行了一次。

有什么我想念的吗?我不太明白错误信息。

4

1 回答 1

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

我已在 webmachine github 存储库中将此问题报告为问题

于 2014-12-09T01:50:46.613 回答