≡ Menu

GCC: Linux gnu/stubs-32.h: No such file or directory

I have Debian / Ubuntu Linux. I need to compile software written in C. The gcc throwing an error that read as follows:

gnu/stubs-32.h: No such file or directory compilation terminated. make: *** [foo.o] Error 1

How do I fix this problem under Debian or Ubuntu Linux 64 bit system and compile apps using gcc compiler?


You need 32bit embedded GNU C Library. This incldes development Libraries, header files, contains the symlinks, headers, and object files needed to compile and link programs which use the standard C library.

Fix for Debian Linux

Type the following command:
$ sudo apt-get install libc6-dev

Fix for Ubuntu Linux

Type the following command:
$ sudo apt-get install libc6-dev-i386

Fix for OpenSUSE / Novell Suse Linux (SLES)

Type the following command:
# zypper in glibc-devel-32bit

Fix for RHEL / Fedora / CentOS / Scientific Linux

Type the following yum command to install glibc package:
# yum install glibc-devel.i686

Sysadmin because even developers need heroes!!!

Share this tutorial on:
{ 1 comment… add one }
  • Shantanu Gadgil March 19, 2013, 10:44 am

    Hi,
    What’s embedded about this?
    I just thought of it/them as “32bit development packages” (headers and stuff)

    Regards,
    Shantanu

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , ,