Lazarus is a free, open-source, Delphi-like IDE for Free Pascal that works great on Ubuntu 24.04.
Ubuntu 24.04 (Noble Numbat) includes Lazarus 3.0 in its official repositories — a reasonably modern version.
# Update package list
sudo apt update
# Install the full Lazarus suite (includes IDE + compiler + components)
sudo apt install lazarus
This pulls in everything you need (lazarus-ide, fpc, lcl, etc.).
Alternative variants if you want a specific widget set:
sudo apt install lazarus-ide-gtk2 ← Most common on Ubuntu (GTK2 backend)sudo apt install lazarus-ide-qt5 ← Qt5 backend (sometimes better looks on some themes)After installation, start Lazarus from the menu (search for "Lazarus") or from terminal:
lazarus
If you want Lazarus 4.0+ (newer bug fixes & features):
sudo add-apt-repository ppa:rob-savoury/backports -y
sudo apt update
sudo apt install lazarus lazarus-ide lazarus-ide-gtk2 # or lazarus-ide-qt5
(You can later remove the PPA if desired:
sudo add-apt-repository --remove ppa:rob-savoury/backports)
TButton on the formShowMessage('Hello from Ubuntu 24.04!');
Happy coding! 🚀