Mavericks' perl broken? seems to be missing ctime.pl

When I run:
perl -e 'require "ctime.pl"; print "Hello\n";'
..it works normally on all OSX machines (it prints 'hello'),
but on /all/ my new Mavericks machines (e.g. 10.9.2), it throws this error:
$ perl -e 'require "ctime.pl"; print "Hello\n";'
Can't locate ctime.pl in @INC (@INC contains: /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at -e line 1.
Other people seem to be able to confirm this as well..
Is this a bug that should be reported?

OK, so looked into this.
Not an Apple problem, but a perl issue; apparently comments in the perl ctime.pl header
have been warning since 5.12:
;# ctime.pl is a simple Perl emulation for the well known ctime(3C) function.
# This library is no longer being maintained, and is included for backward
# compatibility with Perl 4 programs which may require it.
# This legacy library is deprecated and will be removed in a future
# release of perl.
So its absence is not a bug, but a deprecation that has been planned for a while,
and has suddenly 'happened' somewhere between 5.12 and 5.16.
According to this page:
http://search.cpan.org/~rjbs/perl-5.16.0/pod/perldelta.pod#Removed_Modules_and_P ragmata
..it says:
Several old perl4-style libraries which have been deprecated with 5.14 are now removed:
    abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl
    complete.pl ctime.pl dotsh.pl exceptions.pl fastcwd.pl flush.pl
    getcwd.pl getopt.pl getopts.pl hostname.pl importenv.pl
    lib/find{,depth}.pl look.pl newgetopt.pl open2.pl open3.pl
    pwd.pl shellwords.pl stat.pl tainted.pl termcap.pl timelocal.pl
