Skip to content

jimmckeeth/Delphi-on-Linux-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delphi-on-Linux-Setup

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)

Usage

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 -fsSL https://tinyurl.com/SetupLinux4Delphi | sudo bash

Note: Is is recommended to review the script before running it in a production envorment. Also, curl is a requirement to run the above command. It is usually installed, but if you are missing it then run sudo apt install curl -y first.

The 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] [pkgmgr]

Where [version] is one of the following:

  • Florence 13.0 = Florence, 37.0, 13.0 or blank
  • Athens 12.3 = Athens, 23.0, 12.3, or 12
  • Athens 12.2 = 12.2
  • Athens 12.1 = 12.1
  • Athens 12.0 = 12.0
  • Alexandria 11.3 = Alexandria, 22.0, 11.3, or 11
  • Alexandria 11.2 = 11.2
  • Alexandria 11.1 = 11.1
  • Alexandria 11.0 = 11.0
  • Sydney 10.4.1 = Sydney, 21.0, or 10.4.1
  • Sydney 10.4.0 = 10.4.0
  • Rio 10.3.3 = Rio, 20.0, 10.3, or 10.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, or 10.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.

Experimental: [pkgmgr] parameter allows you to optionally override the os and package manager detection. Valid values are:

  • apt - for Ubuntu/Debian based distros
  • yum - for RedHat based distros
  • dnf - for Fedora based distros
  • pacman - for Arch based distros (experimental, not fully tested)

Note: Just because you can install it on a distro doesn't mean it is supported by Delphi. See the Official Platform Support list.

Tested Distros

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 2.6.3.0
    • Debian 13 (trixie) - Requires a manual curl install first: sudo apt install curl -y
    • 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
  • Other
    • Steam OS 3.7.17 (Arch based) - experimental with partial support. The SDK import misses some libraries, so if build against a different SDK then I was able to run it on Steam OS. If you can track down the issues then please file an issue or PR.

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, dnf, and pacman (experimental) package managers as necessary. You can view the full source, which is recommended before running it on your hardware.

Installation changes

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.

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.

More information

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:

History

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.

Installing Ubuntu with WSL2 on Windows 11

Windows Subsystem for Linux 2 (WSL2) is a quick and lightweight way to get started with Linux from within Windows 11. It provides a lightweight virtualized Linux environment that integrates well with Windows.

Microsoft has a full article with all the details. This is a summary for quick reference. There are BIOS configuration steps that may be required depending on your hardware.

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

Your machine may reboot before installation asks you to enter a username and password. This will be your Linux credential for the Ubuntu distribution, and are separate from your Windows credentials.

Start Ubuntu from the start menu, or from the terminal by typing ubuntu

Then run the following script

curl -fsSL https://tinyurl.com/SetupLinux4Delphi | sudo bash```

About

Scripts and resources to simplify the setup and development with Delphi on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages