Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: OSX module installation problem

by VinsWorldcom (Priest)
on Jan 08, 2013 at 14:59 UTC ( #1012252=note: print w/ replies, xml ) Need Help??


in reply to OSX module installation problem

I don't have a Mac either, but I can verify the same problems occur on Windows 7 x64 with Strawberry 5.16.1. Doing the process step-by-step (without using CPAN client):

VinsWorldcom@C:\Users\VinsWorldcom\Downloads> ver Microsoft Windows [Version 6.1.7601] VinsWorldcom@C:\Users\VinsWorldcom\Downloads> perl -v This is perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x +64-multi-thread [... output omitted ...] VinsWorldcom@C:\Users\VinsWorldcom\Downloads> wget http://search.cpan. +org/CPAN/authors/id/S/SB/SBECK/Date-Manip-6.37.tar.gz SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc --2013-01-08 09:50:18-- http://search.cpan.org/CPAN/authors/id/S/SB/S +BECK/Date-Manip-6.37.tar.gz Resolving search.cpan.org... 199.15.176.161 Connecting to search.cpan.org|199.15.176.161|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://cpan.msi.umn.edu/authors/id/S/SB/SBECK/Date-Manip-6.3 +7.tar.gz [following] --2013-01-08 09:50:18-- http://cpan.msi.umn.edu/authors/id/S/SB/SBECK +/Date-Manip-6.37.tar.gz Resolving cpan.msi.umn.edu... 128.101.190.65 Connecting to cpan.msi.umn.edu|128.101.190.65|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2083828 (2.0M) [application/x-gzip] Saving to: `Date-Manip-6.37.tar.gz' 100%[======================================>] 2,083,828 804K/s in + 2.5s 2013-01-08 09:50:21 (804 KB/s) - `Date-Manip-6.37.tar.gz' saved [20838 +28/2083828] VinsWorldcom@C:\Users\VinsWorldcom\Downloads> gunzip Date-Manip-6.37.t +ar.gz VinsWorldcom@C:\Users\VinsWorldcom\Downloads> tar xf Date-Manip-6.37.t +ar tar: Unknown file type 'x' for ./PaxHeaders.4875/Date-Manip-6.37, extr +acted as normal file tar: Unknown file type 'x' for Date-Manip-6.37/PaxHeaders.4875/lib, ex +tracted as normal file tar: Unknown file type 'x' for Date-Manip-6.37/lib/PaxHeaders.4875/Dat +e, extracted as normal file [... output omitted ...] tar: Unknown file type 'x' for Date-Manip-6.37/t/PaxHeaders.4875/dm5.d +ate_today_1.t, extracted as normal file tar: Unknown file type 'x' for Date-Manip-6.37/t/PaxHeaders.4875/date. +cmp.t, extracted as normal file tar: Unknown file type 'x' for Date-Manip-6.37/PaxHeaders.4875/META.ym +l, extracted as normal file VinsWorldcom@C:\Users\VinsWorldcom\Downloads> ls Directory of C:\Users\VinsWorldcom\Downloads [.] [Date-Manip-6.37] [PaxHeaders.4875] [..] Date-Manip-6.37.tar 1 File(s) 15,769,600 bytes VinsWorldcom@C:\Users\VinsWorldcom\Downloads> cd Date-Manip-6.37 vincen_m@C:\Users\vincen_m\Downloads\Date-Manip-6.37> ls Directory of C:\Users\vincen_m\Downloads\Date-Manip-6.37 [.] INSTALL MANIFEST README.first [..] [internal] META.json [t] Build.PL [lib] META.yml [examples] LICENSE [PaxHeaders.4875] HISTORY Makefile.PL README 10 File(s) 266,475 bytes vincen_m@C:\Users\vincen_m\Downloads\Date-Manip-6.37> perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Test::Inter 0 not found. Bareword found where operator expected at ./Makefile.PL line 1, near " +30 mtime" (Missing operator before mtime?) Number found where operator expected at ./Makefile.PL line 2, near "30 +" (Missing semicolon on previous line?) Bareword found where operator expected at ./Makefile.PL line 2, near " +30 atime" (Missing operator before atime?) Number found where operator expected at ./Makefile.PL line 3, near "30 +" (Missing semicolon on previous line?) Bareword found where operator expected at ./Makefile.PL line 3, near " +30 ctime" (Missing operator before ctime?) ERROR from evaluation of C:\Users\vincen_m\Downloads\Date-Manip-6.37\P +axHeaders. 4875/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime +"

Seems like the PaxHeaders.4875 directory is created during the TAR archive extract. Did a "hidden" directory get archived in your tarball on distro creation?


Comment on Re: OSX module installation problem
Download Code
Re^2: OSX module installation problem
by SBECK (Pilgrim) on Jan 08, 2013 at 15:35 UTC

    I'm glad that you replied... so it's not an OSX problem after all. The fact that those were the reports that I'd received was fooling me a bit.

    There is no PaxHeaders directory in the tar archive. I downloaded the tar file from CPAN, and it's the same size as yours, and when I untar it, there is no PaxHeaders directory.

    So I decided to read the tar man page to see if there was something about hidden files in there... and there was a --pax-options which I'd never heard of. It turns out that tar can create an archive in several different formats (including 'gnu' which is supposedly the default, and 'posix' which --pax-options controls). Typically, 'gnu' is the default, but running tar on my system (OpenSuSE 12.2) shows that tar was compiled to default to 'posix'.

    Without a bit of research, I don't know how many releases ago tar switched from 'gnu' to 'posix', but I'll be it's within the last year.

    I have placed a tar file for my development version (which so far doesn't contain any changes over 6.37). The only change is that it was tarred up as 'gnu' format. If you could download it and try to install it to see if the problem goes away, that would be fantastic.

    It's available at: http://sullybeck.com/Date-Manip-6.38.tar.gz

      I've gotten word back from the latest reporter of this problem that the newly tarred file (in 'gnu' format) fixes the problem. I'll be getting a release out with the correct tar format in the next day or so.

      Unfortunately, the latest reporter of this problem said that he's seeing the same problem on other packages, so apparently there are other packages being sent out with the 'posix' format which are potentially going to affect CPAN users, so this might be a more serious problem. If there is somewhere that would be appropriate to document this behavior, that would be good to know.

      Again, this is only for Windows 7 x64 / Strawberry 5.16.1.

      The initial problem is now fixed, but I have a new one - closer to what you suspected originally about a long line.

      VinsWorldcom@C:\Users\VinsWorldcom\Downloads> wget http://sullybeck.co +m/Date-Manip-6.38.tar.gz SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc --2013-01-08 11:04:01-- http://sullybeck.com/Date-Manip-6.38.tar.gz Resolving sullybeck.com... 98.191.85.18 Connecting to sullybeck.com|98.191.85.18|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2005068 (1.9M) [application/x-gzip] Saving to: `Date-Manip-6.38.tar.gz' 100%[=====================================> ] 2,005,068 532K/s in + 4.2s 2013-01-08 11:04:05 (469 KB/s) - `Date-Manip-6.38.tar.gz' saved [20050 +68/2005068] VinsWorldcom@C:\Users\VinsWorldcom\Downloads> gunzip Date-Manip-6.38.t +ar.gz VinsWorldcom@C:\Users\VinsWorldcom\Downloads> tar xf Date-Manip-6.38.t +ar VinsWorldcom@C:\Users\VinsWorldcom\Downloads> cd Date-Manip-6.38 VinsWorldcom@C:\Users\VinsWorldcom\Downloads\Date-Manip-6.38> perl Mak +efile.PL Checking if your kit is complete... Looks good Warning: prerequisite Test::Inter 0 not found. Writing Makefile for Date::Manip Writing MYMETA.yml and MYMETA.json VinsWorldcom@C:\Users\VinsWorldcom\Downloads\Date-Manip-6.38> dmake dmake: makefile: line 3016: Error: -- Input line too long, increase + MAXLINELENGTH

      Line 3016 in question is somewhere in the middle of the statement starting at line 1206 with:

      PM_TO_BLIB = lib/Date/Manip/TZ/inanta00.pm \ blib\lib\Date\Manip\TZ\inanta00.pm \ lib/Date/Manip/TZ/ammend00.pm \ [ ... and on to and past line 3016 ...]

      It seems this error is known for 'dmake' on Strawberry and a "fix" is posted here (although it relies on the user doing something - not something you can include in the Makefile):

      http://www.nntp.perl.org/group/perl.win32.vanilla/2011/02/msg287.html

        Thanks for the info. I'll include a note in my docs for anyone who experiences this problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-12-21 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls