Perl 板


LINE

※ 引述《Neisseria (Neisseria)》之铭言: : 我在 Debian Linux 上用 cpan 试装这个套件,有装成功 : 这个套件需要编译一些 C 的东西,而且会用到一些 Perl 的标头档 : 在 Debian 上这个好解决,装个 libperl-dev 系统就会自动去读标头档位置了 : 不过在 Windows 上装会比较麻烦,如果用 cpanm 没有办法设定标头档的话 : 可以还是要自己抓原始码下来,自行安装 : 假设用 Strawberry Perl 附 dmake,可能流程如下,请自行变化 : C:\> perl Makefile.pl LIB='/path/to/lib' INC='/path/to/include' : C:\> dmake : C:\> dmake test : C:\> dmake install : 不过,在 Windows 装需要编译 C 的 Perl 套件,实在是件吃力不讨好的事 : 祝成功 : ※ 引述《dk1120 (Jason7123)》之铭言: : : 最近在玩perl compiler 透过cpanm 安装 B::Bytecode ,可是一直编译失败! : : 请问有人试过吗? 在哪个版本的perl? 指点一下迷津! 我试了perl 很多版本 5.14 ~ 5.18 ,都无法成功,到底是哪有有问题,指点一下明灯! 谢谢 系统版本: Linux raspberrypi 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l ># perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-gnueabihf-thread-multi-64int (with 89 registered patches, see perl -V for more detail) 以下是 make test 的结果: Test Summary Report ------------------- t/perldoc.t (Wstat: 1024 Tests: 7 Failed: 4) Failed tests: 1-2, 4-5 Non-zero exit status: 4 Files=103, Tests=784, 4672 wallclock secs ( 2.58 usr 0.60 sys + 4565.77 cusr 113.85 csys = 4682.80 CPU) Result: FAIL Failed 1/103 test programs. 4/784 subtests failed. Makefile:1205: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 make test 的详细讯息结果: [root@raspberrypi:/usr/src/perl/B-C-1.52] ╚># make test make[1]: Entering directory '/usr/src/perl/B-C-1.52/ByteLoader' Running Mkbootstrap for ByteLoader () chmod 644 "ByteLoader.bs" No tests defined for ByteLoader extension. make[1]: Leaving directory '/usr/src/perl/B-C-1.52/ByteLoader' make[1]: Entering directory '/usr/src/perl/B-C-1.52/Stash' Running Mkbootstrap for B::Stash () chmod 644 "Stash.bs" No tests defined for B::Stash extension. make[1]: Leaving directory '/usr/src/perl/B-C-1.52/Stash' make[1]: Entering directory '/usr/src/perl/B-C-1.52/ByteLoader' Manifying 2 pod documents make[1]: Leaving directory '/usr/src/perl/B-C-1.52/ByteLoader' make[1]: Entering directory '/usr/src/perl/B-C-1.52/Stash' Manifying 1 pod document make[1]: Leaving directory '/usr/src/perl/B-C-1.52/Stash' Running Mkbootstrap for B::C () chmod 644 "C.bs" PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/asmdata.t ....... ok t/assembler.t ..... ok t/bblock.t ........ ok t/bytecode.t ...... ok t/c.t ............. ok t/c_allow_opts.t .. ok t/c_argv.t ........ ok t/c_o1.t .......... skipped: Only if -d .git t/c_o2.t .......... skipped: Only if -d .git t/c_o3.t .......... ok t/c_o4.t .......... skipped: Only if -d .git t/cc.t ............ ok t/cc_last.t ....... 1/4 Label not found for "last " at ccode_last_2cc.pl line 5. t/cc_last.t ....... 3/4 Warning: Label not found at compile time for "last LOOP" t/cc_last.t ....... ok t/cc_o1.t ......... skipped: Only if -d .git t/cc_o2.t ......... skipped: Only if -d .git t/e_perlcc.t ...... ok t/issue105.t ...... ok t/issue130.t ...... skipped: lexical subs since 5.18 t/issue141.t ...... ok t/issue143.t ...... ok t/issue144.t ...... ok t/issue148.t ...... ok t/issue159.t ...... ok t/issue169.t ...... ok t/issue172.t ...... ok t/issue183.t ...... ok t/issue184.t ...... ok t/issue185.t ...... ok t/issue197.t ...... ok t/issue200.t ...... ok t/issue201.t ...... skipped: Only if -d .git t/issue203.t ...... skipped: Only if -d .git t/issue208.t ...... ok t/issue211.t ...... skipped: under harness t/issue212.t ...... ok t/issue229.t ...... skipped: Only for author t/issue232.t ...... ok t/issue234.t ...... ok t/issue235.t ...... ok t/issue237.t ...... ok t/issue238.t ...... ok t/issue24.t ....... ok t/issue240.t ...... ok t/issue242.t ...... ok t/issue245.t ...... ok t/issue251.t ...... ok t/issue256.t ...... ok t/issue259.t ...... skipped: JSON::XS required for testing issue259 t/issue27.t ....... ok t/issue272.t ...... ok t/issue273.t ...... ok t/issue274.t ...... pmop 0x0 not found in our B::C Regexp hash at blib/lib/B/C.pm line 2997. pmop 0x0 not found in our B::C Regexp hash at blib/lib/B/C.pm line 2997. ccode274i_1c_o3.c: In function ‘perl_init_aaaa’: ccode274i_1c_o3.c:11374:35: warning: assignment from incompatible pointer type [enabled by default] ccode274i_1c_o3.c:11451:35: warning: assignment from incompatible pointer type [enabled by default] t/issue274.t ...... ok t/issue281.t ...... ok t/issue282.t ...... ok t/issue29.t ....... 1/2 Segmentation fault t/issue29.t ....... ok t/issue293.t ...... skipped: Coro required for testing issue #293 t/issue301.t ...... ok t/issue305.t ...... ok t/issue308.t ...... ok t/issue31.t ....... ok t/issue312.t ...... ok t/issue32.t ....... ok t/issue330.t ...... ok t/issue338.t ...... ok t/issue34.t ....... ok t/issue340.t ...... skipped: require Net::DNS and IO::Socket::INET6 t/issue348.t ...... ok t/issue35.t ....... ok t/issue350.t ...... skipped: Compile Moose only if -d .git t/issue36.t ....... ok t/issue368.t ...... skipped: EV required for testing issue #368 t/issue369.t ...... skipped: Coro and EV are required for testing issue #369 t/issue37.t ....... ok t/issue38.t ....... ok t/issue39.t ....... ok t/issue42.t ....... ok t/issue44.t ....... ok t/issue45.t ....... skipped: Only if -d .git t/issue46.t ....... ok t/issue47.t ....... ok t/issue48.t ....... ok t/issue49.t ....... ok t/issue50.t ....... ok t/issue51.t ....... ok t/issue52.t ....... ok t/issue54.t ....... ok t/issue59.t ....... ok t/issue68.t ....... ok t/issue71.t ....... ok t/issue76.t ....... ok t/issue81.t ....... ok t/issue90.t ....... ok t/issue93.t ....... ccode93ib.pl syntax OK t/issue93.t ....... 1/9 Warning: Write BEGIN-block main::$out to FileHandle > &5 Warning: Read BEGIN-block main::$in from FileHandle < &6 ccode93ib_2c.pl syntax OK t/issue93.t ....... 2/9 Warning: Write BEGIN-block main::$out to FileHandle > &5 Warning: Read BEGIN-block main::$in from FileHandle < &6 ccode93ib_3cc.pl syntax OK t/issue93.t ....... 3/9 ccode93ig.pl syntax OK ccode93ig_5c.pl syntax OK t/issue93.t ....... 5/9 ccode93ig_6cc.pl syntax OK t/issue93.t ....... 6/9 ccode93iw.pl syntax OK t/issue93.t ....... 7/9 Warning: Write BEGIN-block main::$out to FileHandle > &4 ccode93iw_8c.pl syntax OK t/issue93.t ....... 8/9 Warning: Write BEGIN-block main::$out to FileHandle > &4 ccode93iw_9cc.pl syntax OK t/issue93.t ....... ok t/issue95.t ....... skipped: IO::Socket::SSL required for testing issue95 t/issue96.t ....... ok t/issue97.t ....... ok t/issue98.t ....... ok t/manifest.t ...... skipped: requires a git checkout and a unix for git and diff t/modules.t ....... # -O3 --staticxs ok # scanning installed modules t/modules.t ....... 25/40 # 3 / 10 modules tested with B-C-1.52 - perl-5.014002 # pass 3 / 3 (100.0%) # fail 0 / 3 (0.0%) # todo 0 / 0 () # skip 7 / 10 (70.0% not installed) t/modules.t ....... ok t/o.t ............. ok t/perldoc.t ....... blib/script/perlcc: /usr/bin/perldoc is a /bin/sh script, not perl t/perldoc.t ....... 1/7 # Failed test './perldoc compiled' # at t/perldoc.t line 49. # Failed test 'same result' # at t/perldoc.t line 82. # got: undef # expected: '/bin/sh: 0: Illegal option -S # ' blib/script/perlcc: /usr/bin/perldoc is a /bin/sh script, not perl t/perldoc.t ....... 4/7 # Failed test 'perldoc compiled' # at t/perldoc.t line 94. # Failed test 'same result' # at t/perldoc.t line 102. # got: undef # expected: '/bin/sh: 0: Illegal option -S # ' # Looks like you failed 4 tests of 7. t/perldoc.t ....... Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/7 subtests (less 3 skipped subtests: 0 okay) t/stash.t ......... # got = main,re,mro,Regexp,Carp,PerlIO,Exporter,warnings,DB # (after sorting) # got = Carp DB Exporter main mro PerlIO re Regexp warnings t/stash.t ......... 1/4 # (after perlio censorings) # got = Carp DB Exporter main mro re Regexp warnings # (after platform censorings) # got = Carp DB Exporter main mro re Regexp warnings t/stash.t ......... ok t/z_pod.t ......... ok Test Summary Report ------------------- t/perldoc.t (Wstat: 1024 Tests: 7 Failed: 4) Failed tests: 1-2, 4-5 Non-zero exit status: 4 Files=103, Tests=784, 4672 wallclock secs ( 2.58 usr 0.60 sys + 4565.77 cusr 113.85 csys = 4682.80 CPU) Result: FAIL Failed 1/103 test programs. 4/784 subtests failed. Makefile:1205: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 ╔[root@raspberrypi:/usr/src/perl/B-C-1.52] ╚># -- Sent from my Windows --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.192.136.152
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Perl/M.1442076072.A.FD9.html
1F:→ Neisseria: 如果只是 test 没通过可以设定用 notest 装,懒人法 09/13 06:00
2F:→ gugod: 测试说你家的 perldoc 不好,多半不影响其主要功能吧。 09/16 07:07







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP