LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2004, 05:31 PM   #1
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Rep: Reputation: 15
ddd Debugger


I just started Sams Teach Yourself C for Linux Programming. I need something called a ddd Debugger. I went to the GNU web page but don't know what I'm looking at. I would like the debugger but am going to need somebody to walk me through the install. All help will be appreciated. I'm using slackware 9.1 and the vi editor. Thank you--lmellen
 
Old 01-25-2004, 06:18 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Data Display Debugger (ddd) is a graphical front end for gdb and other command line debuggers. Freshmeat.net has it. There should be directions that come with the package on how to install it. Most likely all you have to do is uncompress it (tar -xzvf packagename), configure it (./configure), make it (make), and then install it (su root, make install).
 
Old 01-25-2004, 09:05 PM   #3
wallison
Member
 
Registered: Jul 2003
Location: MD USA
Distribution: Slackware
Posts: 137

Rep: Reputation: 18
I'm about to start that book too! DDD 3.3.8 compiled just fine on my Slackware 9.1 box. Good luck to you in your endeavor.
 
Old 01-26-2004, 11:37 AM   #4
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
I have ddd-3.3.8. tar.gz in my root directory.
I use tar -xzvf ddd-3.3.8.tar.gz to extract it.
I now have ddd-3.3.8.tar.gz & ddd-3.3.8/ in my root directory.
Next step is ./configure. Configure what? Everytime I try ./configure I get ddd... is a directory? I could use some more help! Thank you --Larry
 
Old 01-26-2004, 11:41 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
go into the ddd-3.3.8 directory

type ./configure
if that doesn't have any errors type make
then type make install

You have to be root to do the make install part.
 
Old 01-26-2004, 12:44 PM   #6
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Jtshaw- Thanks for the assistance! ddd works fine!

Quick question-- I thought I had a problem, kept getting error message:
"Error: Can't open display. I've been working in text mode, at command
line. Tried ddd in terminal window in xwindows, worked fine.
Do you have to be in xwindows for ddd to work?
Again Thanks for the help!--Larry

Last edited by lmellen; 01-26-2004 at 01:12 PM.
 
Old 01-26-2004, 01:07 PM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ya, you have to run the program as the user whom the x display belongs to. For instance, if I am logged into my machine as jshaw and I bring up a console in x and su to root I can't run graphical programs as root. But if I just open a console and run the program without suing to anyone else I can run it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux debugger: DDD on solaris kranti Linux - Newbie 1 11-19-2005 03:51 PM
String variables in DDD Qt debugger impeteperry Linux - Software 0 06-12-2005 07:57 AM
Ddd Zarnce Slackware 1 07-05-2003 10:02 PM
ddd Tommi Linux - Hardware 0 07-04-2003 12:49 PM
ddd debugger jclark00001 Linux - Software 1 06-23-2003 11:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration