Ubuntu – Error running C program compiled with Geany IDE Error Code: 127


I installed Geany IDE via Ubuntu Software Center. Wrote a hello world prog in C and it compiled successfully but when i tried to run it, it gave me this error:

./geany_run_script.sh: 5: ./geany_run_script.sh: ./hello: not found

(program exited with code: 127)
Press return to continue

Could someone please tell me what i should do?

Best Answer

  • You only compiled your source file, but didn't build your application, meaning the linking was not done and the executable was not created. Use the "build" sub-menu from the "build" menu (default shortcut is F9 if I recall correctly) and try again.

  • Related Question