2017-02-23 50 views
2

繼此Nerves Tutorial設置,我試圖運行服務器時在教程結束時出現此錯誤。Elixir神經鳳凰傘項目 - 運行鳳凰錯誤:'CoreServices/CoreServices.h'文件未找到

cjsMBP15:ui cj$ mix phoenix.server 
==> fs (compile) 
Compiling c_src/mac/cli.c 
In file included from c_src/mac/cli.c:2: 
In file included from c_src/mac/cli.h:4: 
c_src/mac/common.h:5:10: fatal error: 'CoreServices/CoreServices.h' file not found 
#include <CoreServices/CoreServices.h> 
     ^
1 error generated. 
ERROR: compile failed while processing /Users/cj/elixir_projects/nervous_espresso/deps/fs: rebar_abort 
** (Mix) Could not compile dependency :fs, "/Users/cj/.mix/rebar compile skip_deps=true deps_dir="/Users/cj/elixir_projects/nervous_espresso/_build/dev/lib"" command failed. You can recompile this depe 
ndency with "mix deps.compile fs", update it with "mix deps.update fs" or clean it with "mix deps.clean fs" 
cjsMBP15:ui cj$ 

我已經重新編譯,清理,更新fs庫,但似乎無法得到它的運行。我錯過了什麼,或者我應該嘗試什麼?

(請注意:是因爲沒有神經標籤)

回答

0

從phoenix UI項目中刪除{:phoenix_live_reload, "~> 1.0", only: :dev},mix.exs解決了錯誤。它看起來像有是引用https://elixirforum.com/t/phoenix-basic-setup-error/3189/15

此外,code_reloader需求將轉向falsedev.exs

config :ui, Ui.Endpoint, 
    http: [port: 4000], 
    debug_errors: true, 
    code_reloader: false, 
    check_origin: false, 
    watchers: [] 
斷裂兼容性錯誤
1

它看起來像你正在經歷什麼是MAC OS編譯:fs的問題。您可以嘗試更新您的brew並確保您已安裝xcode。