After compiling software from source code, I can usually launch the compiled binary by double-clicking on it.
Recently however, most of my compiled binaries are not responding to double-click, even if they can be launched using
./MyBinary. This doesn't seem to be a permission problem because I have already done
sudo chmod +x.
It appears that my Linux system identifies compiled binaries as shared library files, and so doesn't execute them.
Does anyone know why this happens? Is it possible to change the file type to an executable to avoid this problem? Thanks in advance.
Manjaro Linux x86_64
Kernel release: 5.6.19-2