public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc not properly installed - cannot find libraries
@ 2008-10-08 21:37 FlaDude1
  2008-10-09  0:33 ` Brian Dessent
  0 siblings, 1 reply; 13+ messages in thread
From: FlaDude1 @ 2008-10-08 21:37 UTC (permalink / raw)
  To: gcc-help


I need to get gcc working properly on a Red Hat Enterprise 5.2 server.  When
I type gcc --version I get:
GNU C version 4.1.2 20071124 (Red Hat 4.1.2-42) (x86_64-redhat-linux)
        compiled by GNU C version 4.1.2 20071124 (Red Hat 4.1.2-42).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

I don't think the proper libraries are installed and I don't know what
libraries are suppose to be installed.  When I type gcc -v I get this:
# gcc -v
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../
../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/include
End of search list.

When I try to compile a simple file (Hello World) this is what I get:
# gcc -o b.out test.c
test.c:1:22: error: stdio.h: No such file or directory
 main
Execution times (seconds)
 tree CFG cleanup      :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 (25%) wall
   0 kB ( 0%) ggc
 final                 :   0.01 (33%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall
   0 kB ( 0%) ggc
 TOTAL                 :   0.03             0.01             0.04
1834 kB

And the output b.out looks like this!
cat b.out
        .file   "test.c"
        .section        .rodata
.LC0:
        .string "Hello world"
        .text
.globl main
        .type   main, @function
main:
.LFB2:
        pushq   %rbp
.LCFI0:
        movq    %rsp, %rbp
.LCFI1:
        movl    $.LC0, %edi
        movl    $0, %eax
        call    print
        leave
        ret
.LFE2:
        .size   main, .-main
        .section        .eh_frame,"a",@progbits
.Lframe1:
        .long   .LECIE1-.LSCIE1
.LSCIE1:
        .long   0x0
        .byte   0x1
        .string "zR"
        .uleb128 0x1
        .sleb128 -8
        .byte   0x10
        .uleb128 0x1
        .byte   0x3
        .byte   0xc
        .uleb128 0x7
        .uleb128 0x8
        .byte   0x90
        .uleb128 0x1
        .align 8
.LECIE1:
.LSFDE1:
        .long   .LEFDE1-.LASFDE1
.LASFDE1:
        .long   .LASFDE1-.Lframe1
        .long   .LFB2
        .long   .LFE2-.LFB2
        .uleb128 0x0
        .byte   0x4
        .long   .LCFI0-.LFB2
        .byte   0xe
        .uleb128 0x10
        .byte   0x86
        .uleb128 0x2
        .byte   0x4
        .long   .LCFI1-.LCFI0
        .byte   0xd
        .uleb128 0x6
        .align 8
.LEFDE1:
        .ident  "GCC: (GNU) 4.1.2 20071124 (Red Hat 4.1.2-42)"
        .section        .note.GNU-stack,"",@progbits

Thanks
-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19888085.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-08 21:37 gcc not properly installed - cannot find libraries FlaDude1
@ 2008-10-09  0:33 ` Brian Dessent
  2008-10-09  1:54   ` FlaDude1
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Dessent @ 2008-10-09  0:33 UTC (permalink / raw)
  To: FlaDude1; +Cc: gcc-help

FlaDude1 wrote:

> When I try to compile a simple file (Hello World) this is what I get:
> # gcc -o b.out test.c
> test.c:1:22: error: stdio.h: No such file or directory

It seems like you installed the compiler but not the C library
development package.  stdio.h is part of the libc and isn't part of
gcc.  You probably want "yum install glibc-devel" or whatever your
distro has called the package.

Brian

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  0:33 ` Brian Dessent
@ 2008-10-09  1:54   ` FlaDude1
  2008-10-09  2:05     ` Brian Dessent
  0 siblings, 1 reply; 13+ messages in thread
From: FlaDude1 @ 2008-10-09  1:54 UTC (permalink / raw)
  To: gcc-help


