You are not alone on this, get lazarus up and running on most distros is not that simple as make clean bigide suggest.
Distros are not standardized across each other. I just compile lazarus and run trough some dependencies missing poblem, and fix all, after success compile it key board don't work perfect in the IDE, and also it don't call the terminal emulator after compile, just the debug, almost useless (Debian Strech and XFCE). But it work fall less on ubuntu and unity. Why ? Don't have a clue...
Not a lazarus fault, for sure... but it is frustrating anyway, special to beginners dealing with link problems even after follow step by step a some wiki. Lazarus 1.8.0 is up an running on Raspberry PI3. Will not change it for a long time...