Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[solved] 'zsh/pcre' error after installation #12

Closed
MaxenceMax opened this issue Jun 11, 2020 · 12 comments
Closed

[solved] 'zsh/pcre' error after installation #12

MaxenceMax opened this issue Jun 11, 2020 · 12 comments
Labels
question Further information is requested

Comments

@MaxenceMax
Copy link

MaxenceMax commented Jun 11, 2020

after installation, I have those errors :

update_terminal_cwd:12: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found                                                                                                
update_terminal_cwd:12: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex

do you have ant idea why ?

@zthxxx
Copy link
Owner

zthxxx commented Jun 12, 2020

seems like a zsh bug,

try brew install zsh --with-pcre

maybe those can help you

@MaxenceMax
Copy link
Author

i already tried it and I have this error :

Error: invalid option: --with-pcre

@zthxxx
Copy link
Owner

zthxxx commented Jun 15, 2020

I found some same questions, and a answer is just install pcre,

maybe you can try brew install pcre pcre2

@Pensu
Copy link

Pensu commented Aug 7, 2020

I am also facing the same issue.

brew install pcre pcre2 isn't working either. @MaxenceMax Did you find any solution?

@zthxxx
Copy link
Owner

zthxxx commented Aug 10, 2020

I am also facing the same issue.

brew install pcre pcre2 isn't working either. @MaxenceMax Did you find any solution?

@Pensu What's your zsh version? zsh 5.7.1 (x86_64-apple-darwin18.2.0) for me

@Pensu
Copy link

Pensu commented Aug 10, 2020

I am also facing the same issue.
brew install pcre pcre2 isn't working either. @MaxenceMax Did you find any solution?

@Pensu What's your zsh version? zsh 5.7.1 (x86_64-apple-darwin18.2.0) for me

Hey @zthxxx, mice is zsh 5.7.1 (x86_64-apple-darwin19.0)

@zthxxx
Copy link
Owner

zthxxx commented Aug 10, 2020

@Pensu maybe try

brew reinstall zsh 
brew reinstall pcre pcre2

sudo chsh -s `command -v zsh` $USER

to make sure it will reinstall pcre module

@zthxxx
Copy link
Owner

zthxxx commented Aug 10, 2020

@Pensu

after brew install zsh, there are "two zsh",

one is /usr/local/bin/zsh, installed by brew, no problem;

and another is /bin/zsh, built-in with macOS Catalina, failed to load pcre.so.

so you need chsh to /usr/local/bin/zsh manually.

sudo chsh -s `command -v zsh` $USER

image

@zthxxx zthxxx closed this as completed Aug 10, 2020
@zthxxx
Copy link
Owner

zthxxx commented Aug 10, 2020

@MaxenceMax see details above

@Pensu
Copy link

Pensu commented Aug 10, 2020

@zthxxx Awesome, this works. Thanks! 👍

@MaxenceMax
Copy link
Author

@zthxxx thank you a lot ! it's working like a charm !

@zthxxx zthxxx changed the title Error after installation 'zsh/pcre' error after installation Oct 14, 2020
@zthxxx zthxxx added the question Further information is requested label Oct 14, 2020
@zthxxx zthxxx changed the title 'zsh/pcre' error after installation [solved] 'zsh/pcre' error after installation Oct 23, 2020
@zthxxx
Copy link
Owner

zthxxx commented Oct 23, 2020

Summary

built-in with macOS Catalina zsh (/bin/zsh), will failed to load pcre.so.

so you need chsh to /usr/local/bin/zsh manually, which is install with brew.

brew install zsh 
sudo chsh -s `command -v zsh` $USER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants