just to be useful for anyone using Fedora.
guided by @jhfrontz answer:
sudo dnf install octave-devel
solved the problem of 'missing mkoctfile in octave' in fedora 40