The installation of Lazarus on the Raspberry Pi is greatly simplified by the availability of deb packages (many thanks to ottod and Mattias).
I have installed Lazarus 4.0 RC1 on
Raspberry Pi 3, 4, 5 and Zero 2 with the three deb packages (fpc..., fpc-src... and lazarus...) without any problems. The operating system installed before was
Raspberry Pi OS 64bit from 22.10.2024. Now the Lazarus installation also works under Wayland. For the Zero 2, I set the swap from 200 to 400 for the installation (as expected, the Zero is very slow, but it works).
Installation instructions:
Download the three files:
1. fpc-laz_3.2.3-240813_arm64.deb
2. fpc-src_3.2.3-240813_arm64.deb
3. lazarus-project_4.0.0-0_arm64.deb
"
https://www.blaisepascalmagazine.eu" and then click on the link for Lazarus 4.0 RC1 and FreePascal for Raspberry Pi.
or direct
"
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20arm64%20DEB/Lazarus%204.0RC1/"
Then in the file manager (PCManFM) click (right mouse button) on file 1. fpc-laz... Select “Package install” and start the installation. Then enter the password and wait.
Do the same with file 2. fpc-src... and 3. lazarus...
or
on command line:
sudo apt install fpc-laz_3.2.3-240813_arm64.deb
sudo apt install fpc-src_3.2.3-240813_arm64.deb
sudo apt install lazarus-project_4.0.0-0_arm64.deb
The installation only takes a few minutes.
Now you can select and start Lazarus from the Start menu --> Development Lazarus.
There is still one small flaw: After starting Lazarus, a small window appears that you have to click away (this is probably a Wayland relic).
Have fun and success programming with Lazarus.