[SOLVED] How to install GDB

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] How to install GDB

Postby Roland » Jul 20th, '19, 17:53

Hello!

I have just installed Mageia 7. It's my first experience of Linux and I am a little lost.

My question is relative to GDB debugger. I have installed MSEide (an IDE for the Free Pascal compiler). When I try to execute a program, the IDE says that it cannot find GDB. Is GDB already installed? If yes, where to find it? If no, how to install it?

I tried to download it but I found only source code and didn't manage to compile it. I don't even know if there is a C compiler on my PC. :)

I read in Mageia 7 description that there is a C compiler included, but I have no idea where to find it.

Thank you for your attention.

Roland
Last edited by Roland on Jul 21st, '19, 12:32, edited 1 time in total.
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38

Re: How to install GDB

Postby doktor5000 » Jul 20th, '19, 23:19

Well, did you install gdb ? Can you please post the output of
Code: Select all
rpm -q gdb
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to install GDB

Postby magic » Jul 20th, '19, 23:21

Hi Roland and welcome.
I know things can seem a bit daunting at first but you will soon find your way around and I'm sure you'll enjoy yourself.
When you are looking for software your first port of call should be the Software Management section in the Mageia Control Center
You'll find 99+% of what you want in there.

There is a good document on it at:
https://doc.mageia.org/mcc/7/en/content ... ement.html

There is a package "gdb" in there that I suspect is what you want (as mentioned in the link you will need to change the filter from "Packages with GUI" to "All" to be able to find this).
I see my C has been in the sea too long - it's gone rusty.
magic
 
Posts: 54
Joined: Jun 8th, '19, 09:38
Location: Nottinghamshire, UK

Re: How to install GDB

Postby Roland » Jul 20th, '19, 23:40

doktor5000 wrote:Well, did you install gdb ? Can you please post the output of
Code: Select all
rpm -q gdb


Thank yo for your answer. No, I didn't installed it. I don't know how to do.

Code: Select all
[roland@localhost pascal]$ rpm -q gdb
le paquet gdb n'est pas installé
Last edited by Roland on Jul 21st, '19, 13:12, edited 1 time in total.
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38

Re: How to install GDB

Postby Roland » Jul 20th, '19, 23:51

magic wrote:Hi Roland and welcome.


Thank you. In the Software Management section of the Mageia Control center, I found this.

lib64gdbm6
lib64gdbm_compat4
wireless-regdb


I am not sure that this is what I am looking for. Anyway thank you for the indication and for the link.
Last edited by Roland on Jul 21st, '19, 12:32, edited 1 time in total.
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38

Re: How to install GDB

Postby Roland » Jul 21st, '19, 09:45

The Mageia Control center is awesome! I didn't expect so many applications available on a simple click. 8-)

I installed many things and apparently I also installed GDB. :)

Code: Select all
[roland@localhost ~]$ rpm -q gdb
gdb-8.2-8.mga7
Last edited by Roland on Jul 21st, '19, 13:11, edited 1 time in total.
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38

Re: How to install GDB

Postby isadora » Jul 21st, '19, 10:12

Would you please mark this topic [SOLVED]?
You can do so by editing the title/subject of the first message in the topic.
Place [SOLVED] in front of subject/title.

Thanks ahead. :)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2744
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: How to install GDB

Postby Roland » Jul 21st, '19, 12:35

isadora wrote:Thanks ahead. :)


Done. Thank you all for your help. ;)
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38

Re: [SOLVED] How to install GDB

Postby doktor5000 » Jul 21st, '19, 22:44

FWIW, you may want to read https://wiki.mageia.org/en/Installing_a ... g_software and maybe https://wiki.mageia.org/en/Install_medi ... _beginners to get started with software management in Mageia.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] How to install GDB

Postby Roland » Jul 22nd, '19, 08:50

Well received. Thank you.
Last edited by doktor5000 on Jul 22nd, '19, 23:15, edited 1 time in total.
Reason: removed fullquote
Roland
 
Posts: 6
Joined: Jul 20th, '19, 17:38


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron