• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Why can't I run gdb after installing SuSE?

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
shanejin
Asked:
shanejin
  • 2
  • 2
1 Solution
 
mnashadkaCommented:
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
 
shanejinAuthor Commented:
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
 
mnashadkaCommented:
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
 
superschlonzCommented:
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
 
shanejinAuthor Commented:
Thank you, mnashadka.
And thank you too, superschlonz.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now