Solved

Why can't I run gdb after installing SuSE?

Posted on 2001-07-26
5
229 Views
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.
0
Comment
Question by:shanejin
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:mnashadka
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.
0
 

Author Comment

by:shanejin
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.

shanejin
0
 
LVL 8

Accepted Solution

by:
mnashadka earned 50 total points
ID: 6334059
You can download the gdb program from the GNU site at:
http://www.gnu.org/directory/gdb.html

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

Expert Comment

by:superschlonz
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.
0
 

Author Comment

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now