sed 4.3版本 [:space:]问题

在编译过程中遇到版本不一致问题,主机上的sed为4.5版,而编译依赖的sed是4.3版。4.3版使用[:space:]表示空格,4.5版使用[[:space:]]。这导致了编译时sed命令无法正确处理空格。解决方案可在提供的链接中找到。
sed: character class syntax is [[:space:]], not [:space:]
configure: error: cannot determine icu version number from uvernum.h header file 
------ config.log ------
configure:26721: checking for fontconfig
configure:26728: checking _FONTCONFIG_CFLAGS
configure:26733: checking _FONTCONFIG_LIBS
configure:26934: checking for stdint.h
configure:26947: gcc -c  -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  conftest.c 1>&5
configure:26934: checking for inttypes.h
configure:26947: gcc -c  -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  conftest.c 1>&5
configure:26934: checking for sys/int_types.h
configure:26947: gcc -c  -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  conftest.c 1>&5
configure:26941:10: fatal error: sys/int_types.h: No such file or directory

代码自带的配置文件在编译过程中,会去调用sed4.3版本,而主机系统的sed是4.5版本,版本会不一致。编译的时候,sed命令修改文件就识别不了空格键。

sed4.3版本以前的空格键:[:space:]
sed4.3版本以后的空格键:[[:space:]]

解决方案链接:
https://github.com/deu/palemoon-overlay/issues/31.
https://superuser.com/questions/112834/how-to-match-whitespace-in-sed
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850984
https://github.com/MoonchildProductions/Pale-Moon/issues/872
https://bug1329272.bmoattachments.org/attachment.cgi?id=8825307

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值