agowa / WSL-DistroLauncher-Alpine

Alpine WSL Microsoft Store packages.
MIT License
211 stars 29 forks source link

Unable to install zsh-pcre #47

Open dave-kennedy opened 1 year ago

dave-kennedy commented 1 year ago

I'm not sure if this is the right place to ask, but I'm getting this error when I try to load a script with things like [[ $var =~ pattern ]]:

failed to load module `zsh/pcre': Error loading shared library /usr/lib/zsh/5.8.1/zsh/pcre.so: No such file or directory
-pcre-match not available for regex

I tried installing pcre, pcre2, reinstalling zsh, but the error persists. I believe I need to install zsh-pcre but for some reason this package isn't available:

% sudo apk add zsh-pcre
ERROR: unable to select packages:
  zsh-pcre (no such package):
    required by: world[zsh-pcre]

Is there something different about Alpine WSL that prevents installing packages from the main Alpine package repo?

jirutka commented 1 year ago

That’s weird. Moreover, zsh-pcre should be installed automatically if you install pcre.