Scripts and resources to simplify the setup and development with Delphi on Linux. It should work with all x86 64-bit Linux distros that Delphi suports in WSL, Virtual Machines, or running on hardware natively.
Updated to support Delphi 13 Florence (37.0)
The same script works for both RedHat/Fedora and Ubuntu/Debian. There are a number of other quality of life improvements too. To run it from the web:
curl -L https://tinyurl.com/SetupLinux4Delphi | sudo bashThe installation location changed now, so it isn't user specific. Also, the same script supports earlier versions of Delphi. It defaults to the latest, but you can specify any different version:
Usage: sudo SetupLinux4Delphi.sh [version]
Where [version] is one of the following:
- Florence 13.0 =
Florence,37.0,13.0or blank - Athens 12.3 =
Athens,23.0,12.3, or12 - Athens 12.2 =
12.2 - Athens 12.1 =
12.1 - Athens 12.0 =
12.0 - Alexandria 11.3 =
Alexandria,22.0,11.3, or11 - Alexandria 11.2 =
11.2 - Alexandria 11.1 =
11.1 - Alexandria 11.0 =
11.0 - Sydney 10.4.1 =
Sydney,21.0, or10.4.1 - Sydney 10.4.0 =
10.4.0 - Rio 10.3.3 =
Rio,20.0,10.3, or10.3.3 - Rio 10.3.2 =
10.3.2 - Rio 10.3.1 =
10.3.1 - Rio 10.3.0 =
10.3.0 - Tokyo 10.2.3 =
Tokyo,19.0,10.2, or10.2.3 - Tokyo 10.2.0 =
10.2
The less specific labels are the latest versions, while the more specific labels refer to the exact version.
I tested Delphi 13 Florence against the following distros with this script:
- Debian based
- Ubuntu 18.04
- Ubuntu 20.04
- Ubuntu 22.04
- Ubuntu 24.04
- Kali Linux (rolling)
- Debian 13 (trixie)
- Pengwin (WSL)
- Fedora bassed
- Fedora Linux 42
- Fedora Remix for WSL
- Rocky Linux 9.6 (Blue Onyx)
- Alma Linux 9.6 (Safe Margay)
- Oracle Linux Server 9.5
I wasn't able to log into my Red Hat account to get the latest RHEL, but it is also Fedora based so it should be fine.
See the Official Platform Support list.
It detects the distro and version and works with apt, yum, and dnf package managers as necessary. You can view the full source, which is recommended before running it on your hardware.
The old version of the script installed it based on the compiler version number, now it is based on the product version number. The reason for the name change is to support installation of multiple versions of PAServer. Technically both 12.0 and 12.3 are still 23.0, so to allow installing both versions they need a unique name. I thought that was easier than using the build number.
It defaults to a blank password. You should probably change that.q
The instalation locations are as follows:
INSTALL_DIR="/opt/PAServer/$PRODUCT"SCRIPT_PATH="/usr/local/bin/pa$PRODUCT.sh"SCRATCH_DIR="/var/tmp/paserver-$PRODUCT"
Where $PRODUCT is 13.0, 12.2, etc. So you launch the Florence PAServer with pa13.0.sh.
The installation of packages is based on the DocWiki, but with a few changes to address neuances of different distros & installs. If the script doesn't work on your distro of choice then see if the original DocWiki instructions do, and if that still doesn't work, then you distro or installation might not be supported.
DocWiki Links:
- Linux Application Development
- Installing the Platform Assistant on Linux
- PAServer Overview
- Platform Assistant Server Errors Index
- Setting Options for the Platform Assistant
- FmxLinux/FireMonkey for Linux
- Delphi Compiler Versions
- Python 3.6 issue
This was originally a series of GISTs that myself and Ian Barker were updating. Figured it was time to turn it into a full GitHub project where we can collect all the scripts and add additional resources.
Microsoft has a full article with all the details. This is a summary for quick reference.
On Windows you need to do this from an elevated (administrator) command prompt or PowerShell window. Easiest way is Win+X,A.
wsl --install -d Ubuntu
Once your machine has finished rebooting, installation will continue and you will be asked to enter a username and password. This will be your Linux credential for the Ubuntu distribution.
Start Ubuntu from the start menu, or from the terminal by typing ubuntu
curl -L https://tinyurl.com/SetupLinux4Delphi | sudo bash
If you don't have curl installed then run sudo apt install curl -y first