[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GCC and compiling software...



try adding the libstdc++ and libstdc++-devel packages from the cd using
rpm -Uvh <packagename> in /mnt/cdrom/RedHat/RPMS

Chris
--
 One world, one web, one program.
                            -- Microsoft Ad Campaign
 Ein Volk, ein Reich, ein Fuhrer.
                            -- Nazi Ad Campaign

     
On Fri, 9 Jul 1999, William Kirkpatrick wrote:

>I have been unable to compile anything on my Red-hat 6.0 system.
>it seems as if there are files missing, but they are there.
>
>I tried to reinstall GCC, but it comes in source form and I can't compile
>it. (chicken and egg!)
>
>I though it was apache at first, but I have tried simple packages,
>like the hello-1.3 packages. I figured it would be simple enough.
>I got it from gnu.org.
>
>I am a little confused on how the file is in the right spot,
>and the error message says it can't find it at where it is.
>
>I unpacked the sources and did the following.....
>
>[hello-1.3]$ configure
>checking for gcc
>checking how to run the C preprocessor
>checking for install
>checking for ANSI C header files
>checking for string.h
>checking for fcntl.h
>checking for sys/file.h
>checking for working alloca.h
>checking for alloca
>creating config.status
>creating Makefile
>
>[hello-1.3]$ make
>gcc -c  -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1
>-DHAVE_SYS_FILE_H=1
>-DHAVE_ALLOCA_H=1 -g hello.c
>In file included from /usr/include/bits/errno.h:25,
>                 from /usr/include/errno.h:36,
>                 from hello.c:27:
>/usr/include/linux/errno.h:4: asm/errno.h: No such file or directory
>make: *** [hello.o] Error 1
>
>[hello-1.3]$ ls -l /usr/include/linux/errno.h
>-rw-r--r--   1 root   root       305 Jun 12  1997
>/usr/include/linux/errno.h
>
>[hello-1.3]$ ls -l /usr/include/bits/errno.h
>-rw-r--r--   1 root   root      2283 Apr 16 18:48
>/usr/include/bits/errno.h
>
>[hello-1.3]$ ls -l /usr/include/errno.h
>-rw-r--r--   1 root   root      2481 Apr 16 18:48 /usr/include/errno.h
>
>[hello-1.3]$ locate asm/errno.h
>/usr/i386-glibc20-linux/include/asm/errno.h
>
>What am I missing here?
>
>I am running:
>Red Hat Linux release 6.0 (Hedwig) Kernel 2.2.5-15 on an i586
>Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
>Any and all help greatly appreciated!
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>		http://www.redhat.com http://archive.redhat.com
>         To unsubscribe: mail redhat-install-list-request redhat com with 
>                       "unsubscribe" as the Subject.
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]