Lazarus

Free Pascal => Unix => Topic started by: smartduck on July 13, 2020, 07:15:13 pm

Title: Fatal: Can't find unit System
Post by: smartduck on July 13, 2020, 07:15:13 pm
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
Title: Re: Fatal: Can't find unit System
Post by: Ñuño_Martínez on July 13, 2020, 07:24:11 pm
Seems you didn't installed it correctly.  What system are you using?
Title: Re: Fatal: Can't find unit System
Post by: smartduck on July 13, 2020, 07:50:00 pm
I use fp 3.0.4 on AntiX linux 19.2.
What files are missing?



Title: Re: Fatal: Can't find unit System
Post by: smartduck on July 13, 2020, 08:03:11 pm
Just reinstalled fp, still the same error.
Maybe something is broken in one of the AntiX repository packages.
Title: Re: Fatal: Can't find unit System
Post by: Thaddy on July 13, 2020, 08:30:58 pm
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.
Title: Re: Fatal: Can't find unit System
Post by: smartduck on July 14, 2020, 05:25:36 pm
Just the example from the freepascal wiki:

Code: Pascal  [Select][+][-]
  1. program Hello;
  2. begin
  3.   writeln ('Hello, world.');
  4.   readln;
  5. end.
  6.  
Title: Re: Fatal: Can't find unit System
Post by: Thaddy on July 14, 2020, 06:20:03 pm
Just the example from the freepascal wiki:

Code: Pascal  [Select][+][-]
  1. program Hello;
  2. begin
  3.   writeln ('Hello, world.');
  4.   readln;
  5. end.
  6.  

If that gives you that error your install is really screwed... Try uninstall (purge) and after that, fpcupdeluxe.
Title: Re: Fatal: Can't find unit System
Post by: jb007 on April 17, 2023, 01:40:30 pm
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
Title: Re: Fatal: Can't find unit System
Post by: af0815 on April 17, 2023, 02:45:52 pm
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/
Not working site if you use a adblocker/spamblocker/antitracing (for a good reason)
TinyPortal © 2005-2018