Lazarus Can't find unit system used by fcllaz

From Free Pascal wiki
Jump to navigationJump to search

Lazarus Can't find unit system used by fcllaz

You typically see this error message following a fresh install or when trying to build FreePascal and Lazarus from source code. The error means literally that the pre-compiled units of FreePascal for one reason or another are simply not being found by the compiler. There are generally 2 sources for these errors -- left over remnants from old install and environment problems.


Program Placement

There are currently at least 2 views of where FreePascal and Lazarus are to be installed on Linux, Unix and similar systems. The first is a more security conscious thought pattern where the executables are placed in either /root/bin or /usr/bin, libraries are placed in /root/lib or /usr/lib, shared files are placed in /usr/share, and configuration files in /home/username. The other favors control by the user by placing executables in /home/username/FreePascal, libraries and pre-compiled units in /home/username/FreePascal/lib/fpc/3.0.0/units and configuration files in /home/username. The word 'username' is typically the users name or handle. FreePascal could be a higher directory with lower directories for fpc-3.0.0 and lazarus. I follow this latter paradigm keeping all of my FreePascal files in one convenient location.


Finding Dangling Files

If you have had previous installations of FreePascal or Lazarus