LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum install gcc problem (https://www.linuxquestions.org/questions/linux-newbie-8/yum-install-gcc-problem-276557/)

malibuguy 01-11-2005 12:10 PM

yum install gcc problem
 
Hello folks,

I am new to linux, i want to install gcc on Fedora Core2, I ran the yum install gcc command and it downloaded a bunch of updates and the command ended with:
Code:

kdemultimedia-devel-6-3.2 100% |=========================| 6.1 kB   
00:00
samba-swat-0-3.0.10-1.fc2 100% |=========================|  25 kB   
00:02
flim-xemacs-0-1.14.7-0.FC 100% |=========================| 4.5 kB   
00:00
xorg-x11-xdm-0-6.7.0-11.i 100% |=========================|  71 kB   
00:04
gstreamer-plugins-devel-0 100% |=========================| 4.9 kB   
00:00
kde-i18n-Norwegian-Nynors 100% |=========================|  18 kB   
00:01
GConf2-devel-0-2.6.0-7.i3 100% |=========================| 5.0 kB   
00:00
libxml2-devel-0-2.6.16-2. 100% |=========================|  14 kB   
00:01
xorg-x11-ISO8859-2-100dpi 100% |=========================|  76 kB   
00:04
perl-TimeDate-1-1.16-1.no 100% |=========================| 2.9 kB   
00:00
kde-i18n-Korean-1-3.2.2-2 100% |=========================|  11 kB   
00:00
libgnomeprint15-1-0.37-9. 100% |=========================| 3.9 kB   
00:00
Resolving dependencies
Damaged Header
/var/cache/yum/updates-released/headers/kernel-0-2.6.10-1.8_FC2.i686.hdr
Bad Header for pkg kernel.i686 trying to get headers for the nevral -
exiting
[root@losangles mike]#

Somthing about bad header, did the C compiler install? How do I check. Are there are other ways of installing the compiler? Should I reinstall the OS? Which package should I use to make sure the C compiler is install?

Would appreciate your help.
Mike

sludink 01-15-2005 06:11 PM

To check if the C compiler did install, get a prompt (xterm fine), and use:

$gcc --help
If you get multiple lines of help output, the install is fine.

There are other ways to install the compiler, manually for example.
But your problem looks like some kernel problem to me, since there's being complained about missing kernel-headers.

In any case, I'm more than 90% sure you shouldn't reinstall the whole OS, I think you just have to 'reyum' a package called something like kernel-headers (but I don't know exactly what yum is, and know less about Fedora than you).

Manually installation requires to goto
http://gcc.gnu.org/
Download the source code, unpack it, configure it, compile it, install it in the right place (not much work, but greater hassle than use of packages).


All times are GMT -5. The time now is 01:03 AM.