Executable won't execute

[ion@ion-desk OS9]$ ls imgtool
imgtool
[ion@ion-desk OS9]$ ./imgtool
bash: ./imgtool: cannot execute: required file not found
[ion@ion-desk OS9]$

But imgtool properties shows it’s executable and read/write for all users. And it worked a few days ago. Any suggestions?

What even if this imgtool executable? Where did you get it? What is its purpose?

What is the output of file ./imgtool

It converts Microware OS9 files to Linux files. I have used it for many years.

It works fine under another Linux OS.

ls -la ./imgtool
?

This? https://man.archlinux.org/man/extra/mame-tools/imgtool.1.en

Isn’t it part of the MAME tools package?

Perhaps you should check if that is installed/installed correctly on your system?

[ion@ion-desk OS9]$ ls -la ./imgtool
-rwxrwxrwx 1 ion users 355932 Aug 2 12:49 ./imgtool
[ion@ion-desk OS9]$

I re-installed MAME to be sure. Nothing changed.

Did you run the command from above yet?

Please reinstall with command

yay -Sy mame-tools

ls -la /usr/bin/imgtool

.rwxr-xr-x 1,2M root 31 jul 09:12

execute with command : /usr/bin/imgtool
or : imgtool

It is not :
./imgtool

Please never install anything with pacman -Sy, this is a terrible practice.

Why terrible ?

Because is creates a partial update situation.

If you update your database and install software without updating your system, you are creating a situation where your packages are out of alignment.

yay (Yet Another Yaourt) is a lightweight, fast, and user-friendly AUR helper that automates the build and installation process.

I know what yay is. yay -Sy has all the same problems that pacman -Sy does…

of AUR packages. It first checks if a package can be found via the official repositories through pacman. yay isn’t a new package manager for Arch, it is a wrapper around it with mechanisms to install AUR packages.

OP, can you run file ./imgtool and please post the output?

Running it from /usr/bin/imgtool did the trick. Thank you VERY much!