Perl WordNet::Similarity installation issue - perl

I have tried with ActiveState and Strawberry but I get the same error message every time I run
cpan install WordNet::Similarity
Shortend it down to this output:
C:\strawberry\perl\bin\perl.exe "-Iblib\arch" "-Iblib\lib" build/Depthfiles.PL b
lib\lib/WordNet/synsetdepths.dat
Generating default depth files.
Loading WordNet::QueryData... done
Finding depths of noun taxonomies... (getSense) Internal error: offset=00002342
pos=n at C:/strawberry/perl/site/lib/WordNet/QueryData.pm line 633, <GEN8> line
1.
Compilation failed in require at build/Depthfiles.PL line 27, <GEN8> line 1.
dmake.exe: Error code 255, while making 'blib\lib\WordNet\synsetdepths.dat'
TPEDERSE/WordNet-Similarity-2.05.tar.gz
C:\strawberry\c\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.41)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'WordNet::Similarity'.
Earlier I had the problem that WordNet was missing some .dat files, but that I solved by the help of Ted Pedersen mail archive. But this one really got me stuck. Anyone have any idea?
UPDATE:
Okay, I'm working in Ubuntu now but now I got a different problem:
# Failed test at t/trace.t line 141.
# got: '4'
# expected: '0'
# lesk: The lines 'Overlaps: 1 x "the" 1 x "small" 1 x "of" 2 x "any" 1 x "in the" 1 x "or" 1 x "resembling the" 1 x "and" ' and 'Overlaps: 1 x "the" 1 x "small" 1 x "in the" 1 x "or" 1 x "of" 1 x "resembling the" 2 x "any" 1 x "and" ' differ
t/trace.t ......... 107/132 # Looks like you failed 1 test of 132.
t/trace.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/132 subtests
t/vector.t ........ ok
t/vector_pairs.t .. ok
t/wn30loop.t ...... ok
t/wup.t ........... ok
Test Summary Report
-------------------
t/trace.t (Wstat: 256 Tests: 132 Failed: 1)
Failed test: 76
Non-zero exit status: 1
Files=22, Tests=2027, 136 wallclock secs ( 0.68 usr 0.05 sys + 132.59 cusr 3.44 csys = 136.76 CPU)
Result: FAIL
Failed 1/22 test programs. 1/2027 subtests failed.
make: *** [test_dynamic] Error 255
TPEDERSE/WordNet-Similarity-2.05.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TPEDERSE/WordNet-Similarity-2.05.tar.gz
Running make install
make test had returned bad status, won't install without force

This is an unusual-looking error, but I wonder if in deleting things from WordNet you might have removed something additional? I don't work much with Windows but if you do have the option of running on Linux then I think things will go more smoothly. That said, I know it runs on Windows (have had positive reports from Strawberry and Active Perl).
So...about the only thing I can suggest is to try to reinstall WordNet on Windows, or if you can run on Linux consider doing that as I think that tends to be a fairly smooth install. I think it can be on Windows too, it's just less common I think.

Related

Mango::BSON::ObjectID is not getting installed in perl5.36.0 using cpan

I switched from Perl 5.30 to Perl 5.36 and using Mojolicious 8.33. I tried installing Mango::BSON::ObjectID using CPAN.
cpan Mango::BSON::ObjectID
But it was throwing errors.
Test Summary Report
t/bson.t (Wstat: 256 Tests: 182 Failed: 1)
Failed test: 106
Non-zero exit status: 1
Files-13, Tests=205, 4 wallclock secs ( 0.05 usr 0.01 sys+ 1.89
cusr 0.22 csys=2.17 CPU)
Result: FAIL
Failed 1/13 test programs. 1/205 subtests failed.
make: *** [Makefile:942: test_dynamic] Error 255
ODC/Mango-1.30.tar.gz
/usr/bin/make test NOT OK
//hint// to see the cpan testers results for installing this
module, try:
reports ODC/Mango-1.38.tar.gz
So, I just want to know if Mango is supported in Perl 5.36.0 or not. And if it is not being supported, then what is the alternative to Mango?

How do I 'use diagnostics' for Perl on Cygwin?

I want to install DBD::AnyData which requires SQL::Statement which requires Math::Base::Convert. However, it's giving me this error
$ cpan install Math::Base::Convert
...
t/overload.t .............. couldn't find diagnostic data in /usr/lib/perl5/5.22/pods/perldiag.pod /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/lib /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/arch /usr/lib/perl5/site_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.22 /usr/lib/perl5/vendor_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.22 /usr/lib/perl5/5.22/i686-cygwin-threads-64int /usr/lib/perl5/5.22 . t/overload.t at /usr/lib/perl5/5.22/diagnostics.pm line 259, <POD_DIAG> line 704.
Compilation failed in require at t/overload.t line 1.
BEGIN failed--compilation aborted at t/overload.t line 1.
t/overload.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Test Summary Report
-------------------
t/overload.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=20, Tests=5327, 2 wallclock secs ( 0.28 usr 0.01 sys + 0.76 cusr 0.42 csys = 1.48 CPU)
Result: FAIL
Failed 1/20 test programs. 0/5327 subtests failed.
Makefile:859: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
MIKER/Math-Base-Convert-0.11.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIKER/Math-Base-Convert-0.11.tar.gz
I already ran cpan -u.
CPAN version 1.61, Perl 5.22.0
The diagnostics module gets its explanations for messages from the perldoc file perldiag.pod. Both of these are core parts of perl, but some packaging systems choose to distribute documentation in a separate package that might not be installed even when perl is. In the case of Cygwin this package is perl_pods. Installing that package should make the diagnostics module work properly.

