zsh-users
 help / color / mirror / code / Atom feed
* zsh: failed to load module `zsh/zle': No such file or directory
@ 2019-04-25  3:19 ` kamaraju kusumanchi
  2019-04-25  9:14   ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: kamaraju kusumanchi @ 2019-04-25  3:19 UTC (permalink / raw)
  To: Zsh Users

I am trying to install zsh into a non standard directory in "git for
windows" on a machine running windows 10 but running into problems.
When launching zsh, I am getting

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

Is there a way to fix this? FWIW I am using "git for windows" 2.21.0.windows.1 .

To reproduce, do the following in a git bash terminal

Download zsh
~ $ export PS1="\w $ "
~ $ mkdir -p ~/x/software
~ $ cd ~/x/software
~/x/software $ curl
http://repo.msys2.org/msys/x86_64/zsh-5.7.1-1-x86_64.pkg.tar.xz
--outpu t zsh-5.7.1-1-x86_64.pkg.tar.xz

Install the software
~/x/software $ mkdir -p ~/opt/software/zsh
~/x/software $ tar xJvf zsh-5.7.1-1-x86_64.pkg.tar.xz -C ~/opt/software/zsh

Run zsh from the new location
~/x/software $ export PATH="/c/Users/raju/opt/software/zsh/usr/bin":$PATH
~/x/software $ which zsh
/c/Users/raju/opt/software/zsh/usr/bin/zsh
~/x/software $ zsh
zsh: failed to load module `zsh/zle': No such file or directory
\w $


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh: failed to load module `zsh/zle': No such file or directory
  2019-04-25  3:19 ` zsh: failed to load module `zsh/zle': No such file or directory kamaraju kusumanchi
@ 2019-04-25  9:14   ` Peter Stephenson
  2019-04-26  5:13     ` kamaraju kusumanchi
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2019-04-25  9:14 UTC (permalink / raw)
  To: zsh-users

On Wed, 2019-04-24 at 23:19 -0400, kamaraju kusumanchi wrote:
> I am trying to install zsh into a non standard directory in "git for
> windows" on a machine running windows 10 but running into problems.
> When launching zsh, I am getting
> 
> zsh: failed to load module `zsh/zle': No such file or directory
> 
> Is there a way to fix this? FWIW I am using "git for windows"
> 2.21.0.windows.1 . 

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.

pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh: failed to load module `zsh/zle': No such file or directory
  2019-04-25  9:14   ` Peter Stephenson
@ 2019-04-26  5:13     ` kamaraju kusumanchi
  0 siblings, 0 replies; 3+ messages in thread
From: kamaraju kusumanchi @ 2019-04-26  5:13 UTC (permalink / raw)
  To: Zsh Users

On Thu, Apr 25, 2019 at 5:15 AM Peter Stephenson
<p.stephenson@samsung.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-26  5:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20190425032220epcas3p4438d12067543a5985dca967cb3a9521d@epcas3p4.samsung.com>
2019-04-25  3:19 ` zsh: failed to load module `zsh/zle': No such file or directory kamaraju kusumanchi
2019-04-25  9:14   ` Peter Stephenson
2019-04-26  5:13     ` kamaraju kusumanchi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).