Author Topic: Perfect Lazarus Install  (Read 2991 times)


  • New member
  • *
  • Posts: 6
Perfect Lazarus Install
« on: September 07, 2021, 10:55:19 pm »
Have recently installed lazarus on linux lite which is debian-ubuntu based by downloading the three deb files from sourceforge


using synaptioc to install GNU Debugger (gdb)
then installing the above deb files using sudo dpkg -i *

Lazarus works, using fpc from the command line works and and the retro but lovely fp ide works ie everything compiles.

As to the point of the post, my other attempts at installation using mainly the distros ‘software centre’ or pakage manager have not been entirely successful leading to compile errors: can’t find system file or can’t find CRT or warning did you forget -T?

Lazarus/free pascal is a fantastic asset for linux either for command line utilities or something more gui based but it would be a pity if inexperienced users were put off by unsuccessful installs. So efforts by the community to make the install foolproof would be great.


  • Hero Member
  • *****
  • Posts: 5540
Re: Perfect Lazarus Install
« Reply #1 on: September 07, 2021, 10:59:16 pm »
The "did you forget -T" is benign, the FPC developers have had to make some tricky decisions at various times to support multiple versions of linker and that's a side-effect with some combinations. Generally speaking I install the prerequisites as standard Debian packages, then compile FPC and Lazarus from (stable) sources.

MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:


  • Full Member
  • ***
  • Posts: 159
Re: Perfect Lazarus Install
« Reply #2 on: October 02, 2021, 08:20:51 pm »
The distro packages are notoriously outdated / incomplete / outright wrong. Whenever I meet someone who is trying to (or has already) installed these packages I advise them to completely wipe them from their system, along with every little trace they might have left,

and then:

* Download fpcupdeluxe
* Use the above to install everything from source with one mouse click.
* keep it updated with one mouse click.
* recompile compiler and RTL with debug symbols of needed
* install any cross compiler you might ever want with just a few mouse clicks
* install additional branches without impacting the installed one
* etc.

IMHO this is the one tool you absolutely need. And it also works for your Windows friends.
« Last Edit: October 02, 2021, 08:23:43 pm by prof7bit »


  • Full Member
  • ***
  • Posts: 237
Re: Perfect Lazarus Install
« Reply #3 on: April 16, 2022, 02:10:01 pm »

make the install foolproof would be great
After having tried around (unsuccessfully :() to install FPC&Lazarus manually on Linux,
I totally agree with prof7bit:
The easiest and most foolproof Way to install FPC&Lazarus on diverse Platforms,
including Cross-Compiling, and even multiple Versions of FPC/Lazarus, is FpcUpDeluxe:,34645.0.html.

Source   :

Some useful Links...
- Installing the Free Pascal Compiler (FPC-Wiki)
- Installing Lazarus (Lazarus-Wiki)

- fpcupdeluxe (FPC-Wiki)
  Be sure to meet the "Prerequisites" before Installing on Linux !
- FPCUPdeluxe FreePascal und Lazarus mit Cross-Compilern installieren (YouTube - Windows, German)
- Fpcupdeluxe Tutorial (How to install FPC and Lazarus using Fpcupdeluxe) (YouTube - Windows)
- How to install Lazarus IDE with FpcUpDeluxe (YouTube - Linux)
- Installing FPC and Lazarus using FpcUpDeluxe (YouTube - Linux)
  Use the generated Link to start Lazarus after Installing on Linux !

I used 'FpcUpDeluxe v2.2.0h' to install 'Lazarus v2.2.0 + FPC v3.2.2' on 'Linux Mint v17.3 32bit', and...
... it worked w/o any Problems !  :)
Life could be so easy, if there weren't those f*** Details.


TinyPortal © 2005-2018