Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

*** NOTE *** This is now resolved. The problem has nothing to do with OSX, but is due to the fact that the version of tar I'm using defaulted to --format=posix rather than the traditional --format=gnu (it appears that this is a recent change in my linux distro -- OpenSuSE). It was also reported to me that other recent modules in CPAN are exhibiting the same behavior, so this problem may become more prevalent in the future. See comments below for more details.

I've had three reports of people unable to install Date::Manip from CPAN on OSX. Unfortunately, I do not have a mac so I haven't been able to do any testing/verification (so I'm definitely sorry about not being able to provide more information).

The problem comes from using the Makefile.PL to install it (if you remove the Makefile.PL and use the Build.PL install script, it works fine). My guess (totally unverified) is that it is somehow related to the number of files. There are hundreds of timezone related .pm files to install, and the number has gradually increased over time, and I suspect that sometime in the past year, the number increased such that there is a line in a file generated from Makefile.PL during the install process that is now longer than some threshold and is causing problems.

The error messages reported look like:

/tmp/PERL_Modules/Date-Manip-6.37:perl Makefile.PL Checking if your kit is complete... Looks good 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 /tmp/PERL_Modules/Date-Manip-6.37/PaxHeaders.4875/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
There is no PaxHeaders directory in my package... it is something generated during the install process (and I'm not familiar with the OSX install process at all).

The Makefile.PL that comes with Date::Manip is absolutely generic... nothing special at all, but is there something that I can add to it to avoid this problem?

Sorry for not being more help... normally I like to be more educated about my posts, or have done more of the background work, but in this case, I'm not able to do much.


In reply to OSX module installation problem by SBECK

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (7)
    As of 2018-06-24 17:48 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (126 votes). Check out past polls.