Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://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.

Thanks


In reply to OSX module installation problem by SBECK

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found