whatismyname
whatismyname

Reputation: 23

Zsh error on shell start - Library loading issue

Getting this error on shell startup via zsh.

dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib
  Referenced from: /usr/local/bin/zsh
  Reason: image not found
zsh: trace trap  

Upvotes: 1

Views: 1122

Answers (1)

Andre Helberg
Andre Helberg

Reputation: 551

The error is saying that it cannot find the libpcre file, which is the perl compatible regular expression library.

To fix this make sure pcre is installed and then create a symlink to the appropriate file.

On MAC run

brew install pcre

ln -s /usr/local/Cellar/pcre/8.35/lib/libpcre.1.dylib /usr/local/lib/libpcre.1.dylib

Make sure to change the version in the above command to the appropriate version that is installed on your system.

Upvotes: 4

Related Questions