Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Just another Perl shrine
 
PerlMonks  

From MediaWiki to XWiki

by alisanti (Initiate)
on Nov 30, 2011 at 15:45 UTC ( #940883=perlquestion: print w/ replies, xml ) Need Help??
alisanti has asked for the wisdom of the Perl Monks concerning the following question:

Hi everybody, If I knew of this section, I'd have avoided to bother you in the chatterbox.

I have to migrate all the data of the company where I work from MediaWiki to XWiki. I'm following this guide: http://blogs.encodo.ch/news/view_article.php?id=73

It says to "Install the required CPAN-modules with perl -MCPAN -e ‘install HTML::WikiConverter::XWiki’"

The log is huge, but the final two lines say:

"Running make install make test had returned bad status, won't install without force"

and when I try to "execute perl wikifetch.pl", as they say, I get back

"Can't locate HTML/WikiConverter.pm in @INC (@INC contains: C:/Perl/si +te/lib C:/P erl/lib .) at wikifetch.pl line 26. BEGIN failed--compilation aborted at wikifetch.pl line 26."

I tried with both Strawberry and ActivePerl, obtaining the same result.

May you help me?

Comment on From MediaWiki to XWiki
Select or Download Code
Re: From MediaWiki to XWiki
by marto (Chancellor) on Nov 30, 2011 at 15:53 UTC

    Welcome to the Monastery. I suspect the reason the log is so large is because this module has many dependencies which need to be installed first, for example, HTML::WikiConverter which as you see ("Can't locate HTML/WikiConverter.pm in @INC (@INC contains: C:/Perl/site/lib C:/P erl/lib .)") you don't have installed.

    You need to work through the installation of these modules should you wish to run the wikifetch.pl script you've downloaded. Note that some modules may have external dependancies you need to satisfy.

    See Installing Modules from the tutorials section. Should you have further problems, reply in this thread, formatting your post appropriately using code and readmore tags (see How do I post a question effectively? for examples).

    Update: fixed typo

      This is the log...
      C:\Perl>cpan notest install HTML::WikiConverter Set up gcc environment - 4.4.3 CPAN: Term::ANSIColor loaded ok (v3.01) CPAN: Storable loaded ok (v2.30) Going to read 'C:\Perl\cpan\Metadata' Database was generated on Wed, 30 Nov 2011 11:29:28 GMT Warning: Cannot install notest, don't know what it is. Try the command i /notest/ to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.972101) CPAN: Module::CoreList loaded ok (v2.55) install is up to date (0.01). Running install for module 'HTML::WikiConverter' Running make for D/DI/DIBERRI/HTML-WikiConverter-0.68.tar.gz CPAN: Digest::SHA loaded ok (v5.62) CPAN: Compress::Zlib loaded ok (v2.037) Checksum for C:\Perl\cpan\sources\authors\id\D\DI\DIBERRI\HTML-WikiCon +verter-0.6 8.tar.gz ok CPAN: Archive::Tar loaded ok (v1.78) HTML-WikiConverter-0.68/ HTML-WikiConverter-0.68/bin/ HTML-WikiConverter-0.68/bin/html2wiki HTML-WikiConverter-0.68/cgi/ HTML-WikiConverter-0.68/cgi/index.cgi HTML-WikiConverter-0.68/cgi/templates/ HTML-WikiConverter-0.68/cgi/templates/main.html HTML-WikiConverter-0.68/cgi/templates/sample_html.html HTML-WikiConverter-0.68/cgi/templates/stylesheet.css HTML-WikiConverter-0.68/Changes HTML-WikiConverter-0.68/INSTALL HTML-WikiConverter-0.68/lib/ HTML-WikiConverter-0.68/lib/HTML/ HTML-WikiConverter-0.68/lib/HTML/WikiConverter/ HTML-WikiConverter-0.68/lib/HTML/WikiConverter/Dialects.pod HTML-WikiConverter-0.68/lib/HTML/WikiConverter/Normalizer.pm HTML-WikiConverter-0.68/lib/HTML/WikiConverter/WebApp.pm HTML-WikiConverter-0.68/lib/HTML/WikiConverter.pm HTML-WikiConverter-0.68/LICENSE HTML-WikiConverter-0.68/Makefile.PL HTML-WikiConverter-0.68/MANIFEST HTML-WikiConverter-0.68/META.yml HTML-WikiConverter-0.68/README HTML-WikiConverter-0.68/t/ HTML-WikiConverter-0.68/t/00-load.t HTML-WikiConverter-0.68/t/01-normalizer.t HTML-WikiConverter-0.68/t/01-wikiconverter.t HTML-WikiConverter-0.68/t/boilerplate.t HTML-WikiConverter-0.68/t/pod-coverage.t HTML-WikiConverter-0.68/t/pod.t HTML-WikiConverter-0.68/webapp-install CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.112150) CPAN.pm: Going to build D/DI/DIBERRI/HTML-WikiConverter-0.68.tar.gz Set up gcc environment - 4.4.3 Checking if your kit is complete... Looks good Writing Makefile for HTML::WikiConverter Writing MYMETA.yml cp lib/HTML/WikiConverter.pm blib\lib\HTML\WikiConverter.pm cp lib/HTML/WikiConverter/Normalizer.pm blib\lib\HTML\WikiConverter\No +rmalizer.p m cp lib/HTML/WikiConverter/Dialects.pod blib\lib\HTML\WikiConverter\Dia +lects.pod cp lib/HTML/WikiConverter/WebApp.pm blib\lib\HTML\WikiConverter\WebApp +.pm C:\Perl\bin\perl.exe -MExtUtils::Command -e "cp" -- bin/html2wiki blib +\script\ht ml2wiki pl2bat.bat blib\script\html2wiki DIBERRI/HTML-WikiConverter-0.68.tar.gz C:\STRAWB~1\c\bin\dmake.exe -- OK CPAN: YAML::XS loaded ok (v0.35) Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, ' +blib\lib', 'blib\arch')" t/*.t t/00-load.t ........... 1/1 # Testing HTML::WikiConverter 0.68, Perl 5 +.014002, C :\Perl\bin\perl.exe t/00-load.t ........... ok t/01-normalizer.t ..... ok t/01-wikiconverter.t .. 2/53 request for <http://diberri.dyndns.org/wi +kipedia/ht ml2wiki-old/test.html> failed at t/01-wikiconverter.t line 162 # Looks like you planned 53 tests but ran 35. # Looks like your test exited with 22 just after 35. t/01-wikiconverter.t .. Dubious, test returned 22 (wstat 5632, 0x1600) Failed 18/53 subtests t/boilerplate.t ....... ok t/pod-coverage.t ...... skipped: Test::Pod::Coverage 1.04 required for + testing P OD coverage t/pod.t ............... skipped: Test::Pod 1.14 required for testing P +OD Test Summary Report ------------------- t/01-wikiconverter.t (Wstat: 5632 Tests: 35 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 53 tests but ran 35. Files=6, Tests=45, 4 wallclock secs ( 0.11 usr + 0.02 sys = 0.13 CP +U) Result: FAIL Failed 1/6 test programs. 0/45 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' DIBERRI/HTML-WikiConverter-0.68.tar.gz C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DIBERRI/HTML-WikiConverter-0.68.tar.gz Running make install make test had returned bad status, won't install without force

        Ok, at the command prompt type:

        cpan

        Press the return or enter key, cpan will now display a start up message of sorts. Now type:

        notest install HTML::WikiConverter
Re: From MediaWiki to XWiki
by Eliya (Vicar) on Nov 30, 2011 at 15:53 UTC
    The log is huge, but the final two lines say: "Running make install make test had returned bad status...

    This is just the summary, indicating that something failed.  More interesting would be the first occurrence of an error in the log, as that might better help to narrow down on what the issue is.

      Set up gcc environment - 4.4.3 &#8592;[32mGoing to read 'C:\Perl\cpan\Metadata'&#8592;[0m &#8592;[32m Database was generated on Wed, 30 Nov 2011 11:29:28 GMT&# +8592;[0m &#8592;[32mRunning install for module 'HTML::WikiConverter::XWiki'&#85 +92;[0m &#8592;[32mRunning make for P/PA/PACKI/HTML-WikiConverter-XWiki-0.02.t +ar.gz&#8592;[0m &#8592;[32mChecksum for C:\Perl\cpan\sources\authors\id\P\PA\PACKI\HTM +L-WikiConverter- XWiki-0.02.tar.gz ok&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/boilerplate.t&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/runtests.pl&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/pod-coverage.t&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/00-load.t&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/xwiki.t&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/t/pod.t&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/META.yml&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/lib/&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/lib/HTML/&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/lib/HTML/WikiConverter/&#8592 +;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/lib/HTML/WikiConverter/XWiki. +pm&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/Changes&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/MANIFEST&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/Makefile.PL&#8592;[0m &#8592;[32mHTML-WikiConverter-XWiki-0.02/README&#8592;[0m &#8592;[32m CPAN.pm: Going to build P/PA/PACKI/HTML-WikiConverter-XWiki-0.02.tar +.gz&#8592;[0m Set up gcc environment - 4.4.3 Warning: prerequisite HTML::WikiConverter 0.62 not found. Checking if your kit is complete... Looks good Writing Makefile for HTML::WikiConverter::XWiki Writing MYMETA.yml &#8592;[32m---- Unsatisfied dependencies detected during ---- ---- PACKI/HTML-WikiConverter-XWiki-0.02.tar.gz ---- HTML::WikiConverter [requires]&#8592;[0m &#8592;[32mRunning make test&#8592;[0m &#8592;[32m Delayed until after prerequisites&#8592;[0m &#8592;[32mRunning make install&#8592;[0m &#8592;[32m Delayed until after prerequisites&#8592;[0m &#8592;[32mRunning install for module 'HTML::WikiConverter'&#8592;[0m &#8592;[32mRunning make for D/DI/DIBERRI/HTML-WikiConverter-0.68.tar.g +z&#8592;[0m &#8592;[32mChecksum for C:\Perl\cpan\sources\authors\id\D\DI\DIBERRI\H +TML-WikiConverte r-0.68.tar.gz ok&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/bin/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/bin/html2wiki&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/index.cgi&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/templates/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/templates/main.html&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/templates/sample_html.html&#859 +2;[0m &#8592;[32mHTML-WikiConverter-0.68/cgi/templates/stylesheet.css&#8592; +[0m &#8592;[32mHTML-WikiConverter-0.68/Changes&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/INSTALL&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/HTML/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/HTML/WikiConverter/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/HTML/WikiConverter/Dialects.pod +&#8592;[0m&#8592;[32mHTML-WikiConverter-0.68/lib/HTML/WikiConverter/N +ormalizer.pm&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/HTML/WikiConverter/WebApp.pm&#8 +592;[0m &#8592;[32mHTML-WikiConverter-0.68/lib/HTML/WikiConverter.pm&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/LICENSE&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/Makefile.PL&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/MANIFEST&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/META.yml&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/README&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/00-load.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/01-normalizer.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/01-wikiconverter.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/boilerplate.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/pod-coverage.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/t/pod.t&#8592;[0m &#8592;[32mHTML-WikiConverter-0.68/webapp-install&#8592;[0m &#8592;[32m CPAN.pm: Going to build D/DI/DIBERRI/HTML-WikiConverter-0.68.tar.gz& +#8592;[0m Checking if your kit is complete... Looks good Writing Makefile for HTML::WikiConverter Writing MYMETA.yml cp lib/HTML/WikiConverter.pm blib\lib\HTML\WikiConverter.pm cp lib/HTML/WikiConverter/Normalizer.pm blib\lib\HTML\WikiConverter\No +rmalizer.p m cp lib/HTML/WikiConverter/Dialects.pod blib\lib\HTML\WikiConverter\Dia +lects.pod cp lib/HTML/WikiConverter/WebApp.pm blib\lib\HTML\WikiConverter\WebApp +.pm C:\Perl\bin\perl.exe -MExtUtils::Command -e "cp" -- bin/html2wiki blib +\script\ht ml2wiki pl2bat.bat blib\script\html2wiki &#8592;[32m DIBERRI/HTML-WikiConverter-0.68.tar.gz&#8592;[0m &#8592;[32m C:\STRAWB~1\c\bin\dmake.exe -- OK&#8592;[0m &#8592;[32mRunning make test&#8592;[0m C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, ' +blib\lib', 'blib\arch')" t/*.t # Testing HTML::WikiConverter 0.68, Perl 5.014002, C:\Perl\bin\perl.ex +e t/00-load.t ........... ok t/01-normalizer.t ..... ok request for <http://diberri.dyndns.org/wikipedia/html2wiki-old/test.ht +ml> failed at t/01-wikiconverter.t line 162 # Looks like you planned 53 tests but ran 35. # Looks like your test exited with 22 just after 35. t/01-wikiconverter.t .. Dubious, test returned 22 (wstat 5632, 0x1600) Failed 18/53 subtests t/boilerplate.t ....... ok t/pod-coverage.t ...... skipped: Test::Pod::Coverage 1.04 required for + testing P OD coverage Failed 1/6 test programs. 0/45 subtests failed. t/pod.t ............... skipped: Test::Pod 1.14 required for testing P +OD dmake.exe: Error code 255, while making 'test_dynamic' Test Summary Report ------------------- t/01-wikiconverter.t (Wstat: 5632 Tests: 35 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 53 tests but ran 35. Files=6, Tests=45, 7 wallclock secs ( 0.02 usr + 0.06 sys = 0.08 CP +U) Result: FAIL &#8592;[32m DIBERRI/HTML-WikiConverter-0.68.tar.gz&#8592;[0m &#8592;[31m C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK&#8592;[0m &#8592;[32m//hint// to see the cpan-testers results for installing thi +s module, try: -- More -- # Testing HTML::WikiConverter::XWiki 0.02, Perl 5.014002, +C:\Perl\bi n\perl.exe Can't locate HTML/WikiConverter.pm in @INC (@INC contains: C:\Perl\cpa +n\build\HT ML-WikiConverter-XWiki-0.02-oOP_WR\blib\lib C:\Perl\cpan\build\HTML-Wi +kiConverte r-XWiki-0.02-oOP_WR\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/run +tests.pl l ine 8. BEGIN failed--compilation aborted at t/runtests.pl line 8. Compilation failed in require at t/xwiki.t line 2. Failed 1/5 test programs. 0/4 subtests failed. dmake.exe: Error code 130, while making 'test_dynamic' reports DIBERRI/HTML-WikiConverter-0.68.tar.gz&#8592;[0m &#8592;[32mRunning make install&#8592;[0m &#8592;[32m make test had returned bad status, won't install without +force&#8592;[0m &#8592;[32mRunning make for P/PA/PACKI/HTML-WikiConverter-XWiki-0.02.t +ar.gz&#8592;[0m &#8592;[32m Has already been unwrapped into directory C:\Perl\cpan\bu +ild\HTML-WikiCon verter-XWiki-0.02-oOP_WR&#8592;[0m &#8592;[32m CPAN.pm: Going to build P/PA/PACKI/HTML-WikiConverter-XWiki-0.02.tar +.gz&#8592;[0m &#8592;[31mWarning: Prerequisite 'HTML::WikiConverter => 0.62' for 'PA +CKI/HTML-WikiCon verter-XWiki-0.02.tar.gz' failed when processing 'DIBERRI/HTML-WikiCon +verter-0.6 8.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed a +re limited .&#8592;[0m cp lib/HTML/WikiConverter/XWiki.pm blib\lib\HTML\WikiConverter\XWiki.p +m &#8592;[32m PACKI/HTML-WikiConverter-XWiki-0.02.tar.gz&#8592;[0m &#8592;[32m C:\STRAWB~1\c\bin\dmake.exe -- OK&#8592;[0m &#8592;[32mRunning make test&#8592;[0m C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, ' +blib\lib', 'blib\arch')" t/*.t t/00-load.t ....... ok t/boilerplate.t ... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for tes +ting POD c overage t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD t/xwiki.t ......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/xwiki.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=5, Tests=4, 1 wallclock secs ( 0.02 usr + 0.06 sys = 0.08 CPU +) Result: FAIL &#8592;[32m PACKI/HTML-WikiConverter-XWiki-0.02.tar.gz&#8592;[0m &#8592;[31mone dependency not OK (HTML::WikiConverter); additionally t +est harness fail ed&#8592;[0m &#8592;[31m C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK&#8592;[0m &#8592;[32m//hint// to see the cpan-testers results for installing thi +s module, try: reports PACKI/HTML-WikiConverter-XWiki-0.02.tar.gz&#8592;[0m &#8592;[32mRunning make install&#8592;[0m &#8592;[32m make test had returned bad status, won't install without +force&#8592;[0m

        "request for <http://diberri.dyndns.org/wikipedia/html2wiki-old/test.html> failed"

        While installing HTML::WikiConverter a test fails because the a connection to the server can't be established. So to be clear this is currently going to fail for everyone, not just you http://matrix.cpantesters.org/?dist=HTML-WikiConverter

        You could try just a force install HTML::WikiConverter or notest install HTML::WikiConverter.

Re: From MediaWiki to XWiki
by Anonymous Monk on Nov 30, 2011 at 18:33 UTC
    Ive had this same problem a few times, trying to remember what I did to fix it. Idea's that probably wont help: 1.) Make sure you are using a Visual Studio Command Prompt or some sort of C compiling shell when installing from CPAN, some dependencies might need to be compiled. 2.) is your 'o conf config' set up properly? 3.) you've probably already tried finding this in PPM? Maybe adding another PPM repository that has the module will help. 4.) Sounds like you are having problems installing, if its a specific dependency you might be able to install it elsewhere and get it working.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://940883]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2014-04-21 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (496 votes), past polls