网站首页 > 主流语言 > C/C#/C++ 正文
linux编译报错:/usr/include/c++/7/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
longtao100 2023-11-13 09:08:07 C/C#/C++ 12 ℃ 0 评论今天在Linux中编译C/C++的程序遇到如下错误:
make[3]: Leaving directory '/home/v2ray/lede/feeds/luci/applications/luci-app-upnp' time: package/feeds/luci/luci-app-upnp/compile#1.74#1.44#3.88 In file included from ../deps/v8/src/base/bits.h:9:0, from ../deps/v8/src/base/bits.cc:5: /usr/include/c++/7/type_traits:38:10: fatal error: bits/c++config.h: No such file or directory #include^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/7/stdlib.h:36:0, from ../deps/v8/include/v8-platform.h:10, from ../deps/v8/src/base/bounded-page-allocator.h:8, from ../deps/v8/src/base/bounded-page-allocator.cc:5: /usr/include/c++/7/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated.
解决方法:
命令行先输入 sudo apt-get update ,然后执行以下安装
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib linux-libc-dev:i386
或者直接先执行以下安装试试:
sudo apt-get install gcc-multilib g++-multilib
猜你喜欢
- 2023-11-13 dpkg: error processing package installed xxx package post-removal script subprocess returned...
- 2023-11-13 implicit declaration of function ‘kb_hit’
- 2023-11-13 linux shell的几种截取字符串的方法
- 2023-11-13 Linux sed命令关键字匹配文件中整行的任意字符然后替换整行
- 2023-11-13 Linux下执行的Shell脚本如何判断当前脚本执行是否有root权限
- 2023-11-13 linux的Shell脚本中如何判断某个命令是否存在
- 2023-11-13 Linux中date命令如何格式化输出需要的时间格式
- 2023-11-12 linux中USB设备的绑定和解绑(类似于Windows中disable和enable)
- 2023-11-12 Linux中通过命令连接指定WiFi
- 2023-11-12 Linux下不写驱动如何访问PCI/PCIe设备的内存空间
你 发表评论:
欢迎- 12-06如何自定义Excel2003散点图的数据标志
- 12-06excel2007的sheet不见了怎么办
- 12-06Excel2010中进行设置取消密码的操作方法
- 12-06excel怎样使用IMSUM函数
- 12-06EXCEL快速输入数据
- 12-06excel中设置次要坐标轴的教程
- 12-06excel2003冻结窗格的教程
- 12-06Excel如何输入上标下标
- 开源分类
- 最近发表
- 开源网标签
本文暂时没有评论,来添加一个吧(●'◡'●)