您尚未登录。

楼主 # 2025-05-10 18:24:44

willX
会员
注册时间: 2019-09-06
已发帖子: 48
积分: 33

buildroot使能busybox的grep指令,出现pcre异常

最近在f1c200s上调整busybox工具,添加了grep指令,使用buildroot的配置使能grep,但是在编译后buildroot报告pcre_compile异常。
敢问路过的仁人志士,类似的情况有遇到过吗?
     现在尝试的方法是,在ubuntu上安装了pcre和pcre2环境,无效。
     也尝试过在busybox工具配置里也同时使能pcre,无效。

grep报错.png

checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for stdint.h... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether closedir returns void... yes
checking whether NLS is requested... no
checking for msgfmt... /home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/host/bin/msgfmt
checking for gmsgfmt... /home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/host/bin/msgfmt
checking for xgettext... /home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/host/bin/xgettext
checking for msgmerge... /home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/host/bin/msgmerge
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking for CFLocaleCopyPreferredLanguages... (cached) no
checking whether to use NLS... no
checking for PCRE... yes
checking for pcre_compile... no
configure: error: pcre support not available
package/pkg-generic.mk:254: recipe for target '/home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/build/grep-3.3/.stamp_configured' failed
make[1]: *** [/home/book/work/f1c200s/new_edition_20240225/buildroot-tiny200/output/build/grep-3.3/.stamp_configured] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

最近编辑记录 willX (2025-05-10 18:30:44)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn