Installation was successful but Execution stops lazarus / 1-Linux ---------------------------------------------------------------------- skrat · 2018-02-26 13:18 Until now I used Lazarus in Windows environment and had absolutely no problems with it. But not I am sort of migrating to Ubuntu 16.04. So I installed the fpc first, than fpc-src and lazarus at the end. Opened the IDE, tried to run a really simple program Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program HelloWorld; begin    writeln('Hello, world!');end.  pressing Ctrl + F9 it compiles normally but running it (using F9) results in an error "Execution stopped". Any idea what might be wrong? Perhaps some compiler settings? ---------------------------------------------------------------------- Handoko · 2018-02-26 13:35 Hello skrat, Welcome to the forum. Have you tried to start and run a 'default' empty application? Lazarus main menu > New > Project > Application > Ok ---------------------------------------------------------------------- skrat · 2018-02-26 13:46 I just tried it. Error: Error while linking ---------------------------------------------------------------------- Handoko · 2018-02-26 14:20 Then it means your installation has problem. For Ubuntu 16.04 read here to see my step-by-step installation: http://forum.lazarus.freepascal.org/index.php/topic,39281.msg269112.ht ml#msg269112 ---------------------------------------------------------------------- Martin_fr · 2018-02-26 14:24 First of all, check the propper setup for debugging. http://wiki.lazarus.freepascal.org/Debugger_Setup#Project_Options 1) NO optimization (NONE at all) 2) debug info Also be aware that your app will terminate immediately after it wrote "Hello world" (which you do not see, see below). You do get a dialog telling you it stopped (but it does/should NOT say error) There is a window under menu: view > Debug windows > Terminal output  (or maybe it was Console output). This does not exist on windows. On Windows, the OS will open a terminal for your console app. On Linux that does not happen, so you only see the output in the above window. ---------------------------------------------------------------------- Martin_fr · 2018-02-26 14:26 Quote from: Handoko on February 26, 2018, 02:35:02 pmHave you tried to start and run a 'default' empty application? Lazarus main menu > New > Project > Application > Ok Quote from: Handoko on February 26, 2018, 03:20:37 pmThen it means your installation has problem. Not necessarily, if he put his "program" code into an "Application" then there will be some error (I would not expect linking, but ...) ---------------------------------------------------------------------- skrat · 2018-02-26 15:27 THANKS to both of you. Reinstalling and proper setup for debugging worked.