LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-04-2003, 10:21 AM   #1
Par4n0iA
Member
 
Registered: Jul 2003
Posts: 42

Rep: Reputation: 15
Gcc ?


hi, im working on RedHat 9.0 , and i type in the terminal:

gcc -o [after] [before].c

and it says that there is no such command. what's the command in RedHat 9.0 ?
 
Old 08-04-2003, 10:30 AM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Type this in console:
whereis gcc
This should give you location of this command. Usually its in /usr/bin/gcc
Just type the complete path while executing it and it should be fine.
Cool
 
Old 08-04-2003, 01:37 PM   #3
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
in redhat, lots of commands are "masked" for users other than a certain root. if you KNOW a command exists but bash is saying it doesn't, try "/sbin/command -blah --bilah-lahf". OR

you could "su -" (with the hyphen), and all commands should have the /sbin in front of them automatically (you still cant see it though)
 
Old 08-04-2003, 01:39 PM   #4
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
An alternative explanation is that you simply don't have gcc installed.

Regards
 
Old 08-04-2003, 05:43 PM   #5
Par4n0iA
Member
 
Registered: Jul 2003
Posts: 42

Original Poster
Rep: Reputation: 15
ohh thx i really did not had it and downloaded it from RH's ftp...
 
  


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
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

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

All times are GMT -5. The time now is 12:31 PM.

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