Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh: failed to load module `zsh/zle': No such file or directory



On Thu, Apr 25, 2019 at 5:15 AM Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
>
> Presumably you have a pre-compiled version of zsh?  The variable that
> determines where shared libraries are found is MODULE_PATH
> (colon-separated) or module_path (array).  You need to set
> this to include the location where zsh/zle.so was installed.  For
> example it's probably got a value like /usr/local/lib/zsh/5.7.1 and
> in that case the shell looks for /usr/local/lib/zsh/5.7.1/zsh/zle.so.
>
> It should be OK to set that in ~/.zshenv --- assuming the shell knows
> where your home directory is.
>

Thanks. Setting the MODULE_PATH fixed the error. Also, I had to set
the FPATH variable so that zsh can find the function definitions. For
posterity, here is my ~/.zshenv

export MODULE_PATH=$HOME/opt/software/zsh/usr/lib/zsh/5.7.1:$MODULE_PATH
FPATH=$HOME/opt/software/zsh/usr/share/zsh/functions/Completion:$FPATH

Note that I am not exporting FPATH as suggested in
https://unix.stackexchange.com/a/33898/198064

thanks
raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog



Messages sorted by: Reverse Date, Date, Thread, Author