Fatal: Can't find unit System lazarus / 66-Unix ---------------------------------------------------------------------- smartduck · 2020-07-13 17:15 Hello, I hope someone can help me getting the freepascal ide compile. I wrote a simple example hello world to test the ide. When I try to run the program I get Fatal: Can't find unit System used by helloworld. I have also installed Lazarus IDE. Programs in Lazarus compile and run fine. I noticed fp putting the fp.cfg, fp.dsk, fp.ini and fp____.err in my home directory. Regards, Marcel ---------------------------------------------------------------------- Ñuño_Martínez · 2020-07-13 17:24 Seems you didn't installed it correctly.  What system are you using? ---------------------------------------------------------------------- smartduck · 2020-07-13 17:50 I use fp 3.0.4 on AntiX linux 19.2. What files are missing? ---------------------------------------------------------------------- smartduck · 2020-07-13 18:03 Just reinstalled fp, still the same error. Maybe something is broken in one of the AntiX repository packages. ---------------------------------------------------------------------- Thaddy · 2020-07-13 18:30 Did your program explicitly refer to unit system? That is wrong. Remove any references to system and try again. System is always included automatically. If that does not work install with fpcupdeluxe which is the best option for starters with install troubles. ---------------------------------------------------------------------- smartduck · 2020-07-14 15:25 Just the example from the freepascal wiki: 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 Hello;begin  writeln ('Hello, world.');  readln;end. ---------------------------------------------------------------------- Thaddy · 2020-07-14 16:20 Quote from: smartduck on July 14, 2020, 05:25:36 pmJust the example from the freepascal wiki: 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 Hello;begin  writeln ('Hello, world.');  readln;end.  If that gives you that error your install is really screwed... Try uninstall (purge) and after that, fpcupdeluxe. ---------------------------------------------------------------------- jb007 · 2023-04-17 11:40 Hi, aware of the fact that there hasn't been a post for 2 years, here solution that works on my pi zero: https://peppe8o.com/using-pascal-programming-language-with-raspberry- pi/ Step by step it shows how to set things! Kind regards. Marcel ---------------------------------------------------------------------- af0815 · 2023-04-17 12:45 Quote from: jb007 on April 17, 2023, 01:40:30 pmaware of the fact that there hasn't been a post for 2 years, here solution that works on my pi zero: https://peppe8o.com/using-pascal-programming-language-with-raspberry- pi/ Not working site if you use a adblocker/spamblocker/antitracing (for a good reason) ---------------------------------------------------------------------- nikel · 2024-04-27 21:08 I had the same problem. I ran "fp" on a machine which has Lazarus installed. Then looked at Options > Directories. So I added following entries to the fp which was giving me error. Units /usr/lib/fpc/$fpcversion\units\$fpctarget /usr/lib/fpc/$fpcversion\units\$fpctarget\* /usr/lib/fpc/$fpcversion\units\$fpctarget\rtl Libraries /usr/lib/gcc/x86_64-linux-gnu/9 Attention: Some slashes are forward some are back. Also "build- essentials" is installed. ---------------------------------------------------------------------- zamronypj · 2024-04-28 00:02 I encountered this kind of problem in the past. IIRC, it was because I installed using fpcupdeluxe and somehow FPC searched /etc/fpc.cfg and can not found it. I solved it by creating symlink /etc/fpc.cfg and point it to fpc.cfg from fpcupdeluxe.