Why can't I run gdb after installing SuSE?

Posted on 2001-07-26
Last Modified: 2010-04-21
I can use gcc to compile my program but can't use gdb to debug it.  Where can I find the gdb, or should I install it separately?  Thank you.
Question by:shanejin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 6324395
It's usually installed, but often a link to gcc will go in one of the common directories (like /usr/bin or /usr/local/bin).  Do a find on gdb (find / -name gdb), and either make a link in the same directory as the gcc link or put the gdb directory in your PATH environment variable.

Author Comment

ID: 6333381
Thank you, mnashadka.  I searched my disk but still can't find it.  Should I reinstall it?  If so, how should I do it?  Thank you again.


Accepted Solution

mnashadka earned 50 total points
ID: 6334059
You can download the gdb program from the GNU site at:

It's pretty simple to install; just read the text files that come with it.  I hope this helps you.

Expert Comment

ID: 6336297
Just install gdb.

Login as root, start 'yast', insert one of the SuSE CD's, select 'Choose/Install packages', then 'Change/Create configuration', select 'd' (development), then gdb, go back with F10 two times then 'Start installation'.
And voila, you have gdb.

Author Comment

ID: 6348265
Thank you, mnashadka.
And thank you too, superschlonz.

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL ( and MongoDB (…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question