64位linux提示gnu/stubs-32.h:No such file or directory

来源:互联网 发布:yum nginx 安装 编辑:程序博客网 时间:2024/05/19 20:01

On Ubuntu it's called libc6-dev-i386 - do sudo apt-get install libc6-dev-i386. See below for extra instructions for Ubuntu 12.04.

On Red Hat distros, the package name is glibc-devel.i686 (Thanks to David Gardner's comment)

On CentOS 5.8, the package name is glibc-devel.i386 (Thanks to JimKleck's comment)

On CentOS 6 / 7, the package name is glibc-devel.i686.

On SLES it's called glibc-devel-32bit - do zypper in glibc-devel-32bit


Are you using Ubuntu 12.04? There is a known problem that puts the files in a non standard location. You'll also need to do:

export LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch)export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)export CPLUS_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)

somewhere before you build (say in your .bashrc).


If you are also compiling C++ code, you will also need the 32 bit stdc++ library. If you see this warning:

.... /usr/bin/ld: cannot find -lstdc++ ....

On Ubuntu you will need to do sudo apt-get install g++-multilib

On CentOS 5 you will need to do yum install libstdc++-devel.i386

On CentOS 6 you will need to do yum install libstdc++-devel.i686

阅读全文
'); })();
0 0
原创粉丝点击
热门IT博客
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 彩陶坊献礼版价格 彩陶坊酒 彩陶坊酒价格 彩陶坊五星地利 恋仲 仲怎么读 仲谋天下 仲星火 天不生仲尼万古长如夜 不分伯仲 仲读音 伯仲之间 仲村星虹 段仲仪将军真实简历 仲量联行 仲渊2鹰掠九天 仲景香菇酱 王平仲 仲秋什么意思 叶和欢郁仲骁第二部 仲博728567v 仲博app下载 仲博登录入口 仲博手机客户端下载 仲博账号注册 仲博手机客户端怎么注册 注册送钱 注册送28元 大众网站 德甲多少轮 诸侯快讯 优乐平台 菲华 钱柜999 趣赢 注册送18元 星际平台 优游平台 仲夏夜惊魂 仲夏夜