facebookexperimental / MIRAI

Rust mid-level IR Abstract Interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dyld: Library not loaded on M1 mac

ioo0s opened this issue · comments

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)

commented

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