When I check what glibc packages are installed I see this
# yum list all|grep glibc
glibc.i686                               2.5-24                 installed
glibc.x86_64                             2.5-24                 installed
glibc-common.x86_64                      2.5-24                 installed

And these are the available packages I can install. 
compat-glibc-2.3.4-2.26.i386.rpm
compat-glibc-2.3.4-2.26.x86_64.rpm
compat-glibc-headers-2.3.4-2.26.x86_64.rpm
glibc-2.5-24.i686.rpm
glibc-2.5-24.x86_64.rpm
glibc-common-2.5-24.x86_64.rpm
glibc-devel-2.5-24.i386.rpm
glibc-devel-2.5-24.x86_64.rpm
glibc-headers-2.5-24.x86_64.rpm
glibc-utils-2.5-24.x86_64.rpm

Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what is
already installed?
Thanks!



Brian Dessent wrote:
> 
> FlaDude1 wrote:
> 
>> When I try to compile a simple file (Hello World) this is what I get:
>> # gcc -o b.out test.c
>> test.c:1:22: error: stdio.h: No such file or directory
> 
> It seems like you installed the compiler but not the C library
> development package.  stdio.h is part of the libc and isn't part of
> gcc.  You probably want "yum install glibc-devel" or whatever your
> distro has called the package.
> 
> Brian
> 
> 

-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19890897.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  1:54   ` FlaDude1
@ 2008-10-09  2:05     ` Brian Dessent
  2008-10-09  2:16       ` FlaDude1
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Dessent @ 2008-10-09  2:05 UTC (permalink / raw)
  To: FlaDude1; +Cc: gcc-help

FlaDude1 wrote:

> When I check what glibc packages are installed I see this
> # yum list all|grep glibc
> glibc.i686                               2.5-24                 installed
> glibc.x86_64                             2.5-24                 installed
> glibc-common.x86_64                      2.5-24                 installed

These include the runtime support libraries, but not development files
(i.e. no headers.)

> Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
> glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what is
> already installed?

Just "yum install glibc-devel" and let yum resolve the dependencies,
that's its job.  Note that if you want to compile 32 bit code you'll
also need to "yum install glibc-devel.i386".

Brian

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  2:05     ` Brian Dessent
@ 2008-10-09  2:16       ` FlaDude1
  2008-10-09  2:20         ` Austin, Alex
  2008-10-09  2:24         ` Brian Dessent
  0 siblings, 2 replies; 13+ messages in thread
From: FlaDude1 @ 2008-10-09  2:16 UTC (permalink / raw)
  To: gcc-help




Brian Dessent wrote:
> 
> FlaDude1 wrote:
> 
>> When I check what glibc packages are installed I see this
>> # yum list all|grep glibc
>> glibc.i686                               2.5-24                 installed
>> glibc.x86_64                             2.5-24                 installed
>> glibc-common.x86_64                      2.5-24                 installed
> 
> These include the runtime support libraries, but not development files
> (i.e. no headers.)
> 
>> Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
>> glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what is
>> already installed?
> 
> Just "yum install glibc-devel" and let yum resolve the dependencies,
> that's its job.  Note that if you want to compile 32 bit code you'll
> also need to "yum install glibc-devel.i386".
> 
> Brian
> 
> 


So I first tried to install the glibc-devel and got dependency errors and
then tried the headers and got kernal header dependency errors!  Its not
looking good.  It looks like the kernal headers need to be updated.  

[root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Examining glibc-devel-2.5-24.x86_64.rpm: glibc-devel - 2.5-24.x86_64
Marking glibc-devel-2.5-24.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-24 set to be updated
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-24 for package: glibc-devel
--> Finished Dependency Resolution
Error: Missing Dependency: glibc-headers is needed by package glibc-devel
Error: Missing Dependency: glibc-headers = 2.5-24 is needed by package
glibc-dev
el
[root@uwdatlwbm01 Server]# yum install glibc-headers-2.5-24.x86_64.rpm
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Examining glibc-headers-2.5-24.x86_64.rpm: glibc-headers - 2.5-24.x86_64
Marking glibc-headers-2.5-24.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.5-24 set to be updated
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package:
glibc-headers
--> Finished Dependency Resolution
Error: Missing Dependency: kernel-headers is needed by package glibc-headers
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package
glibc-he
aders
-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891078.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: gcc not properly installed - cannot find libraries
  2008-10-09  2:16       ` FlaDude1
