หลังจากย้ายจากเครื่องมือควบคุมเวอร์ชัน brew ไปเป็น asdf สำหรับ Elixir และ Erlang ฉันยังคงไม่สามารถรวบรวมโปรเจ็กต์เก่าของฉันได้: ในกระบวนการคอมไพล์มันพยายามอ้างถึงไฟล์ Cellar lib ของ Brew ที่ไม่มีอยู่จริง:
MacBook-Pro% mix test
==> gettext
Compiling 1 file (.erl)
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:59: illegal pattern
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:60: variable 'Error' is unbound
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:60: variable 'Stacktrace' is unbound
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:63: variable 'Stacktrace' unsafe in 'try' (line 60)
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:64: variable 'Error' unsafe in 'try' (line 60)
/usr/local/Cellar/erlang/21.3.2/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:64: variable 'Stacktrace' unsafe in 'try' (line 60)
could not compile dependency :gettext, "mix compile" failed. You can recompile this dependency with "mix deps.compile gettext", update it with "mix deps.update gettext" or clean it with "mix deps.clean gettext"
แม้ว่าจะไม่มีโฟลเดอร์ /usr/local/Cellar/erlang
ก็ตาม
มิกซ์ใช้เส้นทางไปยัง erlang libs ภายนอกที่ไหนและจะเปลี่ยนสิ่งนั้นเพื่อใช้บันเดิลของ asdf ได้อย่างไร