LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-06-2004, 03:19 PM   #1
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Rep: Reputation: 15
cannot use gcc even though it's installed.


I have GCC on my debian machine and I'd like to use it for a programming course I'm taking. typing gcc or g++ does not work and when I try a search for them, I get nothing, even as root. What do I need to do?
 
Old 09-06-2004, 03:36 PM   #2
emmkay
LQ Newbie
 
Registered: Aug 2004
Location: Edinburgh
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Hmm... strange. gcc is in the gcc package I have, in /usr/bin/gcc. As for g++, do you have the g++ package installed?

$ dpkg -l g++
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii g++ 3.3.4-2 The GNU C++ compiler
 
Old 09-07-2004, 08:48 PM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
do

Code:
whereis gcc
it should be in "/usr/bin." you could try "/usr/bin/gcc" to invoke it. if that doesn't work, gcc is not installed, so install it.

Code:
su -c "apt-get install gcc g++"
 
  


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
can't get GCC installed Skaan Linux - Newbie 2 05-26-2005 10:21 AM
Installed GCC, but not working rangalo Linux - Software 2 02-02-2005 01:21 PM
Installed gcc, g++ still problemmmmmmmm alirezan1 Linux - Newbie 2 11-24-2004 01:08 AM
What gcc do I have installed? Thaidog Linux - Newbie 2 09-27-2004 08:11 PM
cc/gcc not installed...and how to install sfingerh Linux - Software 3 07-27-2002 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:42 AM.

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