in reply to Re^3: What is the right value of $^O to identify Mac OS X?
in thread What is the right value of $^O to identify Mac OS X?

The question is, how to know if I'm on Darwin or on Mac OS X using pure Perl!

The biggest difference will be only the default installation path to the R binaries.

Graciliano M. P.
"Creativity is the expression of the liberty".

  • Comment on Re: Re^3: What is the right value of $^O to identify Mac OS X?

Replies are listed 'Best First'.
Re^5: What is the right value of $^O to identify Mac OS X?
by adrianh (Chancellor) on Apr 30, 2004 at 17:52 UTC
    The question is, how to know if I'm on Darwin or on Mac OS X using pure Perl!

    Just to re-iterate Mac OS X is Darwin, just like Redhat and Slackware are both Linux. You cannot be on a Mac OS X system and not be on Darwin.

    If you want to know whether your R binaries are in /Library/Frameworks then knowing the difference between a Mac OS X box and any other Darwin box isn't going to help you.

    Frameworks are a Darwin way of bundling stuff together. A non-Mac OS X box running Darwin is also likely to have R in /Library/Frameworks.

    (Equally, a Mac OS X box may not have the R binaries in /Library/Frameworks because whoever installed it compiled it from source and chucked it somewhere else.)