无法生成凤凰应用 [英] can not generate phoenix app
问题描述
我想尝试Phoenix框架,但不能接受
我安装长生不老药brew install elixir
,之后,我安装菲尼克斯mix archive.install /path/to/archive
并尝试mix phoenix.new new_app
并得到错误:
i want try Phoenix framework, but can not take it
I install elixir brew install elixir
, after it, i install Phoenix mix archive.install /path/to/archive
and try mix phoenix.new new_app
and get the error:
** (UndefinedFunctionError) undefined function:crypto.strong_rand_bytes/1 (module :crypto is not available)
:crypto.strong_rand_bytes(64)
lib/phoenix_new.ex:459: Mix.Tasks.Phoenix.New.random_string/1
lib/phoenix_new.ex:187: Mix.Tasks.Phoenix.New.run/4
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
(elixir) lib/code.ex:363: Code.require_file/2
** (UndefinedFunctionError) undefined function:crypto.strong_rand_bytes/1 (module :crypto is not available)
:crypto.strong_rand_bytes(64)
lib/phoenix_new.ex:459: Mix.Tasks.Phoenix.New.random_string/1
lib/phoenix_new.ex:187: Mix.Tasks.Phoenix.New.run/4
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
(elixir) lib/code.ex:363: Code.require_file/2
Elixir -v 1.1.1
Elixir -v 1.1.1
mix -v 1.1.1
mix -v 1.1.1
erlang/OTP 18
erlang/OTP 18
OSX 10.11.1
OSX 10.11.1
推荐答案
Erlang与brew一起安装,但未链接.
Erlang was installed with brew, but was unlinked.
brew link erlang
解决我的麻烦
这篇关于无法生成凤凰应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!