Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to install GCC 4.6.3 on Fedora 18.

I was following the instructions provided by Lars Rohrbach. When I run make, I get the error

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.

I read online that this is because of a missing library glibc, however glibc already is installed on my computer.

yum install glibc
Loaded plugins: langpacks, presto, refresh-packagekit
Package glibc-2.16-28.fc18.x86_64 already installed and latest version
Nothing to do

(Earlier I was experiencing a similar error when installing a program that required zlib and zlib also already exists.)

Can someone please help me successfully install gcc 4.6.3? Thank you.

share|improve this question
1  
Why do you need the older version of GCC? –  Ignacio Vazquez-Abrams Jan 17 '13 at 19:53
1  
Also, glib != glibc. –  Ignacio Vazquez-Abrams Jan 17 '13 at 19:53
    
Looks like you're missing a 32-bit header. I think you want the package glibc-devel.i686. –  Renan Jan 17 '13 at 20:26
    
Sorry, I meant glibc. I need an older version of gcc to build code.google.com/p/ibamr I have existing code that works only with gcc 4.6.3. –  namu Jan 17 '13 at 23:22
    
Better port the code forward. –  vonbrand Jan 24 '13 at 23:19

1 Answer 1

up vote 2 down vote accepted

From this answer at Stack Overflow:

You're missing the 32 bit libc dev package:

On Red Hat distros, the package name is glibc-devel.i686.

Probably in Fedora it's the same package name. This also confirms this:

[root at prophead ~]# rpm --qf %{NAME}-%{ARCH}\\n -qf /usr/include/gnu/stubs-64.h
glibc-devel-x86_64
[root at prophead ~]# rpm --qf %{NAME}-%{ARCH}\\n -qf /usr/include/gnu/stubs-32.h
glibc-devel-i686
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.