Node.js fatal error: bits/c++config.h: No such file or directory

ubuntu 64位 编译 32位的软件报错,缺少"bits/c++config.h"

http://stackoverflow.com/questions/4643197/missing-include-bits-cconfig-h-when-cross-compiling-64-bit-program-on-32-bit




sudo  apt-get  install   gcc-4.6-multilib     g++-4.6-multilib

或者

sudo  apt-get  install   gcc-4.7-multilib     g++-4.7-multilib





/usr/include/c++/4.6/x86_64-linux-gnu/32/bits/c++config.h             //32位系统
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h                 //64位系统



64位的Makefile 

-I/usr/include/c++/4.6/x86_64-linux-gnu

你可能感兴趣的:(Node.js fatal error: bits/c++config.h: No such file or directory)