Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Why can't I run gdb after installing SuSE?

Posted on 2001-07-26
5
Medium Priority
?
273 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 200 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

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.

Question has a verified solution.

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

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…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

972 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