LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-10-2009, 03:04 AM   #1
ratuma2009
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
c compiler in Fedora 8


Hi, Everyone:

WHen I try to install some program, linux complains:
" make: command not found".

I then dowload "make-3.80"
When I try to configure it, linux complains:
"erro: no acceptable c compiler found in $PATH"

I then ask whereis gcc
"gcc: /usr/libexec/gcc"

which gcc:
"/usr/bin/which: no gcc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin/:/bin:/usr/X11R6/bin:/home/Yang/bin)

I am confused if the systam has a "c compiler" or not?
If c compiler is in the system, why configure not work?

Thank you very much for your advices

Bo
 
Old 01-10-2009, 05:42 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Open your terminal
Become root (su)
type: yum install gcc
 
Old 01-10-2009, 07:53 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Suggest : Also install make and related packages with yum.

# yum install make m4 autoconf automake libtool gcc-c++
 
Old 01-10-2009, 08:07 PM   #4
ratuma2009
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you very much for your suggestion.

My problem is that the PC does not have a internet connection. "yum" will not work without the internet.

In such case, could you suggest me where and which file to be download, and how to install them in the Linux. There are some gcc but I don't know which one is for Fedora 8.

Thank you for your help

Bo
 
Old 01-11-2009, 03:06 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The Fedora 8 'gcc' is 'gcc-4.1.2-33.i386.rpm'
'c++' = g++ is 'gcc-c++-4.1.2-33.i386.rpm'
Other packages : make m4 autoconf automake libtool
libstdc++-devel-4.1.2-33.i386.rpm

Fedora 8 packages :
http://download.fedora.redhat.com/pu...6/os/Packages/

These are the 1,983 packages also included
on the Fedora 8 install DVD.

Good Luck.

Last edited by knudfl; 01-11-2009 at 04:55 AM.
 
Old 01-12-2009, 01:22 AM   #6
ratuma2009
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for your suggestion.

I downlaoded the "gcc-4.1.2-33.i386.rpm" and "gcc-c++-4.1.2-33.i386.rpm" and try to install to my PC. But Linux complains:

[Yang@localhost Linux]$ su
Password:
[root@localhost Linux]# rpm -Uvh gcc-4.1.2-33.i386.rpm
warning: gcc-4.1.2-33.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
binutils >= 2.17.50.0.17-3 is needed by gcc-4.1.2-33.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-33.i386
libgomp = 4.1.2-33 is needed by gcc-4.1.2-33.i386
libgomp.so.1 is needed by gcc-4.1.2-33.i386
[root@localhost Linux]# rpm -Uvh gcc-c++-4.1.2-33.i386.rpm
warning: gcc-c++-4.1.2-33.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
gcc = 4.1.2-33 is needed by gcc-c++-4.1.2-33.i386
libstdc++-devel = 4.1.2-33 is needed by gcc-c++-4.1.2-33.i386
[root@localhost Linux]#

I then check the system:

Yang@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux
[Yang@localhost ~]$ gcc --vision
bash: gcc: command not found

What could be wrong?

Thank you for your advice

Bo
 
Old 01-12-2009, 03:43 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
What could be wrong?
Probably nothing. You just need them all !

Some of them have interdependencies, so instead of finding
a certain order, I suggest doing a "chain install" :

# 'rpm -Uvh package package package package package .... '
( or place all packages in a new empty folder and do
# 'rpm -Uvh *.rpm'

Good luck.
 
Old 01-12-2009, 04:45 AM   #8
ratuma2009
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you very much!

Got the packaged installed.

Cheers

Bo
 
Old 02-09-2009, 08:21 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Just for completeness, another 12,000 Fedora 8 packages

http://download.fedora.redhat.com/pu...6/os/Packages/

Last edited by knudfl; 02-09-2009 at 12:29 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
problem with intel 11.0 c++ compiler in fedora 8 mail2sud Linux - Newbie 13 12-31-2008 06:15 AM
c/c++ compiler Fedora justaguy_75ae Programming 1 05-26-2008 12:43 AM
There is no compiler in my Fedora somiadventure Fedora 3 05-21-2008 07:31 AM
Gnu Compiler On Fedora 2/3 borisc General 1 02-04-2005 06:49 PM
C Compiler problems in Fedora 2 Core jabber4dummies Linux - Newbie 2 08-25-2004 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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