@ 2008-10-09  2:20         ` Austin, Alex
  2008-10-09  2:28           ` FlaDude1
  2008-10-09  2:24         ` Brian Dessent
  1 sibling, 1 reply; 13+ messages in thread
From: Austin, Alex @ 2008-10-09  2:20 UTC (permalink / raw)
  To: 'FlaDude1', gcc-help

Chances are, the easiest way to get going would be to install an IDE of some kind. Try:
# yum install anjuta
And see if all build dependencies are installed. I think they probably would be.
- Alex

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of FlaDude1
Sent: Wednesday, October 08, 2008 9:15 PM
To: gcc-help@gcc.gnu.org
Subject: Re: gcc not properly installed - cannot find libraries




Brian Dessent wrote:
>
> FlaDude1 wrote:
>
>> When I check what glibc packages are installed I see this
>> # yum list all|grep glibc
>> glibc.i686                               2.5-24                 installed
>> glibc.x86_64                             2.5-24                 installed
>> glibc-common.x86_64                      2.5-24                 installed
>
> These include the runtime support libraries, but not development files
> (i.e. no headers.)
>
>> Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
>> glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what is
>> already installed?
>
> Just "yum install glibc-devel" and let yum resolve the dependencies,
> that's its job.  Note that if you want to compile 32 bit code you'll
> also need to "yum install glibc-devel.i386".
>
> Brian
>
>


So I first tried to install the glibc-devel and got dependency errors and
then tried the headers and got kernal header dependency errors!  Its not
looking good.  It looks like the kernal headers need to be updated.

[root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Examining glibc-devel-2.5-24.x86_64.rpm: glibc-devel - 2.5-24.x86_64
Marking glibc-devel-2.5-24.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-24 set to be updated
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-24 for package: glibc-devel
--> Finished Dependency Resolution
Error: Missing Dependency: glibc-headers is needed by package glibc-devel
Error: Missing Dependency: glibc-headers = 2.5-24 is needed by package
glibc-dev
el
[root@uwdatlwbm01 Server]# yum install glibc-headers-2.5-24.x86_64.rpm
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Examining glibc-headers-2.5-24.x86_64.rpm: glibc-headers - 2.5-24.x86_64
Marking glibc-headers-2.5-24.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.5-24 set to be updated
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package:
glibc-headers
--> Finished Dependency Resolution
Error: Missing Dependency: kernel-headers is needed by package glibc-headers
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package
glibc-he
aders
--
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891078.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  2:16       ` FlaDude1
  2008-10-09  2:20         ` Austin, Alex
@ 2008-10-09  2:24         ` Brian Dessent
  2008-10-09  2:38           ` FlaDude1
  1 sibling, 1 reply; 13+ messages in thread
From: Brian Dessent @ 2008-10-09  2:24 UTC (permalink / raw)
  To: FlaDude1; +Cc: gcc-help

FlaDude1 wrote:

> [root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm

Please try just "yum install glibc-devel" without adding extra things.

Brian

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: gcc not properly installed - cannot find libraries
  2008-10-09  2:20         ` Austin, Alex
