Recent

Author Topic: [SOLVED] Kali Linux on Raspberry 5: Missing gdb  (Read 695 times)

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
[SOLVED] Kali Linux on Raspberry 5: Missing gdb
« on: November 18, 2025, 12:28:08 pm »
I have installed Lazarus on Kali Linux on Raspberry 5 from https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20arm64%20DEB/Lazarus%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?
« Last Edit: November 18, 2025, 01:13:27 pm by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

MarkMLl

  • Hero Member
  • *****
  • Posts: 8525
Re: Kali Linux on Raspberry 5: Missing gdb
« Reply #1 on: November 18, 2025, 12:50:59 pm »
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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Kali Linux on Raspberry 5: Missing gdb
« Reply #2 on: November 18, 2025, 01:09:07 pm »
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.
« Last Edit: November 18, 2025, 01:13:55 pm by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #3 on: November 18, 2025, 03:56:17 pm »
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.
« Last Edit: November 18, 2025, 04:04:19 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #4 on: November 18, 2025, 04:07:20 pm »
Thanks, I added some info in https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Installing_on_Kali_Linux_on_Raspberry_Pi_5 .
It is not complete, but I hope it is sufficient.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #5 on: November 18, 2025, 04:20:23 pm »
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)
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

MarkMLl

  • Hero Member
  • *****
  • Posts: 8525
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #6 on: November 18, 2025, 05:00:42 pm »
I wonder how to put this diplomatically?

Code: Text  [Select][+][-]
  1. $ apt-file search `which gdb` 2> /dev/null | grep ^gdb:
  2. gdb: /usr/bin/gdb
  3. gdb: /usr/bin/gdb-add-index
  4. gdb: /usr/bin/gdbtui
  5.  

So: it's in the gdb package, not in build-essential, and that's been the situation for at least ten years.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #7 on: November 29, 2025, 02:51:58 pm »
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?
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: [SOLVED] Kali Linux on Raspberry 5: Missing gdb
« Reply #8 on: November 29, 2025, 04:20:23 pm »
install build-essential which will install the gnu toolchain and includes gdb.
It is also one of the documented dependencies.
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

 

TinyPortal © 2005-2018