15d84 Installing Perl 5.14 on FreeBSD 9.0 amd64 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old February 12th, 2012, 23:56
mattruut mattruut is offline
Junior Member
 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing Perl 5.14 on FreeBSD 9.0 amd64

I just downloaded FreeBSD 9.0 amd64 and am using it to set up a home server. I've hit a snag trying to install Perl 5.14 from the lang/perl5.14 port.

The port will compile correctly, but it fails the make test suite. Here are the errors from the test suite:

Code:
#   Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 456.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 469.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'x/w''
#   at t/01_Archive-Extract.t line 476.
#          got: undef
#     expected: 'x/w'

#   Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x/w' exists'
#   at t/01_Archive-Extract.t line 479.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 481.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 483.

#   Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x''
#   at t/01_Archive-Extract.t line 485.
#          got: undef
#     expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x'

#   Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 456.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 469.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'x/w''
#   at t/01_Archive-Extract.t line 476.

#   Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x/w' exists'
#   at t/01_Archive-Extract.t line 479.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 481.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 483.

#   Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x''
#   at t/01_Archive-Extract.t line 485.
#          got: undef
#     expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/x'

#   Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 456.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 469.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 476.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 479.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 481.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 483.

#   Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 485.
#          got: undef
#     expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 456.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 469.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 476.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 479.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 481.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 483.

#   Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 485.
#          got: undef
#     expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y'
^M../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 218/?
#   Failed test 'extract() for 'y.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 456.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 469.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 476.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 479.

#   Failed test 'Extract dir is expected '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 485.
#          got: undef
#     expected: '/usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/t/out'
^M../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 1066/? # Looks like you failed 98 tests of 1560.
^M                                                                            ^M../cpan/Archive-Extract/t/01_Archive-Extract.t
 .................... Dubious, test returned 98 (wstat 25088, 0x6200)
Failed 98/1560 subtests
        (less 478 skipped subtests: 984 okay)
Then the bottom is:
Code:
Test Summary Report
-------------------
../cpan/Archive-Extract/t/01_Archive-Extract.t                  (Wstat: 25088 Tests: 1560 Failed: 98)
  Failed tests:  87, 89-94, 98, 100-105, 111, 113-118, 122
                124-129, 255, 257-262, 266, 268-273, 495
                497-502, 506, 508-513, 663, 665-670, 674
                676-681, 759, 761-766, 770, 772-777, 831
                833-838, 842, 844-849
  Non-zero exit status: 98
../ext/POSIX/t/posix.t                                          (Wstat: 0 Tests: 66 Failed: 0)
  TODO passed:   11
Files=2089, Tests=464818, 816 wallclock secs (49.34 usr  8.55 sys + 433.38 cusr 57.27 csys = 548.54 CPU)
Result: FAIL
*** Error code 98

Stop in /usr/ports/lang/perl5.14/work/perl-5.14.2.
*** Error code 1

Stop in /usr/ports/lang/perl5.14.
I've tried to install Perl 5.12 with the same results. I originally thought it might be a problem in the ports tree, so I reinstalled FreeBSD 8.2 amd64, but had no problems with it. I'm not a Perl programmer, so I have little idea how to go about resolving this.

The only other ports I've installed are shells/bash, editors/nano and maybe archivers/zip. Here's the current listing from pkg_info:
Code:
bash-4.2.20         The GNU Project's Bourne Again SHell
bison-2.5,1         A parser generator from FSF, (mostly) compatible with Yacc
gettext-0.18.1.1    GNU gettext package
libiconv-1.13.1_1   A character set conversion library
libtool-2.4.2       Generic shared library support script
m4-1.4.16,1         GNU m4
nano-2.2.6          Nano's ANOther editor, an enhanced free Pico clone
portaudit-0.5.17    Checks installed ports against a list of security vulnerabi
unzip-6.0_1         List, test and extract compressed files in a ZIP archive
zip-3.0             Create/update ZIP files compatible with pkzip
Thanks for any help.

Last edited by DutchDaemon; February 13th, 2012 at 02:32.
Reply With Quote
  #2  
Old February 13th, 2012, 22:00
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I just want to confirm the similar problem on two newly installed servers.
- #1: running FreeBSD 9.0-RELEASE amd64. Succcessful threaded Perl 5.14.2 compilation, but # make test fails;
- #2: running FreeBSD 9.0-RELEASE i386. Successful threaded Perl 5.14.2 compilation, # make test fails. The same result on this server with threaded Perl 5.12.4.

Please help!
Reply With Quote
  #3  
Old February 14th, 2012, 00:43
mattruut mattruut is offline
Junior Member
 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After some more digging, I've found that modifying the file 01_Archive-Extract.t from:

Code:
use_ok($Class);
to:

Code:
BEGIN { use_ok($Class) };
changes the error. Now I get:

Code:
Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 853.
Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 861.
../cpan/Archive-Extract/t/01_Archive-Extract.t .................... 1/?
#   Failed test 'use ;'
#   at t/01_Archive-Extract.t line 41.
Use of uninitialized value $module in concatenation (.) or string at /usr/ports/lang/perl5.14/work/perl-5.14.2/cpan/Archive-Extract/../../lib/Test/More.pm line 867.
#     Tried to use ''.
#     Error:  syntax error at (eval 11) line 2, near "use  @"
Can't locate object method "have_old_bunzip2" via package "Archive::Extract" at t/01_Archive-Extract.t line 215.
# Looks like you failed 1 test of 1.
# Looks like your test exited with 255 just after 1.
../cpan/Archive-Extract/t/01_Archive-Extract.t .................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
I still have no idea what's going on, or how to fix this. Also, I downloaded FreeBSD 9 amd64 within a day of it being released. The first time I installed it, I didn't have this problem.

Again, any help is appreciated.

Last edited by DutchDaemon; February 14th, 2012 at 00:55.
Reply With Quote
  #4  
Old February 14th, 2012, 06:43
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I need to emphasize this error occured twice on two fresh installed servers from scratch. The only commands executed there after initial install were to install cvsup-without-gui and to upgrade the port tree via cvsup ports-supfile
On the other hand on binary upgraded third i386 platform from 8.2-RELEASE-p6 to 9.0-RELEASE by using freebsd-update -r 9.0-RELEASE upgrade recompiling the userland with portupgrade -af returned no errors at all.

Last edited by DutchDaemon; February 15th, 2012 at 00:14. Reason: re-read: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #5  
Old February 16th, 2012, 01:38
mattruut mattruut is offline
Junior Member
 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anybody have any ideas on this? I've been trying to solve it for the past three days now and am not making any progress.
Reply With Quote
  #6  
Old March 5th, 2012, 13:39
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe all the users are installing precompiled Perl package on FreeBSD 9.0-RELEASE...
Reply With Quote
  #7  
Old March 5th, 2012, 13:51
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Port builds, installs and works fine.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #8  
Old March 8th, 2012, 11:51
richdawes richdawes is offline
Junior Member
 
Join Date: Feb 2011
Location: San Diego, Calif. (USA)
Posts: 2
Thanks: 1
Thanked 3 Times in 1 Post
Default

Long story short... Archive::Extract(3) expects the more common "InfoZIP" version of 'unzip' to be in the base system, while FreeBSD (since 8.0) has taken that name for its own lite version of the command.

*IF* having Archive::Extract work for typical .zip files is important to you or your users:

1) Install the archivers/unzip port
2) Set your PATH variable so that /usr/local/bin is read prior to /usr/bin, or otherwise munge the files' names/locations in such a way that which(1/builtin) returns the InfoZIP version. rehash, hash -r, or what as needed.
3) Reinstall lang/perl5.XX
4) Rerun "make test" to verify

Step (2) is necessary because Archive::Extract is really pretty dumb, and there isn't much of any way around it that I can see.

Good luck!

Last edited by DutchDaemon; March 9th, 2012 at 01:08. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #9  
Old March 15th, 2012, 11:34
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much richdawes! It works this way.
Reply With Quote
  #10  
Old March 15th, 2012, 13:31
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,828
Thanks: 30
Thanked 1,886 Times in 1,331 Posts
Default

@mattruut - does this solve things for you as well?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #11  
Old April 16th, 2012, 13:39
swills swills is offline
Junior Member
 
Join Date: Nov 2008
Posts: 58
Thanks: 3
Thanked 2 Times in 2 Posts
Default

richdawes is correct, this is due to /usr/bin/unzip not supporting the -Z1 flag and really only important if you care about having Archive::Extract work. I recently submitted a change to add support for this and it was committed and MFC'd to stable/8 and stable/9. Using the latest and greatest should fix it, as does having the archivers/unzip port installed. Another potential work around is to install a newer version of Archive::Extract from the archivers/p5-Archive-Extract port.

Last edited by DutchDaemon; April 16th, 2012 at 15:53. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Error while installing awesome wm on FreeBSD AMD64 mnjagadeesh Installation and Maintenance of FreeBSD Ports or Packages 2 October 11th, 2011 10:35
Installing FreeBSD 8.2 amd64 on Thinkpad W520 hangs on atkbd0 ipyakuza Mobile Computing 3 August 12th, 2011 17:07
installing wine on FreebSD 7.2 amd64 jemate18 Installation and Maintenance of FreeBSD Ports or Packages 14 February 24th, 2010 03:49
Installing FreeBSD-7.2-amd64 to USB Pen Drive venomous Installing & Upgrading 1 January 4th, 2010 17:47
Build threaded perl option, would you want to as a SOP for installing perl? johnblue Installation and Maintenance of FreeBSD Ports or Packages 1 April 12th, 2009 10:15


All times are GMT +1. The time now is 22:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0