@ 2008-10-09  2:28           ` FlaDude1
  2008-10-09  2:30             ` Austin, Alex
  2008-10-09  8:54             ` Andrew Haley
  0 siblings, 2 replies; 13+ messages in thread
From: FlaDude1 @ 2008-10-09  2:28 UTC (permalink / raw)
  To: gcc-help




Alex Austin-3 wrote:
> 
> Chances are, the easiest way to get going would be to install an IDE of
> some kind. Try:
> # yum install anjuta
> And see if all build dependencies are installed. I think they probably
> would be.
> - Alex
> 
> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
> Behalf Of FlaDude1
> Sent: Wednesday, October 08, 2008 9:15 PM
> To: gcc-help@gcc.gnu.org
> Subject: Re: gcc not properly installed - cannot find libraries
> 
> 
> 
> 
> Brian Dessent wrote:
>>
>> FlaDude1 wrote:
>>
>>> When I check what glibc packages are installed I see this
>>> # yum list all|grep glibc
>>> glibc.i686                               2.5-24                
>>> installed
>>> glibc.x86_64                             2.5-24                
>>> installed
>>> glibc-common.x86_64                      2.5-24                
>>> installed
>>
>> These include the runtime support libraries, but not development files
>> (i.e. no headers.)
>>
>>> Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
>>> glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what
>>> is
>>> already installed?
>>
>> Just "yum install glibc-devel" and let yum resolve the dependencies,
>> that's its job.  Note that if you want to compile 32 bit code you'll
>> also need to "yum install glibc-devel.i386".
>>
>> Brian
>>
>>
> 
> 
> So I first tried to install the glibc-devel and got dependency errors and
> then tried the headers and got kernal header dependency errors!  Its not
> looking good.  It looks like the kernal headers need to be updated.
> 
> [root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
> Loading "rhnplugin" plugin
> Loading "security" plugin
> This system is not registered with RHN.
> RHN support will be disabled.
> Setting up Install Process
> Parsing package install arguments
> Examining glibc-devel-2.5-24.x86_64.rpm: glibc-devel - 2.5-24.x86_64
> Marking glibc-devel-2.5-24.x86_64.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package glibc-devel.x86_64 0:2.5-24 set to be updated
> --> Processing Dependency: glibc-headers for package: glibc-devel
> --> Processing Dependency: glibc-headers = 2.5-24 for package: glibc-devel
> --> Finished Dependency Resolution
> Error: Missing Dependency: glibc-headers is needed by package glibc-devel
> Error: Missing Dependency: glibc-headers = 2.5-24 is needed by package
> glibc-dev
> el
> [root@uwdatlwbm01 Server]# yum install glibc-headers-2.5-24.x86_64.rpm
> Loading "rhnplugin" plugin
> Loading "security" plugin
> This system is not registered with RHN.
> RHN support will be disabled.
> Setting up Install Process
> Parsing package install arguments
> Examining glibc-headers-2.5-24.x86_64.rpm: glibc-headers - 2.5-24.x86_64
> Marking glibc-headers-2.5-24.x86_64.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package glibc-headers.x86_64 0:2.5-24 set to be updated
> --> Processing Dependency: kernel-headers for package: glibc-headers
> --> Processing Dependency: kernel-headers >= 2.2.1 for package:
> glibc-headers
> --> Finished Dependency Resolution
> Error: Missing Dependency: kernel-headers is needed by package
> glibc-headers
> Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package
> glibc-he
> aders
> --
> View this message in context:
> http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891078.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
> 
> 
> 
I also see now that NO kernel headers are installed.
# ls *head*
compat-glibc-headers-2.3.4-2.26.x86_64.rpm
glibc-headers-2.5-24.x86_64.rpm
kernel-headers-2.6.18-92.el5.x86_64.rpm
readahead-1.3-7.el5.x86_64.rpm
# yum list all|grep headers
#
# yum -y info kernel-headers
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Error: No matching Packages to list

Should I install them?  Can it harm anything?
-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891187.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: gcc not properly installed - cannot find libraries
  2008-10-09  2:28           ` FlaDude1
@ 2008-10-09  2:30             ` Austin, Alex
  2008-10-09  8:54             ` Andrew Haley
  1 sibling, 0 replies; 13+ messages in thread
From: Austin, Alex @ 2008-10-09  2:30 UTC (permalink / raw)
  To: 'FlaDude1', gcc-help

Kernel headers are necessary for driver development. Otherwise, no need to install them.

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of FlaDude1
Sent: Wednesday, October 08, 2008 9:28 PM
To: gcc-help@gcc.gnu.org
Subject: RE: gcc not properly installed - cannot find libraries




