LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-16-2006, 12:25 AM   #1
hiimsa
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
gcc is not found in path


hi all,

iam using debian customized version . in thiis when i write gcc on command line it gives me error " command not found" but when i check the package installation , gcc is installed in my system but i doesnt get the path .


what to do ...... any ide a
 
Old 11-16-2006, 05:55 AM   #2
bhert
Member
 
Registered: May 2006
Distribution: OpenSUSE 10.3 Kubuntu Hardy Heron
Posts: 268

Rep: Reputation: 30
It is probably because you don't have the path to the libraries.
open up /etc/ld.so.conf with an editor and add something like /usr/lib , /usr/local/lib or wherever the libraries are at for your distro then
type ldconfig at the console

Hope I am right

-bhert
 
Old 11-16-2006, 01:17 PM   #3
GNUlancer
Member
 
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59

Rep: Reputation: 15
To add gcc to your PATH, find it (find / -name gcc*), and add it's containing directory to your shell PATH in /etc/profile
 
Old 11-16-2006, 02:26 PM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 13.1,12.1,12.2; Debian Sqeeze; Centos 5,6
Posts: 253

Rep: Reputation: 34
You could also just type whereis gcc. Make sure the indicated library is in your path.
 
Old 11-17-2006, 04:24 AM   #5
hiimsa
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thanks all of you

Quote:
Originally Posted by apolinsky
You could also just type whereis gcc. Make sure the indicated library is in your path.
thanks for you kind help

i hope in future u also get back for my questiones.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[FC5 - gcc install] error:no acceptable cc found in $PATH lachesis Linux - Newbie 3 09-25-2006 08:10 AM
gcc vs. g++ -> iostream lib found vs. not found CooManChu Linux - General 1 12-11-2004 09:20 AM
Gcc not found in the $PATH redrobin77 Linux - Software 3 01-12-2004 11:08 AM
gcc path problem lonzilla1969 Linux - Newbie 2 09-09-2003 02:23 PM
please help - cannot find gcc in path mchao Linux - General 9 02-14-2002 09:49 AM


All times are GMT -5. The time now is 07:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration