4

I'm trying to install KDbg debugger to use while I code in C and have some problems in figuring out what to do.

As suggested in this other similar question: How to install software provided in software-center via terminal?

These are the commands I tried to use:

sudo apt-get update
sudo apt-get install kdbg

And this is the error I got:

E: Unable to locate package kdbg

I'm new to the whole Ubuntu environment and can't figure out how to solve this. The guy that posted the original question marked it as solved so I thought it would work.

2 Answers2

8

I also just found it was removed (grrrrrrr).

Turns out it can be built rather easily:

sudo apt install extra-cmake-modules
git clone -b maint https://github.com/j6t/kdbg.git 
cd kdbg/
git tag -l
git checkout kdbg-3.0.1
cmake .
sudo make install

In fact, I had to install some missing packages (cmake . failed for me complaining about missing things) but they were not difficult to find. For example I saw some error about missing Kf5IconThemeSomething and Kf5XmlGuiSomething, where it helped to

sudo apt install libkf5iconthemes-dev libkf5xmlgui-dev

(and retry)

Depending on the system of course much more packages may be needed (starting from compiler and cmake) – but considering you need debugger you likely have them already.

Mekk
  • 156
  • The mentioned dependencies are important to newbies like me :) The cmake dump message not very obvious. – HaxtraZ Jun 26 '21 at 16:27
1

In this particular case the package is not available for your Ubuntu version.

The manual installation of the package from 18.04 LTS is not possible because of dependency problems.

Also the package is not available as Snap or as FlatPak.

So you have to choose some alternative like CodeBlocks (codeblocks package) or KDevelop (kdevelop package).

N0rbert
  • 99,918