postgresql – 未编译适配器Ecto.Adapters.Postgres
我无法创建我的凤凰项目.会喜欢一些关于如何修复它的建议.
设置细节: > Ubuntu 16.04.4 LTS 我正在关注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.我有postgres超级用户.
你的依赖项中有phoenix_ecto 3.5.0吗?降级到3.4.0对我来说是一个临时修复,直到我找出根本问题.
强制降级: >运行mix deps.clean –all 或者,如果您刚刚开始使用Phoenix,您可以使用1.4版进行学习,该版本将很快发布并且没有此问题. 首先删除当前的本地凤凰档案: mix archive.uninstall phx_new 然后,要安装最新的开发版本,请按照https://github.com/phoenixframework/phoenix/blob/master/installer/README.md中的说明进行操作 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |