macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.53k stars 685 forks source link

dyld: Library not loaded #1197

Open xieqing0428 opened 3 years ago

xieqing0428 commented 3 years ago

Instructions: Replace the template text and remove irrelevant text (including this line)

Describe the bug dyld: Library not loaded: /System/Library/Perl/5.28/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: /usr/local/Cellar/macvim/8.2-171/MacVim.app/Contents/MacOS/Vim Reason: image not found

To Reproduce Detailed steps to reproduce the behavior:

  1. Run mvim -v

Environment (please complete the following information):

Additional context brew install macvim

ayaman commented 3 years ago

I'm facing the same issue. This seems to be due to the latest macOS update (11.4) which updated the system version of Perl to 5.30.

eirnym commented 3 years ago

I see here few issues.

First, macOS updated Perl while homebrew hasn't recompiled a binary. I'd blame to them. And you need to install from sources fir now (brew install -s)

Second, binary from GitHub isn't really prepared for version of Perl as it used on a wide range of systems.

Here I'd suggest also to check if MacVim is compiled with dynamic library loading and to change perl path and hope ABI hasn't been changed

zmre commented 3 years ago

brew uninstall macvim && brew install -s macvim did the trick. Thanks @eirnym