Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Setting up Ubuntu 22.04 for Delphi 11.2 Debugging

ubuntu jammy jellyfish delphi

I created a Bash script a while back for setting up Ubuntu for Delphi development, and update it for each new release. The script automatically installs all the required packages, along with PAServer. I recently updated it again due to an LLDB debugging issue.


Error

Unable to start LLDB kernel: ‘Symbolic link target does not exist: /home/jim/PAServer/22.0/lldb/lib/libpython3.so -> /usr/lib/x86_64-linux-gnu/libpython3.6.so.1.0.
Please make sure that the target exists or update the link to point to the new Python 3 shared object file’.

The error is due to an updated version of Python being standard in Ubuntu 22.04 LTS Jammy Jellyfish. By default is ships wit Python version 3.10, while PAServer was hardcoded for Python 3.6. There is a known issue workaround in DocWiki to manually fix it, but I wanted to update my Bash script to do this automatically.

Solution

The fix is to update the symbolic link with whatever version of Python is installed.

[crayon-6648f6c26894b395489718/]

I’ve tested this on a few different installations and it is working reliably for me, but your millage may vary. Good luck!

Script

Or you can simply use my Bash script. It is published as a GitHub Gist https://embt.co/Ubuntu4Delphi22 where you can view the source. You can download and run it right from the command-line:

[crayon-6648f6c268955826005998/]

I have a version for Red Hat / Fedora / CentOS too (although it isn’t as tested or updated. Sorry, I don’t use CentOS very often.)

Exit mobile version