linux 安装pcre出现*** [libpcreposix.la] Error 1

在尝试安装Git1.14.1版本中的pcre库时,遇到了由于路径中存在空格导致的编译错误。bin/sed无法读取文件,libtool认为1.14.1/otherlib/pcre-8.42/libpcre.la不是一个有效的库工具档案。解决方案是确保安装包路径使用英文且无空格。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/bin/sed: can't read 1.14.1/otherlib/pcre-8.42/libpcre.la: No such file or directory
libtool: error: '1.14.1/otherlib/pcre-8.42/libpcre.la' is not a valid libtool archive
Makefile:1441: recipe for target 'libpcreposix.la' failed
make[1]: *** [libpcreposix.la] Error 1
make[1]: Leaving directory '/home/lcf/git/git 1.14.1/otherlib/pcre-8.42'
Makefile:1322: recipe for target 'all' failed
make: *** [all] Error 2

pcre安装包的路径需要英文路径且不能有空格,本例中就是 git 1.14.1 出现空格所致

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值