On Wed, Jun 19, 2002 at 07:41:52AM +0530, Dr. Sachin Kale wrote: > > I have come to conclusion that problem with gcc is more related to > path variable than apr-get, becasue it says g++ command not found, > when I logged in another user it said iostream not defined in same > scope, not only that as a root on dpkg -i libstdc++ it said ldconfig > not found, it should be on the PATH defned for root. I think I have > messed with path vatiable somehow, I dont know how to proceed, pls > give your valuable guidence ragarding this.. >
Normally, for most distros g++ is in /usr/bin, whereas ldconfig is in /sbin. Just do a 'echo $PATH' as an user (and root), and see if these directories are along the path. (Note: /sbin is on root path only).If the common paths are intact, problems may lie elsewhere. In case you find common dirs like /usr/bin, /usr/local/bin missing, you can add them through /etc/profile with a line like: # Add to the default system $PATH: PATH="$PATH:/usr/bin:/usr/local/bin" ... and so on It is possible that your gcc itself has been corrupted. See if g++ and the progs returning not found error are on your box: cd /usr find . -name g++* -print (and same for other commands) In case these are missing, you may have to re-install these packages all over again. I am not in a position to appreciate exactly where the problems may lie ... HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Pronouncing "LINUX" LOST #179 Well, it is something like "lih-nucks" .. You can hear it from the horse's mouth (Linus himself) pronounce it at: http://lost.sourceforge.net/linus_saying_linux.au ####<[EMAIL PROTECTED]>########################################## : ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