Alex Austin-3 wrote:
>
> Chances are, the easiest way to get going would be to install an IDE of
> some kind. Try:
> # yum install anjuta
> And see if all build dependencies are installed. I think they probably
> would be.
> - Alex
>
> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
> Behalf Of FlaDude1
> Sent: Wednesday, October 08, 2008 9:15 PM
> To: gcc-help@gcc.gnu.org
> Subject: Re: gcc not properly installed - cannot find libraries
>
>
>
>
> Brian Dessent wrote:
>>
>> FlaDude1 wrote:
>>
>>> When I check what glibc packages are installed I see this
>>> # yum list all|grep glibc
>>> glibc.i686                               2.5-24
>>> installed
>>> glibc.x86_64                             2.5-24
>>> installed
>>> glibc-common.x86_64                      2.5-24
>>> installed
>>
>> These include the runtime support libraries, but not development files
>> (i.e. no headers.)
>>
>>> Should I install glibc-devel-2.5-24.x86_64.rpm?  What about
>>> glibc-headers-2.5-24.x86_64.rpm too?  Or are these installed with what
>>> is
>>> already installed?
>>
>> Just "yum install glibc-devel" and let yum resolve the dependencies,
>> that's its job.  Note that if you want to compile 32 bit code you'll
>> also need to "yum install glibc-devel.i386".
>>
>> Brian
>>
>>
>
>
> So I first tried to install the glibc-devel and got dependency errors and
> then tried the headers and got kernal header dependency errors!  Its not
> looking good.  It looks like the kernal headers need to be updated.
>
> [root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
> Loading "rhnplugin" plugin
> Loading "security" plugin
> This system is not registered with RHN.
> RHN support will be disabled.
> Setting up Install Process
> Parsing package install arguments
> Examining glibc-devel-2.5-24.x86_64.rpm: glibc-devel - 2.5-24.x86_64
> Marking glibc-devel-2.5-24.x86_64.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package glibc-devel.x86_64 0:2.5-24 set to be updated
> --> Processing Dependency: glibc-headers for package: glibc-devel
> --> Processing Dependency: glibc-headers = 2.5-24 for package: glibc-devel
> --> Finished Dependency Resolution
> Error: Missing Dependency: glibc-headers is needed by package glibc-devel
> Error: Missing Dependency: glibc-headers = 2.5-24 is needed by package
> glibc-dev
> el
> [root@uwdatlwbm01 Server]# yum install glibc-headers-2.5-24.x86_64.rpm
> Loading "rhnplugin" plugin
> Loading "security" plugin
> This system is not registered with RHN.
> RHN support will be disabled.
> Setting up Install Process
> Parsing package install arguments
> Examining glibc-headers-2.5-24.x86_64.rpm: glibc-headers - 2.5-24.x86_64
> Marking glibc-headers-2.5-24.x86_64.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package glibc-headers.x86_64 0:2.5-24 set to be updated
> --> Processing Dependency: kernel-headers for package: glibc-headers
> --> Processing Dependency: kernel-headers >= 2.2.1 for package:
> glibc-headers
> --> Finished Dependency Resolution
> Error: Missing Dependency: kernel-headers is needed by package
> glibc-headers
> Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package
> glibc-he
> aders
> --
> View this message in context:
> http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891078.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
>
>
>
I also see now that NO kernel headers are installed.
# ls *head*
compat-glibc-headers-2.3.4-2.26.x86_64.rpm
glibc-headers-2.5-24.x86_64.rpm
kernel-headers-2.6.18-92.el5.x86_64.rpm
readahead-1.3-7.el5.x86_64.rpm
# yum list all|grep headers
#
# yum -y info kernel-headers
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Error: No matching Packages to list

Should I install them?  Can it harm anything?
--
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891187.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  2:24         ` Brian Dessent
@ 2008-10-09  2:38           ` FlaDude1
  2008-10-09  2:40             ` Austin, Alex
  0 siblings, 1 reply; 13+ messages in thread
From: FlaDude1 @ 2008-10-09  2:38 UTC (permalink / raw)
  To: gcc-help


I tried this and got:
# yum install glibc-devel
Loading "rhnplugin" plugin
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package glibc-devel available.
Nothing to do
???


Brian Dessent wrote:
> 
> FlaDude1 wrote:
> 
>> [root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
> 
> Please try just "yum install glibc-devel" without adding extra things.
> 
> Brian
> 
> 

-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891263.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: gcc not properly installed - cannot find libraries
  2008-10-09  2:38           ` FlaDude1
@ 2008-10-09  2:40             ` Austin, Alex
  0 siblings, 0 replies; 13+ messages in thread
From: Austin, Alex @ 2008-10-09  2:40 UTC (permalink / raw)
  To: 'FlaDude1', gcc-help

In an earlier message, I think I saw something about the machine not being registered with RHN. If that's the case, you can't install anything.

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of FlaDude1
Sent: Wednesday, October 08, 2008 9:37 PM
To: gcc-help@gcc.gnu.org
Subject: Re: gcc not properly installed - cannot find libraries


I tried this and got:
# yum install glibc-devel
Loading "rhnplugin" plugin
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package glibc-devel available.
Nothing to do
???


Brian Dessent wrote:
>
> FlaDude1 wrote:
>
>> [root@uwdatlwbm01 Server]# yum install glibc-devel-2.5-24.x86_64.rpm
>
> Please try just "yum install glibc-devel" without adding extra things.
>
> Brian
>
>

--
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19891263.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  2:28           ` FlaDude1
  2008-10-09  2:30             ` Austin, Alex
@ 2008-10-09  8:54             ` Andrew Haley
  2008-10-09 21:50               ` FlaDude1
  1 sibling, 1 reply; 13+ messages in thread
From: Andrew Haley @ 2008-10-09  8:54 UTC (permalink / raw)
  To: FlaDude1; +Cc: gcc-help

FlaDude1 wrote:
> 

> # yum -y info kernel-headers
> Loading "rhnplugin" plugin
> Loading "security" plugin
> This system is not registered with RHN.
> RHN support will be disabled.

This is the core problem: your machine isn't registered with the
Red Hat Network server.  Run rhn_register.

Andrew.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: gcc not properly installed - cannot find libraries
  2008-10-09  8:54             ` Andrew Haley
@ 2008-10-09 21:50               ` FlaDude1
  0 siblings, 0 replies; 13+ messages in thread
From: FlaDude1 @ 2008-10-09 21:50 UTC (permalink / raw)
  To: gcc-help




Andrew Haley wrote:
> 
> FlaDude1 wrote:
>> 
> 
>> # yum -y info kernel-headers
>> Loading "rhnplugin" plugin
>> Loading "security" plugin
>> This system is not registered with RHN.
>> RHN support will be disabled.
> 
> This is the core problem: your machine isn't registered with the
> Red Hat Network server.  Run rhn_register.
> 
> Andrew.
> 
> 


You are right.  Once we get it registered we will retry it.  Until then gcc
is working fine on another server we have so we will do what we need on that
one and transfer the binaries.  I'm still curious to see if the compiler
will work after registration but without the c+ libraries.
Thanks


-- 
View this message in context: http://www.nabble.com/gcc-not-properly-installed---cannot-find-libraries-tp19888085p19908083.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-10-09 21:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08 21:37 gcc not properly installed - cannot find libraries FlaDude1
2008-10-09  0:33 ` Brian Dessent
2008-10-09  1:54   ` FlaDude1
2008-10-09  2:05     ` Brian Dessent
2008-10-09  2:16       ` FlaDude1
2008-10-09  2:20         ` Austin, Alex
2008-10-09  2:28           ` FlaDude1
2008-10-09  2:30             ` Austin, Alex
2008-10-09  8:54             ` Andrew Haley
2008-10-09 21:50               ` FlaDude1
2008-10-09  2:24         ` Brian Dessent
2008-10-09  2:38           ` FlaDude1
2008-10-09  2:40             ` Austin, Alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).