加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

perl版本差别引起的异常message

发布时间:2020-12-16 00:27:56 所属栏目:大数据 来源:网络整理
导读:? 在ubuntu下,编译某一源程序时,有下记ErrorMessage -------- Generating Features.mak. Sequence (?/...) not recognized in regex; marked by -- HERE in m//+|(?/ -- HERE !/)$/ at -e line 1. Sequence (?/...) not recognized in regex; marked by --
?

在ubuntu下,编译某一源程序时,有下记ErrorMessage -------- >>> Generating Features.mak. Sequence (?</...) not recognized in regex; marked by <-- HERE in m//+|(?</ <-- HERE !/)$/ at -e line 1. Sequence (?</...) not recognized in regex; marked by <-- HERE in m//+|(?</ <-- HERE !/)$/ at -e line 1. -------- 执行某一语句时,其正则表达式部分,未被正确识别。故报错。 查看,错误发生目录下的Makefile,确定当下记语句执行时,错误发生。 DM_TOP_DIR = $(shell perl -e '$$a="$(DM_TOP_DIR_ABS)";$$a =~ s=/+|(?</!/)$$=/=g;$$_="${PWD}";s/$$a//&&s|[^/]+|..|g&&print') 即perl -e 的后续正则表达式未被正确识别,而报错。 $ perl -v 或 perl -V ubuntu9.10发行版提供的 perl的版本是5.10.0 其他能够正常编译的发行版(vine 4.2)提供的是perl的版本是5.8.6 所以,从 perl.org下载5.8.9的源码包,编译安装后。(降级) 该程序最终正确编译成功。

How to install from source wget http://www.cpan.org/src/5.0/perl-5.14.2.tar.gz tar -xzf perl-5.14.2.tar.gz cd perl-5.14.2 ./Configure -des???????????????????????????????//-des默认配置 -Dprefix=$HOME/localperl 设置安装路径 make make test //可跳过 make install

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读