LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-16-2007, 01:29 AM   #1
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Rep: Reputation: 15
Thumbs up gcc : command not found


Hi all ,
After installing Fedora core 7 , when i used gcc command then it is
giving error as gcc : command not found !
what to do ?

Last edited by PankajDS; 10-16-2007 at 01:25 PM.
 
Old 10-16-2007, 01:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
please do not ask for private replies.. why would you do that on a public and voluntary forum??

so in public... gcc wasn't' isntalled by defult. install it with "yum install gcc" or use the software installation tools in the menu to install it.
 
Old 10-16-2007, 02:00 AM   #3
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Thank you, Sir
 
Old 10-16-2007, 02:01 AM   #4
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
gcc : command not found

Quote:
Originally Posted by PankajDS View Post
Thank you, Sir
I am new to LinuxQuestionsForums
Sorry for that !
 
Old 10-16-2007, 02:02 AM   #5
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Smile ;

Quote:
Originally Posted by PankajDS View Post
I am new to LinuxQuestionsForums
Sorry for that !
Thanks Once again sir !
 
Old 10-16-2007, 06:57 AM   #6
slimon
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Thank you,
 
Old 10-16-2007, 01:25 PM   #7
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
gcc : command not found

Still facing problem !
give solution plz
 
Old 10-16-2007, 01:34 PM   #8
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
I have tried to install gcc from DVD by just double clicking on gcc...
packages, then it is giving error.
Even , with the solution mention above as ' yum install gcc '
the error occurs
 
Old 10-16-2007, 02:02 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you said "thankyou" 3 times no less... normally suggests you got it working... very odd...

what happened when you ran "yum install gcc" then? if it worked, gcc would be there. you need to actually provide real error messages and such like if you want real help.
 
Old 10-16-2007, 11:52 PM   #10
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by acid_kewpie View Post
you said "thankyou" 3 times no less... normally suggests you got it working... very odd...

what happened when you ran "yum install gcc" then? if it worked, gcc would be there. you need to actually provide real error messages and such like if you want real help.
I had said thank you , because you reply to me, which is 1st for me on LinuxQuestions.org

I had said sorry, for mentioning my personal E-mail id in query.




Forget about these Thank u, sorry, all that...........



I really facing problem with gcc.........

as u have mentioned of "yum install gcc", i run it on terminal , then it was downloading from net some patches (i think so) showing
% sign of download......as .....

----------------------------------------------------------------------
[root@localhost ~]# yum install gcc
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
ftp://ftp.oss.eznetsols.org/linux/fe...ry.sqlite.bz2: [Errno 4] IOError: [Errno ftp error] 27 Entering Passive Mode (2202,79,178,98,204,125.
Trying other mirror.
primary.sqlite.bz2 100% |=========================| 1.7 MB 02:18
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-27.fc7 set to be updated
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Processing Dependency: libgomp = 4.1.2-27.fc7 for package: gcc
--> Processing Dependency: cpp = 4.1.2-27.fc7 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-27.fc7 for package: gcc
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libgomp.i386 0:4.1.2-27.fc7 set to be updated
filelists.sqlite.bz2 100% |=========================| 4.0 MB 05:52
---> Package libgcc.i386 0:4.1.2-27.fc7 set to be updated
---> Package cpp.i386 0:4.1.2-27.fc7 set to be updated
---> Package glibc-devel.i386 0:2.6-4 set to be updated
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.6-4 for package: glibc-devel
--> Processing Dependency: glibc = 2.6-4 for package: glibc-devel
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package glibc.i686 0:2.6-4 set to be updated
---> Package glibc-headers.i386 0:2.6-4 set to be updated
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Processing Dependency: glibc-common = 2.6-4 for package: glibc
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package glibc-common.i386 0:2.6-4 set to be updated
---> Package kernel-headers.i386 0:2.6.22.9-91.fc7 set to be updated

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gcc i386 4.1.2-27.fc7 updates 5.2 M
Installing for dependencies:
glibc-devel i386 2.6-4 updates 2.0 M
glibc-headers i386 2.6-4 updates 612 k
kernel-headers i386 2.6.22.9-91.fc7 updates 647 k
Updating for dependencies:
cpp i386 4.1.2-27.fc7 updates 2.6 M
glibc i686 2.6-4 updates 5.3 M
glibc-common i386 2.6-4 updates 18 M
libgcc i386 4.1.2-27.fc7 updates 92 k
libgomp i386 4.1.2-27.fc7 updates 81 k

Transaction Summary
=============================================================================
Install 4 Package(s)
Update 5 Package(s)
Remove 0 Package(s)

Total download size: 34 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): glibc-common-2.6-4 100% |=========================| 152 kB 00:41
ftp://ftp.linux.org.tr/pub/fedora/li....6-4.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.


------------------------------------------------------------------------





It took about 1hr to come back to prompt.

After every 100% install,message on prompt is Trying other mirror,
I dont know what is going on......
plz help.....
 
Old 10-17-2007, 01:43 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
ok, that is odd... you're getting connectivity to some yum sites, but not others... maybe a dodgy internet connection?

i would suggest just trying again. with each file you download, you'll not need to download it again. all those pacakges should be directly available here, so even if yum is being strange you can just download them yourself... ftp://ftp.linux.org.tr/pub/fedora/linux/updates/7/i386/ once you've got them, and assuming you have no other rpm files in the directory you downloaded them to, run "rpm -Uvh *.rpm" and that'll get the job done.
 
Old 10-17-2007, 05:42 AM   #12
linux4begin
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu,RedHat,Suse Linux,DEBIAN.
Posts: 17
Blog Entries: 1

Rep: Reputation: 0
Smile which type of installation method you had used?

Dear Pankaj,

can you tell us, that which kind of installation method you had used?
from dvd?

and had you selected the packages for the same?

some times due to bad media from cdrom or from dvd, it was not installing.

so my wish is, you again try from another dvd or just try to update from existing dvd.

or if you are in network then try to do ftp or pxe installation.
try to update with your try.
 
Old 10-17-2007, 11:08 PM   #13
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by acid_kewpie View Post
ok, that is odd... you're getting connectivity to some yum sites, but not others... maybe a dodgy internet connection?

i would suggest just trying again. with each file you download, you'll not need to download it again. all those pacakges should be directly available here, so even if yum is being strange you can just download them yourself... ftp://ftp.linux.org.tr/pub/fedora/linux/updates/7/i386/ once you've got them, and assuming you have no other rpm files in the directory you downloaded them to, run "rpm -Uvh *.rpm" and that'll get the job done.
It is still giving Error.
I download the 'gcc-4.1.2-27.fc7.i386.rmp' from the link u had suggest.
Then placed it in Desktop of Pankaj LogIn.
Then i loged In root.
cd path/to/Desktop
then run rpm -Uvh *.rpm

-------------------------------------------------
[root@localhost ~]# cd /home
[root@localhost home]# cd Pankaj
[root@localhost Pankaj]# cd Desktop
[root@localhost Desktop]# rpm -Uvh *.rpm
warning: gcc-4.1.2-27.fc7.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cpp = 4.1.2-27.fc7 is needed by gcc-4.1.2-27.fc7.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-27.fc7.i386
libgcc >= 4.1.2-27.fc7 is needed by gcc-4.1.2-27.fc7.i386
libgomp = 4.1.2-27.fc7 is needed by gcc-4.1.2-27.fc7.i386
[root@localhost Desktop]#
---------------------------------------------------
 
Old 10-18-2007, 02:57 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
as above, you need to download *all* those packages.
 
Old 10-18-2007, 02:07 PM   #15
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by acid_kewpie View Post
as above, you need to download *all* those packages.
I have formated my PC again,
Using Custom Format I select all the options mention there.
Now gcc is not giving error.......
Thank You Sir for your kind attention towards my Query...........
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc: command not found tds2000_us Fedora 1 08-03-2006 08:02 AM
gcc: Command not found Lastomega Linux - Newbie 12 03-31-2006 10:28 PM
make fail with: gcc-3.4 command not found andy101 Ubuntu 3 11-27-2005 01:45 AM
makefile gcc command cannot be found Mogul83 Programming 7 05-31-2005 03:11 AM
bash: gcc: command not found sandbag Linux - Software 8 05-05-2005 12:17 PM


All times are GMT -5. The time now is 11:30 PM.

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