..ctime.pl being part of that list.
Oh, great. Pff, I hate when languages just drop old syntax.
I wouldn't mind if it was a jump from 5.xx to 6.0, but It isn't even a major release of perl.
Anyway, sounds like they want us to change our code to use POSIX::ctime instead,
which is what I'll do.
But if you absolutely don't want to change old code, a possible workaround
for the missing ctime.pl is to run as root (at least for Mavericks 10.9.2 anyway):
    1) cp /System/Library/Perl/5.12/ctime.pl /System/Library/Perl/5.16/
    2) Comment out this line in the 5.16 copy, because it generates an error:
             local($[) = 0;
Regarding that $[ change, that variable is no longer changeable and is always zero
(according to 'man perlvar'), so that line shouldn't be needed in 5.16 anyway.
With the above change in place, old code's use of ctime() works normally again, e.g.
# sw_vers
ProductName:    Mac OS X
ProductVersion:    10.9.2
BuildVersion:    13C64
# perl -e 'require "ctime.pl"; print ctime(time());'
Thu Mar  6 13:11:36 2014
# date
Thu Mar  6 13:11:38 PST 2014
In my case I'll change my code to use POSIX::ctime(), as I'd rather do that than hack the OS files..

Similar Messages

  • Enhance/Color Adjust/Color variation, seems to be missing in PSE 12. Can I install another version of PSE to Macbook pro Maverick 10.9.3 that has that feature? I use it ALL the time...

    Enhance/Color Adjust/Color variation, seems to be missing in PSE 12. Can I add/install another version of PSE to Macbook pro Maverick 10.9.3 that has that feature? I use it ALL the time... Thanks.

    Enhance/Color Adjust/Color variation, seems to be missing in PSE 12. Can I add/install another version of PSE to Macbook pro Maverick 10.9.3 that has that feature? I use it ALL the time... Thanks.

  • I seem to be missing parts of a document that was saved on iCloud.

    I seem to be missing parts of a document that was saved on iCloud. The problem occurred when I was updating to mavericks and my imac when into recovery mode. I spoke to apple and the advised me to erase the harddrive as the all the documents was saved on icloud and start again. Since then all the documents seem to be there but sections seem to be missing on a very large document. Does anyone know how to get the full version back?
    Thanks in advance

    If you erased your hard drive, you may well have erased any relevant copies that might have helped you restore your document. You might try opening the document and seeing if there are any previous versions available to you via file > revert to.

  • Broken Keynote themes and missing bullets

    Since I last created and played a Keynote presentation on Dec 1st, something happened and many of my themes are not fully functional. My "Retro" and "Craft" themes give the warning: "One or more colors could not be properly read, and may not display correctly on some systems." The background for those slides was missing (blank with an X through it) and many small images and bullets were also missing (with X and ? symbols instead). The slides in the preview window are correct though.
    Venetian, Kyoto and Moroccan gave the same error message, but only seem to be missing bullets.
    Harmony, Vellum, Industrial, Scrapbook, Hard Cover, Water Color and Pushpin didn't give an error message but were still missing bullets.
    I'm running Keynote 5.0.3, and the last two updates I ran since creating a working presentation with the Retro theme and noticing the brokenness were "Java for Mac OSX 10.5 Update 6" and "Digital Camera Raw Compatibility Upd 2.7". In both cases my machine did not correctly reboot itself, but the updates claim they were successfully installed.
    Rebooting didn't help. Do I need to reinstall iWork? Does anyone have any idea what happened?

    My guess is you're actually editing regular slides and not the masters. Choose Show Master Slides from the little view pop-up menu in the tool bar and you'll see the Master slide area appear above the regular slides. Edit THOSE and your changes will stick.
    Then take a look at this tutorial:
    http://www.keynoteuser.com/tips/savingtheme.html
    Now, once you've got a theme, the only EMPTY text containers that can be placed on a master are the Title and Body boxes. Anything else on a Master will be locked in, but you CAN put text on a master and it will show up on all slides that use that master.
    As for your bullet points...
    1. Yeah, others have found 3rd party solutions for this that work well. Hopefully someone will chime in on that.
    2. Yeah, it's lacking in that area, though you can put a bunch of shapes on a slide in PPT and then open that PPT file in Keynote and most of them will come into Keynote with the stoke and fill still editable (a little hidden feature few know about).
    3. You can drag speech bubbles across themselves in any direction and they'll flip over, without the text flipping over.

  • HT201272 Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes acc

    Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes account.

    Hello there, Capricious13.
    There are great pointers in the following Knowledge Base article. Depending on where you see the content and where you want to get it to, this should guide you to putting it in the right place:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Mavericks has broken most stock apps, app store ,preview, messages, facetime ect the list goes on they bounce in the menu then nothing its been like that since installing mavericks fixed briefly by reinstalling but then stopped again very quickly

    mavericks has broken most stock apps, app store ,preview, messages, facetime ect the list goes on they bounce in the menu then nothing its been like that since installing mavericks fixed briefly by reinstalling but then stopped again very quickly
    any help ?

    You most likely ran a defective third-party "utility" such as "CleanMyMac" or "MacCleanse" that purports to "clean up" "junk" files. What it really does is to corrupt the operating system and many applications.   
    The first thing you need to do is remove that software according to the developer's instructions. Never install it, or anything like it, again. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Target is in broken state. Reason - Missing Properties

    Hi,
    Both the instances are up and running. But the OEM shows that the second instance is not. And I fount the following error in the metric collection errors
    " Target is in broken state. Reason - Missing Properties "
    Can some body help me please
    Thanks

    Please configure the dbsnmp password .

  • How do I enable Java? I seem to be missing a plug in.

    I seem to be missing a plug in .How do I enable java?

    You need Acrobat. Reader doesn't have the ability to enable Reader's signing ability in a document.

  • In past versions of FireFox there was a view option that allowed a change in size of fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6.

    In past versions of FireFox there was a view option that allowed a change in size of fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6. It was very useful and needs to be added to version 6.

    You can use "Ctrl +" and "Ctrl -" to zoom pages quickly and "Ctr 0" (zero) to reset the page zoom.
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    There are also page zoom buttons in the toolbar palette in the Customize window that you can drag on a toolbar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • HT4850 I seemed to have missed the whole ordeal of keeping my 10.4.11 os x powerpc up to date.  Are these suggestions still viable as I have been getting all sorts of console errors which now seem to lead me to this researched destination?

      I seemed to have missed the whole ordeal of keeping my 10.4.11 os x powerpc up to date.  Are these suggestions still viable as I have been getting all sorts of console errors which now seem to lead me to this researched destination?  The suggestions involve putting "sudo"  in Terminal Application and I am assuming that with all the console errors now being generated by my "permissions fixer" that this might be the reason...missed the class and updates as I never had problems like these before and the technology is changing.  Have a whole list of console errors if someone is willing to help as I also think I have hit the motherload as to the reasons why?!

      I seemed to have missed the whole ordeal of keeping my 10.4.11 os x powerpc up to date.  Are these suggestions still viable as I have been getting all sorts of console errors which now seem to lead me to this researched destination?  The suggestions involve putting "sudo"  in Terminal Application and I am assuming that with all the console errors now being generated by my "permissions fixer" that this might be the reason...missed the class and updates as I never had problems like these before and the technology is changing.  Have a whole list of console errors if someone is willing to help as I also think I have hit the motherload as to the reasons why?!

  • I just purchased a macbook pro and was wondering about an install disk.  It seems to be missing some of the applications that should be on it from a fresh install.  I was wondering if I would have to purchase a new OS and do a fresh install?

    I just purchased a macbook pro and was wondering about an install disk.  It seems to be missing some of the applications that should be on it from a fresh install.  I was wondering if I would have to purchase a new OS and do a fresh install?

    Ahhh, well  you never mentioned that before. You need to contact your friend from whom you purchased the computer. He/She should have any and all install discs for any third-party software included as well as for OS X and the original pre-installed software.
    Apple will gladly sell you replacements for any discs that did come with the computer originally, but they will not do anything for you because you purchased the computer used. If it's in warranty still, then you can get any warranty covered things taken care of through AppleCare:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support visit online support site.

  • I seem to be missing DAQmx VIs?

    I installed v 7.0, and then tried to run an example DAQmx VI from the developer zone. However, the VI can not start because a lot of DAQmx VIs seem to be missing. Doing a search on my Labview 7.0 directory, I do not find any VIs starting with DAQmx*.vi.
    Furthermore, choosing Functions|input, I do not see the DAQ assistant (I think that is what it is supposed to be called?)
    p.s. I am using the Prof devel system version/

    Hey!
    You have to download the DAQmx from http://digital.ni.com/softlib.nsf/websearch/BEC182021CEB566C86256EEE00696562?opendocument&node=132060_US
    Josteid

  • Reference monitor seems to be missing the setup option

    http://imageshack.us/f/11/referencemonitor.jpg/
    My reference monitor seems to be missing the setup option also it is displaying in a format I do not understand.

    I'm based in th UK and working with PAL mini DV. I imported the footage in and then created the sequences using a clip, so the sequence settings should be correct and having checked them, it seems they are. Admittedly, I've never used this function before and this: http://library.creativecow.net/articles/devis_andrew/YC-Waveform-graph-Premiere-Pro/video- tutorial is my frame of reference. The problem I have is I cannot convert the scale he is working with (IRE) to what I'm working with (V). 

  • Compression seems to be missing on export...

    When I export my mix and then listen back to the clip from the browser the compression seems to be missing. Then when I drop the clip back into the timeline, put it on a new track outputted through a seperate bus with no fx or compression it seems to be o.k. When imported into itunes compression also seems to be missing.. Any suggestions...
    I don't think it's listener fatigue!
    Help...

    Thanks For Getting Back To Me I Tried That , Its The Airplay Button / Symbol That Is Missing On Videos ,Then Home Videos Its Not There To Switch
    It Is There On Photo's But Not On Video , At The Moment I Switch it On Through  Photo't That Is The Only Way I Can Get It To Stream

  • Since I downloaded Mavericks, my Mac seems to be running much slower. Anyone else have similar issues?

    Since I downloaded Mavericks, my Mac seems to be running much slower. Anyone else have similar issues?

    http://support.apple.com/kb/PH13895

Maybe you are looking for