zsh-users
 help / color / mirror / code / Atom feed
* executable not found
@ 2019-10-06 19:04 Ray Andrews
  2019-10-06 19:10 ` Danh Doan
  0 siblings, 1 reply; 5+ messages in thread
From: Ray Andrews @ 2019-10-06 19:04 UTC (permalink / raw)
  To: Zsh Users

     I was trying to fire up an old backup of an executable I wrote:  
'ls' shows the current version and the backup:

...
-rwxr-xr-x 1 30152 2016-12-17/12:18:46 movemouse,1*
-rwxr-xr-x 1 10544 2016-12-17/12:57:53 movemouse*
...

     However zsh doesn't want to run it tho both are executable:

$ movemouse,1
zsh: command not found: movemouse,1

     Current directory is on my path:

PATH=".:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

     So current directory should be searched.  I can't figure out why 
zsh isn't finding it.  The recent version 'movemouse' is found fine.  
Copying 'movemouse,1' to another name somewhere else on the path made no 
difference.  But there is this:

movemouse,1:
CONTENT: EXECUTABLE BINARY application/x-executable; charset=binary:

movemouse:
CONTENT: EXECUTABLE LIBRARY application/x-sharedlib; charset=binary:

     Is that the issue?  Can anything obvious be done?  Do I need to 
rebuild 'movemouse,1'?  Yet zsh should find it anyway, no?

     Trying:

$exec ./movemouse,1

     crashed the terminal as did:

$exec ./movemouse


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

* Re: executable not found
  2019-10-06 19:04 executable not found Ray Andrews
@ 2019-10-06 19:10 ` Danh Doan
  2019-10-06 19:15   ` Roman Perepelitsa
  2019-10-06 19:22   ` Ray Andrews
  0 siblings, 2 replies; 5+ messages in thread
From: Danh Doan @ 2019-10-06 19:10 UTC (permalink / raw)
  To: zsh-users, Ray Andrews, Zsh Users

On October 6, 2019 7:04:22 PM UTC, Ray Andrews <rayandrews@eastlink.ca> wrote:
>     I was trying to fire up an old backup of an executable I wrote:  
>'ls' shows the current version and the backup:
>
>...
>-rwxr-xr-x 1 30152 2016-12-17/12:18:46 movemouse,1*
>-rwxr-xr-x 1 10544 2016-12-17/12:57:53 movemouse*
>...
>
>     However zsh doesn't want to run it tho both are executable:
>
>$ movemouse,1
>zsh: command not found: movemouse,1
>
>     Current directory is on my path:
>
>PATH=".:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>
>     So current directory should be searched.  I can't figure out why 
>zsh isn't finding it.  The recent version 'movemouse' is found fine.  
>Copying 'movemouse,1' to another name somewhere else on the path made
>no 
>difference.  But there is this:
>
>movemouse,1:
>CONTENT: EXECUTABLE BINARY application/x-executable; charset=binary:
>
>movemouse:
>CONTENT: EXECUTABLE LIBRARY application/x-sharedlib; charset=binary:
>
>     Is that the issue?  Can anything obvious be done?  Do I need to 
>rebuild 'movemouse,1'?  Yet zsh should find it anyway, no?
>
>     Trying:
>
>$exec ./movemouse,1
>
>     crashed the terminal as did:
>
>$exec ./movemouse

I think that executable's interpreter couldn't be found.

In case of native executable (i.e not a script), its linked libc couldn't be found. Please check with `ldd'
-- 
Danh

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

* Re: executable not found
  2019-10-06 19:10 ` Danh Doan
@ 2019-10-06 19:15   ` Roman Perepelitsa
  2019-10-06 20:10     ` Ray Andrews
  2019-10-06 19:22   ` Ray Andrews
  1 sibling, 1 reply; 5+ messages in thread
From: Roman Perepelitsa @ 2019-10-06 19:15 UTC (permalink / raw)
  To: Danh Doan; +Cc: Ray Andrews, Zsh Users

On Sun, Oct 6, 2019 at 9:11 PM Danh Doan <congdanhqx@gmail.com> wrote:
> I think that executable's interpreter couldn't be found.
>
> In case of native executable (i.e not a script), its linked libc couldn't be found. Please check with `ldd'

You can also try running it with plain ./movemouse,1 (instead of exec
./movemouse,1). It won't run but at least it'll demonstrate that PATH
is a red herring, and you'll be able to read the error message as you
won't be sacrificing your shell in the process.

Roman.

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

* Re: executable not found
  2019-10-06 19:10 ` Danh Doan
  2019-10-06 19:15   ` Roman Perepelitsa
@ 2019-10-06 19:22   ` Ray Andrews
  1 sibling, 0 replies; 5+ messages in thread
From: Ray Andrews @ 2019-10-06 19:22 UTC (permalink / raw)
  To: zsh-users

On 2019-10-06 12:10 p.m., Danh Doan wrote:

> I think that executable's interpreter couldn't be found.
> In case of native executable (i.e not a script), its linked libc couldn't be found. Please check with `ldd'
7 /aWorking/C/Movemouse 2 $ ldd movemouse
     linux-vdso.so.1 (0x00007ffd64a93000)
     libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 
(0x00007f6de3f0f000)
     libXtst.so.6 => /usr/lib/x86_64-linux-gnu/libXtst.so.6 
(0x00007f6de3d09000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6de396a000)
     libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 
(0x00007f6de3742000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6de353e000)
     libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 
(0x00007f6de332c000)
     libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f6de311c000)
     /lib64/ld-linux-x86-64.so.2 (0x00007f6de4452000)
     libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 
(0x00007f6de2f18000)
     libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 
(0x00007f6de2d12000)
     libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f6de2afc000)
     librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6de28f4000)
     libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007f6de26d7000)

7 /aWorking/C/Movemouse 2 $ ldd movemouse,1
     not a dynamic executable

... so that seems like a downer, even tho it is described as an 
executable binary.  So zsh 'found' it but couldn't execute it? Makes me 
think that the message should reflect that:

zsh: command found but not executable: movemouse,1

Thanks Dahn


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

* Re: executable not found
  2019-10-06 19:15   ` Roman Perepelitsa
@ 2019-10-06 20:10     ` Ray Andrews
  0 siblings, 0 replies; 5+ messages in thread
From: Ray Andrews @ 2019-10-06 20:10 UTC (permalink / raw)
  To: zsh-users

On 2019-10-06 12:15 p.m., Roman Perepelitsa wrote:
>
> You can also try running it with plain ./movemouse,1

7 /aWorking/C/Movemouse 5 $ ./movemouse,1
zsh: no such file or directory: ./movemouse,1

... so it really acts as tho the file isn't there, rather than it not 
being actually executable.

> instead of exec
That was just a shot in the dark, I thought it might reveal something.


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

end of thread, other threads:[~2019-10-06 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-06 19:04 executable not found Ray Andrews
2019-10-06 19:10 ` Danh Doan
2019-10-06 19:15   ` Roman Perepelitsa
2019-10-06 20:10     ` Ray Andrews
2019-10-06 19:22   ` Ray Andrews

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).