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

The value of $^O on Mac OS X is "darwin" because, at the Unix level, it is just another darwin based OS. All the Mac OS X specific stuff is built on top of the darwin core.

What Mac OS X specific 'communication bridge' are you using? You will probably need to test for that separate from the OS.

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

Replies are listed 'Best First'.
Re: Re: What is the right value of $^O to identify Mac OS X?
by gmpassos (Priest) on Apr 29, 2004 at 16:54 UTC
    The module has a bridge class for each OS. I really need to build one for Mac OS X since the installation of R-project on it is different.

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

      I'm still unsure what you mean by "bridge class".

      The Mac OS X install of R installs the same sort of things as any other Unix variant of R (ignoring the Aqua GUI). You should be able to treat it like any other Unix.

      The binary distribution puts it all in a Mac OS framework, but that should only be a case adding /Library/Frameworks/R.framework/Resources/bin and friends to the normal paths you would search for R in.

      One would hope that the search paths would be user configurable anyway for those who do not / cannot install R in the default location.

      What am I missing? What exactly do you need to do differently on 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".