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.