我无法创建我的凤凰城项目.我很想知道如何修复它.
设置详细信息:
- Ubuntu 16.04.4 LTS
- Erlang/OTP 21[erts-10.1][source][64位]
- Elixir 1.7.3(已编译)
- Mix 1.7.3(使用Erlang/OTP 20编译)
- 星外v3.0
我正在跟随Phoenix Up and Running来制作一个应用程序.
mix phx.new hello
cd hello
mix ecto.create
最后一个命令告诉我:
== Compilation error in file lib/hello/repo.ex ==
** (ArgumentError) adapter Ecto.Adapters.Postgres was not compiled, ensure it is correct and it is included as a project dependency
lib/ecto/repo/supervisor.ex:71: Ecto.Repo.Supervisor.compile_config/2
lib/hello/repo.ex:2: (module)
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:206: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/6
我安装了博士后.我有postgres超级用户.