Solved

Why can't I run gdb after installing SuSE?

Posted on 2001-07-26
5
239 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I check if any IP address is available within a IP range I select ? 18 220
add some character at the end of line in vi 7 91
awk file 6 79
linux 13 76
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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