ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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).
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.