首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >菲尼克斯:无法编译依赖性:ranch

菲尼克斯:无法编译依赖性:ranch
EN

Stack Overflow用户
提问于 2019-06-05 07:32:04
回答 1查看 1.2K关注 0票数 0

背景

我使用mix phx.new my_app --no-ecto创建了一个项目,一切看起来都很好。但是,我无法运行创建的项目。

错误

当我执行mix phx.server时(在运行mix deps.get)之后,我会得到以下错误:

代码语言:javascript
复制
===> Compiling ranch
===> Command ' OTP' not found in namespace bare
** (Mix) Could not compile dependency :ranch, "/home/user/.asdf/installs/elixir/1.7.3-otp-21/.mix/rebar3 bare compile --paths "/home/user/Workspace/exercises/islands_interface/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile ranch", update it with "mix deps.update ranch" or clean it with "mix deps.clean ranch"

操作系统和语言信息

代码语言:javascript
复制
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:    19.04
Codename:   disco

elixir         1.7.3-otp-21
erlang         21.1    

我做错了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-06-06 10:31:08

我刚发现错误是什么。

这是项目的绝对路径:

/home/user/Workspace/Functional Web Development with Elixir, OTP, and Phoenix/islands_interface

结果,phx.server出错是因为它在文件夹/Functional Web Development with Elixir, OTP, and Phoenix/中。结果显示,错误消息中“OTP”中的空格来自文件夹的名称。

为了证明我的理论,我创建了一个名为test/home/user/Workspace/项目。一切都很完美。

进一步的调查揭示了问题的根源。菲尼克斯依赖项rebar3有一个错误,它的文件夹中有逗号。

https://elixirforum.com/t/phoenix-could-not-compile-dependency-ranch/22939/16?u=fl4m3ph03n1x

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56455990

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档