postgresql – 未编译适配器Ecto.Adapters.Postgres

postgresql – 未编译适配器Ecto.Adapters.Postgres,第1张

概述我无法创建我的凤凰项目.会喜欢一些关于如何修复它的建议. 设置细节: > Ubuntu 16.04.4 LTS > Erlang / OTP 21 [erts-10.1] [来源] [64位] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe] > Elixir 1.7.3(编译 与Erlang / OTP 20) >混合1.7.3(使用Erlang / 我无法创建我的凤凰项目.会喜欢一些关于如何修复它的建议.

设置细节:

> Ubuntu 16.04.4 LTS
> Erlang / OTP 21 [erts-10.1] [来源] [64位]
[smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]
> Elixir 1.7.3(编译
与Erlang / OTP 20)
>混合1.7.3(使用Erlang / OTP 20编译)
> Ecto v3.0.0

我正在关注Phoenix Up and Running制作应用程序.

mix phx.new hellocd hellomix 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
>删除mix.lock文件
>更新限制phoenix_ecto版本的mix.exs文件.找到合适的行并替换为:
{:phoenix_ecto,“> = 3.2.0和< 3.5.0”},
>运行mix deps.get

或者,如果您刚刚开始使用Phoenix,您可以使用1.4版进行学习,该版本将很快发布并且没有此问题.

首先删除当前的本地凤凰档案:

mix archive.uninstall phx_new

然后,要安装最新的开发版本,请按照https://github.com/phoenixframework/phoenix/blob/master/installer/README.md中的说明进行 *** 作

总结

以上是内存溢出为你收集整理的postgresql – 未编译适配器Ecto.Adapters.Postgres全部内容,希望文章能够帮你解决postgresql – 未编译适配器Ecto.Adapters.Postgres所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1167987.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存