I'm building 32 bit boost thread libraries on 32 bit Ubuntu 12.10. When building I get the error
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
I googled the problem and from reading this question it seems I need to install libc6-dev-i386. However, when I run sudo apt-get install libc6-dev-i386
I get:
Package libc6-dev-i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libc6-dev-i386' has no installation candidate
Can anyone help me to locate this package?
Edit, more info:
I'm not sure if this is relevant, but uname -m -p -i
gives i686 i686 i686
.
ls /usr/include/gnu/
gives libc-version.h lib-names.h option-groups.h stubs-64.h stubs.h
.
ls /usr/include/i386-linux-gnu/gnu
gives libc-version.h lib-names.h option-groups.h stubs-32.h stubs.h
.
I added /usr/include/i386-linux-gnu
to $PATH
but it didn't help, I still get the same error when trying to build the 32 bit boost thread libraries.
More info:
I've now tried this with Ubuntu 12.04 and I'm getting exactly the same behaviour. With this install uname -i
gives i386
.
sudo apt-get update
before? – guntbert Jan 22 '13 at 21:27sudo apt-get install libc6-dev libc6-dev-i386
– Jul 08 '14 at 11:16