[Lazarus] Install Lazarus 2.2.4 on Ubuntu 20.04 LTS and other Linux

Giuliano Colla giuliano.colla at fastwebnet.it
Thu Feb 9 20:52:22 CET 2023

Il 09/02/23 14:37, Bo Berglund via lazarus ha scritto:

> On Thu, 9 Feb 2023 11:50:25 +0100, John Landmesser via lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
>>    git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus
> So I have found that this is a path forward:
> FPCTAG=release_3_2_2
> FPCVER=3.2.2
> LAZTAG=lazarus_2_2_4
> LAZVER=2.2.4
> ...
> cd $HOME/devel/fpc
> wget
> https://gitlab.com/freepascal.org/fpc/source/-/archive/$FPCTAG/source-$FPCTAG.tar.gz
> tar -xvf source-$FPCTAG.tar.gz
> mv source-$FPCTAG $FPCVER
> rm source-$FPCTAG.tar.gz
> cd $HOME/devel/lazarus
> wget
> https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/$LAZTAG/lazarus-$LAZTAG.tar.gz
> tar xvf lazarus-$LAZTAG.tar.gz
> mv lazarus-$LAZTAG 2.2.4
> rm lazarus-$LAZTAG.tar.gz
> This brings over just the sourcefiles for fpc and lazarus into the correct
> directories with no extra stuff.
> Then the remainder of my install script should work (not yet done though).

The best way I've found to solve this sort of problems is to use 
fpcupdeluxe, or at least the fpcupdeluxe technique. It just builds a 
fully isolated tree for each different Lazarus/fpc combinations you 
want. The trick for Lazarus is very simple, just a startup script 
pointing to the local Lazarus executable and configuration. For fpc, the 
fpc executable is just a fpc.sh which starts the local fpc with the 
local fpc config. On Linux I have two Lazarus 1.8 (one gtk2, the other 
Qt) with their fpc to support old applications, one Lazarus stable+fixes 
and one Lazarus trunk. On Mac Os the same. Give it a try.


More information about the lazarus mailing list