Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
216 views
in Technique[技术] by (71.8m points)

ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)

I tried to install Algorithm::AhoCorasick::XS on a Windows PC, but it reports the following error: (On macOS, the installation of this module was successful.)

I have tried the advices mentioned in this post, but to no avail.

cpanm (App::cpanminus) 1.7044 on perl 5.032000 built for MSWin32-x64-multi-thread
Work directory is C:Userschris/.cpanm/work/1610116257.2408
You have make C:Strawberrycingmake.exe
You have LWP 6.46
You have C:WINDOWSsystem32ar.exe, C:msys64usringzip.exe and C:msys64usrinzip2.exe
Searching Algorithm::AhoCorasick::XS () on cpanmetadb ...
--> Working on Algorithm::AhoCorasick::XS
Fetching http://www.cpan.org/authors/id/R/RJ/RJH/Algorithm-AhoCorasick-XS-0.04.tar.gz
-> OK
Unpacking Algorithm-AhoCorasick-XS-0.04.tar.gz
Entering Algorithm-AhoCorasick-XS-0.04
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.46)
Configuring Algorithm-AhoCorasick-XS-0.04
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Algorithm::AhoCorasick::XS
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have List::MoreUtils 0 ... Yes (0.428)
Checking if you have Data::Dump 0 ... Yes (1.23)
Checking if you have Test::More 0.96 ... Yes (1.302175)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.46)
Building and testing Algorithm-AhoCorasick-XS-0.04
cp lib/Algorithm/AhoCorasick/XS.pm bliblibAlgorithmAhoCorasickXS.pm
Running Mkbootstrap for XS ()
"C:Strawberryperlinperl.exe" -MExtUtils::Command -e chmod -- 644 "XS.bs"
"C:Strawberryperlinperl.exe" -MExtUtils::Command::MM -e cp_nonempty -- XS.bs blibarchautoAlgorithmAhoCorasickXSXS.bs 644
g++ -c   -Wall -std=c++11 -s -O2   -DVERSION="0.04" -DXS_VERSION="0.04"  "-IC:STRAWB~1perllibCORE"   Matcher.cpp
"C:Strawberryperlinperl.exe" "C:StrawberryperllibExtUtils/xsubpp"  -C++ -typemap C:STRAWB~1perllibExtUtilsypemap -typemap C:Userschris.cpanmwork1610116257.2408Algorithm-AhoCorasick-XS-0.04perlobject.map -typemap C:Userschris.cpanmwork1610116257.2408Algorithm-AhoCorasick-XS-0.04ypemap -typemap C:Userschris.cpanmwork1610116257.2408Algorithm-AhoCorasick-XS-0.04ypemap  ac.xs > ac.xsc
"C:Strawberryperlinperl.exe" -MExtUtils::Command -e mv -- ac.xsc ac.c
g++ -c   -Wall -std=c++11 -s -O2   -DVERSION="0.04" -DXS_VERSION="0.04"  "-IC:STRAWB~1perllibCORE"   ac.c
In file included from ac.xs:11:
ppport.h:4594: warning: "WIDEST_UTYPE" redefined
 define WIDEST_UTYPE U64TYPE
 In file included from C:STRAWB~1perllibCORE/perl.h:2753,
 from ac.xs:5: C:STRAWB~1perllibCORE/handy.h:1251: note: this is the location of the previous definition
 define WIDEST_UTYPE U64
 "C:Strawberryperlinperl.exe" -MExtUtils::Mksymlists 
     -e "Mksymlists('NAME'=>"Algorithm::AhoCorasick::XS", 'DLBASE' => 'XS', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
g++ XS.def -o blibarchautoAlgorithmAhoCorasickXSXS.xs.dll -mdll -s -L"C:STRAWB~1perllibCORE" -L"C:STRAWB~1clib" Matcher.o ac.o   "C:STRAWB~1perllibCORElibperl532.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -Wl,--enable-auto-image-base
"C:Strawberryperlinperl.exe" -MExtUtils::Command -e chmod -- 755 blibarchautoAlgorithmAhoCorasickXSXS.xs.dll
"C:Strawberryperlinperl.exe" -MExtUtils::Command::MM -e cp_nonempty -- XS.bs blibarchautoAlgorithmAhoCorasickXSXS.bs 644
"C:Strawberryperlinperl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'bliblib', 'blibarch')" t/*.t
ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)
t/basic.t ....... 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)
t/details.t ..... 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)
t/edge_cases.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)
t/utf8.t ........ 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
ac.c: loadable library and perl binaries are mismatched (got handshake key 0000000012400080, needed 0000000012900080)
t/variation.t ... 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
Test Summary Report
-------------------t/basic.t     (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/details.t   (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/edge_cases.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/utf8.t      (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/variation.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
Files=5, Tests=0,  2 wallclock secs ( 0.03 usr +  0.14 sys =  0.17 CPU)
Result: FAIL
Failed 5/5 test programs. 0/0 subtests failed.
gmake: *** [Makefile:1042: test_dynamic] Error 1
-> FAIL Installing Algorithm::AhoCorasick::XS failed. See C:Userschris.cpanmwork1610116257.2408uild.log for details. Retry with --force to force install it.


  [1]: https://stackoverflow.com/questions/45000585/listutil-c-loadable-library-and-perl-binaries-are-mismatched-got-handshake-key

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...