linux下安装python模块pycrypto.2.6.1失败/configure: error: "/lib/cpp" fails sanity check ...

 /configure: error: "/lib/cpp" fails sanity check ...

查看config.log

usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file

n file included from /usr/include/bits/errno.h:25,

             from /usr/include/errno.h:36,

             from ../.././gcc/tsystem.h:96,

             from ../.././gcc/crtstuff.c:68:

/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory

解决:

可知/usr/include/linux不存在,原因是内核没有指定

可自行下载该路径下的linux文件夹放入,后创建软连接指向

创建软连接

你可能感兴趣的:(linux下安装python模块pycrypto.2.6.1失败/configure: error: "/lib/cpp" fails sanity check ...)