[Lazarus] Unable to find file "staticpackages.inc"

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 13 16:50:03 CET 2015

On Fri, 13 Mar 2015 15:48:16 +0100
Norbert Crettol <norbert.crettol at gmail.com> wrote:

> This is my first post to this mailing-list. Let me first
> introduce myself: my name is Norbert Crettol, from Switzerland.
> I'm a former Turbo Pascal user. My first version was
> Turbo Pascal v.1.0 for CP/M (on Z80 processor). ;-) I've
> not been doing any Pascal development for many years now.

Welcome to Open Source.

> I've no experience with Lazarus.
> Now, my problem:
> On a fresh Debian Jessie installation, I've installed
> Lazarus and fpc (see the list of installed packages below).
> Unable to find file "staticpackages.inc".
> If it belongs to your project, check search path in
> Project -> Compiler Options -> Search Paths -> Other Unit Files.
> If this file belongs to a package, check the appropriate package
> compiler options. If this file belongs to Lazarus, make sure
> compiling clean. If the file belongs to FPC then check fpc.cfg.
> If unsure, check Project -> CompilerOptions -> Test

That message is misleading. The file is auto created by the IDE
in ~/.lazarus.

> -----------------------------------------------------
> I've checked the newly created ~/.lazarus folder and a file
> called "staticpackages.inc" exists there.


> I've tried to add
> /path/to/my/home/.lazarus in "Other Unit Files" as suggested
> by the error message but this leads to other errors.

The message was "If it belongs to your project". The file does not
belong to your project. Please remove the path from "Other Unit Files".

> I'm lost. Is that an purely Debian error?

That might be.
You can try our debian packages from
Since you already have FPC 2.6.4 you only need to uninstall the lazarus*
packages and install our lazarus package.

> Here are some data from Lazarus:
> ================================
> Lazarus version: 1.2.4+dfsg2-1
> Lazarus was compiled for x86_64-linux
> Lazarus was compiled with fpc 2.6.4
> ii  lazarus-1.2.4
> ii  lazarus-doc-1.2.4
> ii  lazarus-ide-1.2.4
> ii  lazarus-ide-gtk2-1.2.4
> ii  lazarus-ide-qt4
> ii  lazarus-ide-qt4-1.2.4
> ii  lazarus-src-1.2.4

Uninstall the above.

> ~$ dpkg -l | grep fpc
> ii  fpc
> ii  fpc-2.6.4
> ii  fpc-source
> ii  fpc-source-2.6.4
> ~$ dpkg -l | grep fp-
> ii  fp-compiler
> ii  fp-compiler-2.6.4
> ii  fp-ide-2.6.4
> ii  fp-units-base
> ii  fp-units-base-2.6.4
> ii  fp-units-db
> ii  fp-units-db-2.6.4
> ii  fp-units-fcl
> ii  fp-units-fcl-2.6.4
> ii  fp-units-fv-2.6.4
> ii  fp-units-gfx
> ii  fp-units-gfx-2.6.4
> ii  fp-units-gnome1-2.6.4
> ii  fp-units-gtk-2.6.4
> ii  fp-units-gtk2
> ii  fp-units-gtk2-2.6.4
> ii  fp-units-math
> ii  fp-units-math-2.6.4
> ii  fp-units-misc
> ii  fp-units-misc-2.6.4
> ii  fp-units-multimedia-2.6.4
> ii  fp-units-net-2.6.4
> ii  fp-units-rtl-2.6.4
> ii  fp-utils
> ii  fp-utils-2.6.4

Keep those.

> Can someone help?


More information about the Lazarus mailing list