[Lazarus] making lazarus from source failed (linux mint)

Xiangrong Fang xrfang at gmail.com
Thu Sep 17 17:42:56 CEST 2015

Hi All,

As I cannot find fpc 2.6.4 for linux mint (the highest version for deb
package is 2.4.2).  I need to compile lazarus from source (as the official
deb package depends on fpc 2.6.4, while the mint system only provide 2.6.2).

I got this error: Fatal: (10022) Can't find unit system used by fcllaz

This is a "famous" error. I checked google, and know that it probably
caused by some directory configuration problems.

The command being executed by the make file is:

/usr/share/fpc-2.6.4/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq
-Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas

I don't know where does the options come from (especially the -FU option),
probably a fpc.cfg file somewhere.   My fpc was installed by the official
install.sh script to my local dir, and I moved the entire directory to
/usr/share/fpc-2.6.4 made a symbol link /usr/share/fpc, then added that
directory to $PATH.

Could anyone explain how FPC find its configuration file, and how to solve
the compile problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150917/f40a78bf/attachment-0002.html>

More information about the Lazarus mailing list