LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2006, 09:20 PM   #16
nick_suse_gnome
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0

it turns out gcc was installed, but i reinstalled it anyway.

running the which gcc and echo $PATH bring up this,

nick:/usr/local/wireless # which gcc
nick:/usr/local/wireless # echo $PATH
/home/Nick/bin:/usr/local/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/sbin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

so possibly the path is not correct?

thanks again!
 
Old 11-10-2006, 09:53 PM   #17
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Here is the result of which gcc on my machine.
Code:
andrew@localhost ~ $ which gcc
/usr/bin/gcc
If you get no output, gcc is not in your path. Try this
Code:
find / -name gcc
and see what that returns. I would expect to see gcc in /usr/bin. However, /usr/bin is the third entry in your path.
 
Old 11-11-2006, 06:47 AM   #18
my.dying.bride
LQ Newbie
 
Registered: Nov 2006
Distribution: Vector Soho Edition 5.1(Best yet)
Posts: 25

Rep: Reputation: 15
Quote:
Originally Posted by Emerson
Do you drink and drive around like crazy? Do you like when other guys do it? Hopefully not. Hopefully you understand it's dangerous and may cause huge financial losses. Running root all time means every piece of malicious code some website may execute in your PC will run with root rights. And turning your Linux box into a spam proxy is a piece of cake then. Do you know how much damage is caused by spammers every year, month, day?
This is why we do not like Windows users like you playing with Linux as root. (You do not qualify as Linux noob yet, noob knows the basics and tries to follow rules.) Drunken driver or irresponsible computer admin damage other people too, not only themselves.
Do not know what you qualify as. Obviously you dont know the basic, have no idea how unionfs, have not read my post properly, have not managed to understand I use my system as a desktop system and not a server and hence, using Squash filesystem the system files just cant be changed no matter what virus I get. I suggest you read through before you post your wisedom. And yes i will continue be root as I always am Admin in windows and I never get infected anyway. It is not a matter of being root or admin. It is a matter of knowing your system and knowing what is supposed to be running, what ports are allowed open etc. Rest my case

A little add for you Emerson. If all windows user used your policy, we all know that 90% of the virii would have died out. And believe me, i have done quite much windows programming and know a couple of flaws in it, but if MS manage to get the unix copied user policy workable in Vista, what will happen is unfortunately the opposite of what all linux fans seem to think. Vista will most likely become popular, because people prefer working 1 day extra at work earning 100$ for new equipment instead of working double to get the easiest task done in their linux. I suspect even Mac will suffer from a more secure Vista, (more secure simply since one is not root by default). But get this. I use linux because of all the troubles. Otherwise I would have bought Vista. Unfortunately I enjoy using those 20 hours extra. Running as ordinary user makes tweaking the system a bit more pain in the ass. And if people are not interested in tweaking and learning on a deeper level, I suggest they stick with windows , disabling the admin logon and log on as an ordinary windows user (or power user so you can adjust your clock aswell )

Last edited by my.dying.bride; 11-11-2006 at 06:59 AM.
 
Old 11-11-2006, 06:49 AM   #19
nick_suse_gnome
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Code:
nick:~ # ~ $ which gcc
-bash: /root: is a director
Code:
nick:~ # find / -name gcc
/usr/lib/gcc
find: /proc/3603/task: No such file or directory
find: /proc/3603/fd: No such file or directory
these are the results i get. it seems that gcc is installed to /usr/lib/gcc??
 
Old 11-11-2006, 11:40 AM   #20
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by nick_suse_gnome
these are the results i get. it seems that gcc is installed to /usr/lib/gcc??
No, you need the actual executable. It will be in a */bin, probably /usr/bin. /usr/lib/gcc is a directory (execute ls -l /usr/lib/gcc and you'll see). You need to install the gcc "program" in order to compile your program. I don't use SuSE so don't know anything about Yast. Look at the post by lbdgwgt above.

Last edited by weibullguy; 11-11-2006 at 12:49 PM.
 
  


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
Major problems installing tar.gz files Nitro Boy Linux - Newbie 9 07-21-2005 10:01 PM
Problems installing tar.gz files NomadABC Linux - Software 12 02-17-2005 05:11 PM
Compiling tar files xennetwork Linux - Newbie 2 01-26-2005 03:45 AM
compiling files from .tar.gz ungua Linux - Software 6 12-04-2004 01:34 PM
Problems with Tar.gz files Santorres Linux - Newbie 3 07-10-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 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