ubuntu出现configure: error: GNU awk is required for lib/memtype.h made by memtypes.awk.

问题log

/bin/sh: 3: autoreconf: not found
checking build system type... i686-pc-linux-uclibc
checking host system type... mips-ori-linux-gnu
checking target system type... mips-ori-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-ori-linux-strip... /projects/hnd/tools/rtl/msdk-4.4.7-mips-EL-3.10-u0.9.33-m32t-140827/bin/mips-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for perl... /usr/bin/perl
checking for gawk... not-in-PATH
configure: error: GNU awk is required for lib/memtype.h made by memtypes.awk.
BSD awk complains: awk: gensub doesn't support backreferences (subst "\1") 

make[3]: *** [configure] 错误 1

解决方案

安装如下软件包,指令如下

apt-get install gawk

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
这个错误提示出现是因为configure脚本无法在指定的路径中找到所需的源文件(include/features.h)。 通常情况下,这是由于开发环境缺少了必要的头文件或库文件导致的。为了解决这个问题,你可以尝试以下几个步骤: 1. 检查开发环境是否完整:确认所需的头文件和库文件是否已经正确地安装在了你的系统中。如果没有安装,你可以使用包管理器进行安装,例如apt、yum、brew等,或者从官方源代码库下载源代码手动编译安装。 2. 设置正确的路径:如果你已经安装了所需的依赖库,但是configure依然无法找到,那么可能是路径设置不正确。你可以通过设置CFLAGS和CPPFLAGS环境变量来指定头文件的搜索路径,例如: export CFLAGS=-I/path/to/include export CPPFLAGS=-I/path/to/include 3. 使用软链接:有时候,即使你的开发环境已经安装完整,并且路径也正确设置了,configure依然无法找到源文件。这时候你可以尝试创建一个软链接,将所需的头文件链接到configure可以找到的位置。 例如:ln -s /path/to/source/include/features.h /path/to/destination/include/features.h 4. 检查编译选项:在执行configure之前,可以查看它的帮助文档,了解是否有一些可用的选项供你配置。你可以尝试查看configure的--help选项获取更多信息。 希望以上解决方案能够帮助你解决configure: error: cannot find sources (include/features.h) in .. or ..的问题。如果问题仍然存在,建议你参考相关文档或者寻求更专业的技术支持来解决。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wellnw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值