Installing GD library for perl on MacOSX 10.6

I have been trying to install GD library for perl to no avail a long while now. I've tried every little thing I could find on the internets but nothing. I am trying to get Circos graphs which require the GD package.
When I try to install it through CPAN it gives me this error:
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD.t ........ 1/12 Can't load './blib/arch/auto/GD/GD.bundle' for module GD: dlopen(./blib/arch/auto/GD/GD.bundle, 2): Symbol not found: _jpeg_resync_to_restart
Referenced from: /usr/lib/libgd.2.dylib
Expected in: flat namespace
in /usr/lib/libgd.2.dylib at /opt/local/lib/perl5/5.14.1/darwin-multi-2level/DynaLoader.pm line 194.
at t/GD.t line 14
Compilation failed in require at t/GD.t line 14.
BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD.t ........ Dubious, test returned 2 (wstat 512, 0x200)
Failed 12/12 subtests
t/Polyline.t .. Can't load '/Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/arch/auto/GD/GD.bundle' for module GD: dlopen(/Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/arch/auto/GD/GD.bundle, 2): Symbol not found: _jpeg_resync_to_restart
Referenced from: /usr/lib/libgd.2.dylib
Expected in: flat namespace
in /usr/lib/libgd.2.dylib at /opt/local/lib/perl5/5.14.1/darwin-multi-2level/DynaLoader.pm line 194.
at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
Test Summary Report
-------------------
t/GD.t (Wstat: 512 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 2
Parse errors: Bad plan. You planned 12 tests but ran 1.
t/Polyline.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=2, Tests=1, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.04 cusr 0.01 csys = 0.08 CPU)
Result: FAIL
Failed 2/2 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
LDS/GD-2.46.tar.gz
make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports LDS/GD-2.46.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
LDS/GD-2.46.tar.gz : make_test NO
I tried to reinstall jpeg libraries with --enable-shared --enable-static options but didn't help either. I also installed a MacPorts version of perl thinking I might have messed up the perl installation that comes with my mac. Anyone have any idea why this might be happening?
(yes, I'm relatively new to the world of terminal and all this and am still trying to navigate my way around)
Thanks!
I have solved this issue using homebrew to install libgd first, and then cpan. It worked perfectly.
brew install libgd
cpan install GD
i installed it step by step without any problem by
http://zientzilaria.herokuapp.com/blog/2012/06/03/installing-circos-on-os-x/
maybe that helps...
Firstly I'm also a circos user :) It's really not simple to install circos on win/linux/mac for perl and the modules circos needs .
Above my practice you'd better do like this from very begin:
install perl (choose the very popular new version)
install circos (ref http://circos.ca/software/installation/)
install the modules circos needs but exclude GD : this is easy, just download and copy, or install by CPAN (ref http://www.rcbowen.com/imho/perl/modules.html)
install GD : GD is a special module (not platform independently ), and you should build it on your OS and then install : http://www.sharedproteomics.com/forum/showthread.php?325-Installing-GD-on-Mac-OSX-10.6
It looks like your problem is at step3 !!! If Google can not help you to make it, another way to request help is using circos's google group: http://groups.google.com/group/circos-data-visualization there Martin and other circos users will help you directly.
For prerequisite of Circos installation, the documentation from CircosAPI is very helpful. It was written for OSX 10.8, and still works for OS X Yosemite‎.
http://kylase.github.io/CircosAPI/os-x-installation-guide/
You need libgd. If you are using ubuntu & you can get it using
sudo apt-get install libgd-gd2-perl
Then you can follow the normal procedure as mentioned in circos installation instructions.

WWW:Mechanize Perl Module install errors

I am attempting to install the WWW:Mechanize module on my XAMMP server. I have copied the test results that were displayed at the end of the install here:
Test Summary Report
-------------------
t\local\back.t (Wstat: 256 Tests: 47 Failed: 1)
Failed test: 33
Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
TODO passed: 15-17, 19
Files=51, Tests=554, 203 wallclock secs ( 0.51 usr + 0.11 sys = 0.62 CPU)
Result: FAIL
Failed 1/51 test programs. 1/554 subtests failed.
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0xff'
Stop.
PETDANCE/WWW-Mechanize-1.66.tar.gz
nmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PETDANCE/WWW-Mechanize-1.66.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
PETDANCE/WWW-Mechanize-1.66.tar.gz : make_test NO
Can anyone tell me why there are so many errors, and has WWW:Mechanize installed in spite of these errors?
Test 33 in t/local/back.t (in WWW::Mechanize 1.66 anyway) appears to test for 404s on a local loopback HTTP server, created just for testing. It apparently received a different message than expected for the test.
I'd say you'd be fine installing it and ignoring that one test, since the other 553 seem to have succeeded. You can do it by hand by downloading WWW::Mechanize (or going to your CPAN build directory if you know where it is), and running
perl Makefile.PL
make
make test # just try it again, it might have been transient
make install
You may also wish to visit the WWW::Mechanize bug tracker and report this as a bug, if it persists; it would be nice.
EDIT: More on this issue in the bug tracker, so apparently no need to report it. No fix yet, though.
Some time ago I have analyzed this failure. At least to me it does not seem to be a WWW::Mechanize's bug.
Have a look at:
1/ my LWP (HTTP::Daemon) bug report - https://rt.cpan.org/Public/Bug/Display.html?id=62354
2/ my Socket (gethostbyaddr) bug report - http://rt.perl.org/rt3/Ticket/Display.html?id=78364
--
kmx
P.S. sorry can post just 1 link

How can I install HTML-Parser-3.64 on Perl 5.6?

I am trying to install HTML-Parser-3.64 and I get following report while running make test:
ERL_DL_NONLAZY=1 /home/Perl/bin/perl -Iblib/arch -Iblib/lib -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1/sun4.SVR4 -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests #ARGV;' t/*.t
t/api_version........ok
t/argspec-bad........ok
t/argspec............ok
t/argspec2...........ok
t/attr-encoded.......ok
t/callback...........ok
t/case-sensitive.....ok
t/cases..............ok
t/comment............ok
t/crashme............ok
t/declaration........ok
t/default............ok
t/document...........ok
t/dtext..............ok
t/entities...........ok 1/17
t/entities...........NOK 17# Failed test (t/entities.t at line 74)
# got: 'Attention Home&#959&#969n&#1257rs...1&#1109t T&#1110&#1084e E&#957&#1257&#1075'
# expected: 'Attention HomeοÏnÓ©rs...1Ñt TÑмe Eνөг'
# Looks like you failed 1 test of 17.
t/entities...........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 17
Failed 1/17 tests, 94.12% okay
t/entities2..........ok
t/filter-methods.....ok
t/filter.............ok
t/handler-eof........ok
t/handler............ok
t/headparser-http....ok
t/headparser.........ok
4/15 skipped: Need Unicode support
t/ignore.............ok
t/largetags..........ok
t/linkextor-base.....ok
t/linkextor-rel......ok
t/magic..............ok
t/marked-sect........ok
t/msie-compat........ok
t/offset.............ok
t/options............ok
t/parsefile..........ok
t/parser.............ok
t/plaintext..........ok
t/pod................skipped
all skipped: Test::Pod 1.00 required for testing POD
t/process............ok
t/pullparser.........ok
t/script.............ok
t/skipped-text.......ok
t/stack-realloc......ok
t/textarea...........ok
t/threads............skipped
all skipped: Not configured for threads
t/tokeparser.........ok
t/uentities..........ok 1/26# Looks like you planned 26 tests but ran 1 extra.
t/uentities..........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 27
Failed 1/26 tests, 96.15% okay (less 27 skipped tests: -2 okay, -7.69%)
t/unbroken-text......ok
t/unicode-bom........ok
2/2 skipped: This perl does not support Unicode
t/unicode............skipped
all skipped: This perl does not support Unicode
t/xml-mode...........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/entities.t 1 256 17 1 5.88% 17
t/uentities.t 1 256 26 1 3.85% 27
3 tests and 33 subtests skipped.
Failed 2/48 test scripts, 95.83% okay. 0/338 subtests failed, 100.00% okay.
*** Error code 11
make: Fatal error: Command failed for target `test_dynamic'
I have Perl version 5.6.1. and 3.64 version of Parser on Solaris 8.
I have seen following similar error reported by another person on internet at http://www.cpantesters.org/cpan/report/6653478. But could not see any reply or solution for that.
If you are comfortable with the other test results, and you don't expect to use HTML::Parser for pages which require extended character sets, then you can force an install.
From command-line:
$ perl -MCPAN -e 'force install HTML::Parser'
From CPAN command line:
cpan> force install HTML::Parser
From your build directory (if you'd rather not use CPAN):
mv t/entities.t t/entities.tt
mv t/uentities.t t/uentities.tt
make install
You need to report it to HTML::Parser bug tracker. Cpantesters results are only reports, in many cases automatic, so to gain attention of author you need to use bug tracker.
P.S. Upgrading is also a good idea (in case you have no problems of doing this) - Perl has changed much in 9 years from 5.6.1.