免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4472 | 回复: 2
打印 上一主题 下一主题

升级version.pm出问题了。求教~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-11-24 16:59 |只看该作者 |倒序浏览
我的version.pm的版本是0.77.。之后安装别的包的时候要求version要0.87....然后我从cpan上下载了version-0.87.tar..之后perl Makefile.pm报如下错误:

ERROR from evaluation of /perl_pm/version-0.87/vutil/Makefile.PL: ExtUtils::MM_Unix::tool_xsubpp : Can't find xsubpp at /usr/share/perl5/ExtUtils/MM_Unix.pm line 3588.


然后我打开ExtUtils/MM_Unix.pm 查看tool_xsubpp,直到3588行的大致代码如下,最后那句die就是报的错误,请教这个问题要怎么解决:



sub tool_xsubpp {
    my($self) = shift;
    return "" unless $self->needs_linking;

    my $xsdir;
    my @xsubpp_dirs = @INC;

    # Make sure we pick up the new xsubpp if we're building perl.
    unshift @xsubpp_dirs, $self->{PERL_LIB} if $self->{PERL_CORE};

    my $foundxsubpp = 0;
    foreach my $dir (@xsubpp_dirs) {
        $xsdir = $self->catdir($dir, 'ExtUtils');
        if( -r $self->catfile($xsdir, "xsubpp") ) {
            $foundxsubpp = 1;
            last;
        }
    }
    die "ExtUtils::MM_Unix::tool_xsubpp : Can't find xsubpp" if !$foundxsubpp;
   
    ...

论坛徽章:
46
15-16赛季CBA联赛之四川
日期:2018-03-27 11:59:132015年亚洲杯之沙特阿拉伯
日期:2015-04-11 17:31:45天蝎座
日期:2015-03-25 16:56:49双鱼座
日期:2015-03-25 16:56:30摩羯座
日期:2015-03-25 16:56:09巳蛇
日期:2015-03-25 16:55:30卯兔
日期:2015-03-25 16:54:29子鼠
日期:2015-03-25 16:53:59申猴
日期:2015-03-25 16:53:29寅虎
日期:2015-03-25 16:52:29羊年新春福章
日期:2015-03-25 16:51:212015亚冠之布里斯班狮吼
日期:2015-07-13 10:44:56
2 [报告]
发表于 2014-11-24 19:11 |只看该作者
用 cpan 命令安装,然后把错误提示贴出来,最新版都到 0.9909 了

论坛徽章:
0
3 [报告]
发表于 2014-11-25 09:32 |只看该作者
回复 2# zhlong8

我没有cpan命令。。。那个错误解决了。然后刷出一堆新错误。。这些我真看不懂了,能够帮我看看嘛:



cp lib/version/Internals.pod blib/lib/version/Internals.pod
cp lib/version.pm blib/lib/version.pm
cp lib/version/regex.pm blib/lib/version/regex.pm
cp lib/version.pod blib/lib/version.pod
cp vperl/vpp.pm blib/lib/version/vpp.pm
make[1]: Entering directory `/perl_pm/version-0.9909/vutil'
cp lib/version/vxs.pm ../blib/lib/version/vxs.pm
Running Mkbootstrap for version::vxs ()
chmod 644 "vxs.bs"
gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"0.9909\" -DXS_VERSION=\"0.9909\" -fPIC "-I/usr/lib64/perl5/CORE"   vutil.c
vutil.c:6:22: error: EXTERN.h: No such file or directory
vutil.c:7:20: error: perl.h: No such file or directory
vutil.c:8:20: error: XSUB.h: No such file or directory
In file included from vutil.c:14:
ppport.h:3231:28: error: patchlevel.h: No such file or directory
ppport.h:3234:48: error: could_not_find_Perl_patchlevel.h: No such file or directory
In file included from vutil.c:14:
ppport.h:4032: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from vutil.c:14:
ppport.h:4129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:4367: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4406: error: expected ‘)’ before ‘flags’
ppport.h:4478: error: expected ‘)’ before ‘flags’
ppport.h:4506: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4540: error: expected ‘)’ before ‘*’ token
ppport.h:4805: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4862: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:4999: error: expected ‘)’ before ‘*’ token
ppport.h:5023: error: expected ‘)’ before ‘*’ token
ppport.h:5388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ppport.h:6191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6247: error: expected declaration specifiers or ‘...’ before ‘STRLEN’
ppport.h:6247: error: expected declaration specifiers or ‘...’ before ‘UV’
ppport.h:6247: error: ‘CAT2’ declared as function returning a function
ppport.h:6247: warning: parameter names (without types) in function declaration
ppport.h:6461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6563: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6665: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6755: warning: type defaults to ‘int’ in declaration of ‘Size_t’
ppport.h:6755: error: expected ‘;’, ‘,’ or ‘)’ before ‘len’
ppport.h:6767: warning: type defaults to ‘int’ in declaration of ‘Size_t’
ppport.h:6767: error: expected ‘;’, ‘,’ or ‘)’ before ‘len’
ppport.h:6792: error: ‘CAT2’ declared as function returning a function
ppport.h:6792: warning: parameter names (without types) in function declaration
ppport.h:6834: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6864: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CAT2’
ppport.h:6954: error: expected ‘)’ before ‘*’ token
ppport.h:7063: error: expected ‘)’ before ‘*’ token
ppport.h:7117: error: expected ‘)’ before ‘*’ token
In file included from vutil.c:16:
vutil.h:41: error: expected ‘)’ before ‘err’
vutil.h:62: error: expected ‘)’ before ‘err’
vutil.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
vutil.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
In file included from vutil.c:16:
vutil.h:163: error: expected declaration specifiers or ‘...’ before ‘SV’
vutil.h:163: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.h:164: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:168: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.h:170: error: expected ‘)’ before ‘*’ token
vutil.h:171: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.h:171: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.h:171: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.c:34: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.c:37: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.c:37: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.c: In function ‘Perl_prescan_version’:
vutil.c:38: error: ‘bool’ undeclared (first use in this function)
vutil.c:38: error: (Each undeclared identifier is reported only once
vutil.c:38: error: for each function it appears in.)
vutil.c:38: error: expected ‘;’ before ‘qv’
vutil.c:41: error: expected ‘;’ before ‘alpha’
vutil.c:44: warning: implicit declaration of function ‘assert’
vutil.c:44: error: ‘sqv’ undeclared (first use in this function)
vutil.c:44: error: ‘salpha’ undeclared (first use in this function)
vutil.c:46: error: ‘qv’ undeclared (first use in this function)
vutil.c:46: warning: implicit declaration of function ‘isDIGIT’
vutil.c:52: error: ‘TRUE’ undeclared (first use in this function)
vutil.c:60: error: ‘strict’ undeclared (first use in this function)
vutil.c:100: error: ‘alpha’ undeclared (first use in this function)
vutil.c:153: warning: implicit declaration of function ‘isSPACE’
vutil.c: At top level:
vutil.c:265: error: expected declaration specifiers or ‘...’ before ‘SV’
vutil.c:265: error: expected declaration specifiers or ‘...’ before ‘bool’
vutil.c: In function ‘Perl_scan_version’:
vutil.c:271: error: ‘NULL’ undeclared (first use in this function)
vutil.c:274: error: ‘bool’ undeclared (first use in this function)
vutil.c:274: error: expected ‘;’ before ‘alpha’
vutil.c:275: error: expected ‘;’ before ‘vinf’
vutil.c:276: error: ‘AV’ undeclared (first use in this function)
vutil.c:276: error: ‘av’ undeclared (first use in this function)
vutil.c:277: error: ‘SV’ undeclared (first use in this function)
vutil.c:277: error: ‘hv’ undeclared (first use in this function)
vutil.c:279: error: ‘rv’ undeclared (first use in this function)
vutil.c:284: error: ‘FALSE’ undeclared (first use in this function)
vutil.c:284: error: ‘qv’ undeclared (first use in this function)
vutil.c:284: error: ‘alpha’ undeclared (first use in this function)
vutil.c:284: warning: passing argument 3 of ‘Perl_prescan_version’ from incompatible pointer type
vutil.c:34: note: expected ‘int *’ but argument is of type ‘const char **’
vutil.c:284: error: too many arguments to function ‘Perl_prescan_version’
vutil.c:287: warning: implicit declaration of function ‘strEQ’
vutil.c:288: warning: implicit declaration of function ‘Perl_croak’
vutil.c:298: warning: implicit declaration of function ‘newAV’
vutil.c:299: warning: implicit declaration of function ‘newSVrv’
vutil.c:300: warning: implicit declaration of function ‘sv_upgrade’
vutil.c:300: error: ‘SVt_PVHV’ undeclared (first use in this function)
vutil.c:303: warning: implicit declaration of function ‘HvSHAREKEYS_on’
vutil.c:307: warning: implicit declaration of function ‘hv_store’
vutil.c:307: error: ‘HV’ undeclared (first use in this function)
vutil.c:307: error: expected expression before ‘)’ token
vutil.c:307: warning: implicit declaration of function ‘newSViv’
vutil.c:309: error: expected expression before ‘)’ token
vutil.c:311: error: expected expression before ‘)’ token
vutil.c:315: warning: implicit declaration of function ‘isALPHA’
vutil.c:316: error: ‘I32’ undeclared (first use in this function)
vutil.c:316: error: expected ‘;’ before ‘rev’
vutil.c:319: error: ‘rev’ undeclared (first use in this function)
vutil.c:323: error: expected ‘;’ before ‘mult’
vutil.c:324: error: expected ‘;’ before ‘orev’
vutil.c:331: error: ‘mult’ undeclared (first use in this function)
vutil.c:333: error: ‘orev’ undeclared (first use in this function)
vutil.c:338: warning: implicit declaration of function ‘Perl_ck_warner’
vutil.c:342: error: ‘vinf’ undeclared (first use in this function)
vutil.c:367: warning: implicit declaration of function ‘av_push’
vutil.c:399: error: ‘SSize_t’ undeclared (first use in this function)
vutil.c:399: error: expected ‘;’ before ‘len’
vutil.c:407: error: ‘len’ undeclared (first use in this function)
vutil.c:414: error: ‘orig’ undeclared (first use in this function)
vutil.c:414: warning: implicit declaration of function ‘newSVpv’
vutil.c:414: warning: implicit declaration of function ‘newSV’
vutil.c:415: error: expected expression before ‘)’ token
vutil.c:416: error: expected expression before ‘)’ token
vutil.c:422: warning: implicit declaration of function ‘sv_insert’
vutil.c:424: error: expected expression before ‘)’ token
vutil.c:427: error: expected expression before ‘)’ token
vutil.c:432: error: expected expression before ‘)’ token
vutil.c:432: error: ‘DPPP_’ undeclared (first use in this function)
vutil.c:432: error: ‘my_newRV_noinc’ undeclared (first use in this function)
vutil.c:432: error: expected expression before ‘)’ token
vutil.c: At top level:
vutil.c:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:545: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:749: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:790: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:884: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:954: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vutil.c:999: error: expected ‘)’ before ‘*’ token
make[1]: *** [vutil.o] Error 1
make[1]: Leaving directory `/perl_pm/version-0.9909/vutil'
make: *** [subdirs] Error 2


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP