<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Hi All,<br><br>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).<br><br>I got this error: Fatal: (10022) Can't find unit system used by fcllaz<br><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">This is a "famous" error. I checked google, and know that it probably caused by some directory configuration problems.<br><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">The command being executed by the make file is:<br><br>/usr/share/fpc-2.6.4/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU<span style="color:rgb(255,0,0)">../units/x86_64-linux</span> -Cg -dx86_64 fcllaz.pas<br><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">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.<br><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Could anyone explain how FPC find its configuration file, and how to solve the compile problem?<br><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Thanks!<br><br><br clear="all"></div><div><div class="gmail_signature"><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B3cr36sBDhsCbjdsUFlJQTFIRlk&revid=0B3cr36sBDhsCT3k0STNYRXJ6UlZQd2w2WSt6Z0MyNzNJVlpjPQ" height="95" width="96"><br></div></div></div>
</div>