macvim icon indicating copy to clipboard operation
macvim copied to clipboard

dyld: Library not loaded

Open kbac001 opened this issue 4 years ago • 3 comments

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):

  • Vim version: 8.2-171
  • OS: macOS Big Sur 11.4 (20F71)
  • Terminal: iTerm2

Additional context brew install macvim

kbac001 avatar May 26 '21 07:05 kbac001

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.

ayaman avatar May 26 '21 08:05 ayaman

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

eirnym avatar May 26 '21 09:05 eirnym

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

zmre avatar May 26 '21 18:05 zmre