[SOLVED] Kali Linux on Raspberry 5: Missing gdb lazarus / 32-Linux ---------------------------------------------------------------------- CM630 · 2025-11-18 11:28 I have installed Lazarus on Kali Linux on Raspberry 5 from https://sou rceforge.net/projects/lazarus/files/Lazarus%20Linux%20arm64%20DEB/Laza rus%204.4/ It complained about some library (libgtk-x11-2.0.so) missing, with some fiddling (most likely sudo apt-get update && sudo apt-get install --reinstall libgtk2.0-0 and some more), I got it installed. But now I get The debugger "/usr/bin/gdb" does not exist and is not executable. I also get this on the start-up screen. I found a 1,7 kB file named gdb in /usr/share/bash-completions/, but Lazarus says it is not executable. What else can I do to run the debugger? ---------------------------------------------------------------------- MarkMLl · 2025-11-18 11:50 Do you need to install gdb as a separate package? Even assuming that the compilers etc. from (what Debian calls) build-essential are preinstalled I'm used to having to add it manually at the same time as I install subversion etc. I'm currently- and very cautiously- working through some server rebuilds, and one of the things I'm doing is comparing what's on Debian 13 with or without a desktop environment. If I tell it to install a desktop environment (specifically, KDE) it includes both build-essential and gdb, if I don't then I have to install the two individually plus typically gdbserver. MarkMLl ---------------------------------------------------------------------- CM630 · 2025-11-18 12:09 Indeed, I have always thought that GDB is sth. that comes with Lazarus, maybe it is true for Windows. sudo apt-get install gdb and now it works... almost, because it keeps stopping in a timer where there is no breakpoint. EDIT: I deleted .lps, lib and backup and now it seems fine. ---------------------------------------------------------------------- Thaddy · 2025-11-18 14:56 You did not install build-essential? Sudo apt install build-essential (which includes gdb and way more essential development support) Anyway: the gtk2 dependency is different and keeps a recurring issue. See several other subjects. Then again, I would expect a pen test distro to have a debugger present. ---------------------------------------------------------------------- CM630 · 2025-11-18 15:07 Thanks, I added some info in https://wiki.freepascal.org/Lazarus_on_Ra spberry_Pi#Installing_on_Kali_Linux_on_Raspberry_Pi_5 . It is not complete, but I hope it is sufficient. ---------------------------------------------------------------------- Thaddy · 2025-11-18 15:20 GDB is installed by build-essential, together with a.o. the GNU compiler chain and all -dev headers. Strange it isn't in Kali by default. It used to be.(I checked) ---------------------------------------------------------------------- MarkMLl · 2025-11-18 16:00 I wonder how to put this diplomatically? Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ apt-file search `which gdb` 2> /dev/null | grep ^gdb:gdb: /usr/bin/gdbgdb: /usr/bin/gdb-add-indexgdb: /usr/bin/gdbtui  So: it's in the gdb package, not in build-essential, and that's been the situation for at least ten years. MarkMLl ---------------------------------------------------------------------- CM630 · 2025-11-29 13:51 I am used that the DEB files either install the dependencies automatically or ask the user if (s)he wants to. Could not the Lazarus*.deb do the same? Check if gdb is present and to install it if it is missing? ---------------------------------------------------------------------- Thaddy · 2025-11-29 15:20 install build-essential which will install the gnu toolchain and includes gdb. It is also one of the documented dependencies.