linux编译报错:/usr/include/c++/7/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
2024-08-17
63
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 bits/c++config.h
^~~~~~~~~~~~~~~~~~
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 bits/c++config.h
^~~~~~~~~~~~~~~~~~
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
更新于:3个月前赞一波!1
相关文章
- PHP 导出 Excel 报错: Formula Error: An unexpected error occurred
- VSCode 插件 Dyno File Utils 脱离鼠标管理文件
- MySQL5.7 中使用 group by 报错 this is incompatible with sql_mode=only_full_group_by
- linux中Qt工程编译报错: error: 找不到 -lGL
- PHP7.4命令行报错:VC运行库和PHP版本不兼容
- 打开vmware虚拟机报错—该虚拟机似乎正在使用中
- 前端请求PHP接口,报错跨域问题
- 如何判断file input的文件来自存储还是相机?
- Apache报错:无法使用可靠的服务器域名
- mysql报错xamp table 'pma__recent' is read only
- git config 配置提交人信息(用户名和邮箱)
- 浏览器报错 ERR_SSL_VERSION_OR_CIPHER_MISMATCH
- Linux下编译libxml源码时,报错:/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to '__open...
- Linux下编译libxml2的源码报错:you must specify a host type if you use `--no-verify'
- ENOENT: no such file or directory, lstat 'C:\Users\33612\AppData\Roaming\npm'
- vscode中通过ssh远程连接linux报错:Bad owner or permissions on C:\\Users\\用户名/.ssh/config
- Open SUSE Linux中编译内核模块报错
- Linux编译内核模块时报: linux/scripts/recordmcount: No such file or directory
- EF报错Win32Exception: 证书链是由不受信任的颁发机构颁发的。
- EF Core 8 (EF8) Contains报错:Microsoft.Data.SqlClient.SqlException (0x80131904): 关键字 'WITH' 附近有语法错误。
文章评论
评论问答