[lazarus] Unit not found: SysUtils

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 15 18:59:31 EST 2003


On Sat, 15 Feb 2003 16:18:13 -0400
Paul Wesson <paul at paulwesson.ca> wrote:

> Hi,
> 
> I'm an experienced Delphi developer now giving Linux a shot.
> 
> I just installed Mandrake 9.0 and am trying to get Lazarus working.
> 
> Here is what I did...
> - installed the fpc rpm (fpc-1.0.6-1.i386.rpm)

The 1.0.6 has some small bugs. Plz use at least the fpc from 21 Sept 2002. You
can use the rpm on the lazarus website 
ftp://ftp.us.freepascal.org/pub/lazarus/fpc-1.0.7-laz.20020921.i386.rpm 


> - extracted (lazarus.zip) to my home folder /home/paul/lazarus

I hope you mean lazaruslinux.zip.


> - from the console did a "make" from my /home/paul/lazarus directory
> (compiled ok)
> - edited /etc/fpc.cfg using "vi" and added the following lines
> 
> # Lazarus Libs
> -Fu/home/paul/lazarus/lcl/units
> -Fu/home/paul/lazarus/lcl/units/gtk
> -Fu/home/paul/lazarus/components/units
> 
> - the fpc.cfg had the following other settings...
> 
> # searchpath for units and other system dependent things
> -Fu/usr/lib/fpc/1.0.6/units/$target
> -Fu/usr/lib/fpc/1.0.6/units/$target/*
> -Fu/usr/lib/fpc/1.0.6/units/$target/rtl
> # searchpath for libraries
> -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2
> 
> I can start Lazarus fine, but when I place a "TButton" component on my form 
> and double click it to enter code, I get an error stating:
> 
> /lazarus/lcl/forms.pp(40,34) Error: unit not found: SysUtils
> 
> Can anyone give me any direction on this?

You need the freepascal sources. 
See http://www.freepascal.org/develop.html
daily snapshot of release tree or (better) downloading via cvs.
After you have downloaded and unpacked the sources, you have to tell lazarus
where they are:

Environment -> Environment Options -> Files -> FPC Source directory

Hint: This directory contains directories like 'compiler', 'docs', 'fcl',
'rtl' and 'packages'.


I'm currently creating normal packages (rpm, deb, tgz) for lazarus. They will
install freepascal, its sources, its docs and lazarus much more easier. 


Mattias






More information about the Lazarus mailing list