facebookexperimental/MIRAI

dyld: Library not loaded on M1 mac

ioo0s opened this issue · 1 comments

ioo0s commented

Issue

Abort occurs during runtime

(base) ┌─[ios@iosdeMacBook-Pro] - [~/MIRAI] - [一 11 01, 22:15]
└─[$] <git:(main)> mirai
dyld: Library not loaded: @rpath/librustc_driver-a5c3062de76ec8b8.dylib
  Referenced from: /Users/ios/.cargo/bin/mirai
  Reason: image not found
[1]    75354 abort      mirai

Steps to Reproduce

Run build as described to README.md
use M1 mac

Expected Behavior

normal run

Actual Results

show error message dyld: Library not loaded: @rpath/librustc_driver-a5c3062de76ec8b8.dylib

Environment

rustc --version
rustc 1.58.0-nightly (4e0d3973f 2021-10-27)

ioo0s commented

solved on use command export DYLD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH