Difference between revisions of "HowTo:GNUOSX"

From Predictive Chemistry
Jump to: navigation, search
(Created page with "Quit awhile ago, Apple switched to BSD's kernel and libraries for the guts of its OSX. This means that you can already access the Unix terminal from the Utilities folder. Newer…")
 
Line 8: Line 8:
 
#* or, just install the cmd line to begin: [https://developer.apple.com/downloads/index.action?=Command%20Line%20Tools%20%28OS%20X%20Mountain%20Lion%29]
 
#* or, just install the cmd line to begin: [https://developer.apple.com/downloads/index.action?=Command%20Line%20Tools%20%28OS%20X%20Mountain%20Lion%29]
 
#* or directly at [http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_10_8_late_july_2012.dmg]
 
#* or directly at [http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_10_8_late_july_2012.dmg]
#** this can be installed without the giant XCode IDE
+
#** this can be installed without the giant XCode IDE, but you have to <pre>mv /usr/bin/xcrun{,.old}; xcode-select -switch /usr/bin</pre> and then create ''/usr/bin/xcrun'' with the following:
  +
<source lang="bash">#!/bin/sh
  +
case $1 in
  +
-*)
  +
echo "Option '$1' not implemented."
  +
exit
  +
esac
  +
$@
  +
</source>
 
# Install gfortran following the instructions at: [http://r.research.att.com/tools/]
 
# Install gfortran following the instructions at: [http://r.research.att.com/tools/]
 
#* Use the CRAN mirror at: [http://cran.r-project.org/bin/macosx/tools/]
 
#* Use the CRAN mirror at: [http://cran.r-project.org/bin/macosx/tools/]

Revision as of 14:58, 3 September 2013

Quit awhile ago, Apple switched to BSD's kernel and libraries for the guts of its OSX. This means that you can already access the Unix terminal from the Utilities folder. Newer versions (like 10.8 here) are making some of those developer-friendly features harder to find - so let's briefly summarize how to get them back.

  1. Start with basic Apple setup: mail, calendar and sync. These are pretty easy due to their large user base.
    • To get multiple workspaces, you have to click the "+" on the top right of the "Mission Control" screen.
  2. Install the XCode package - https://developer.apple.com/xcode/
    • word has it that Starting with Xcode 4.3 - you must now manually install command line tools from Xcode menu > Preferences > Downloads
    • Apple is working hard to update the compiler toolchain by rewriting the monolithic GCC into a programming-language friendly LLVM framework with the CLANG compiler, so you'll see that GCC dependence is shrinking and LLVM is installed.
    • or, just install the cmd line to begin: [1]
    • or directly at [2]
      • this can be installed without the giant XCode IDE, but you have to
        mv /usr/bin/xcrun{,.old}; xcode-select -switch /usr/bin
        and then create /usr/bin/xcrun with the following:

<source lang="bash">#!/bin/sh case $1 in

   -*)
       echo "Option '$1' not implemented."
       exit

esac $@ </source>

  1. Install gfortran following the instructions at: [3]
    • Use the CRAN mirror at: [4]
    • I've found this package to work well.
    • It says not to use the compilers from HPC...
  2. Install X11 using XQuartz [5] - or find the link through Finder -> Applications -> Utilities -> X11
  3. Now you're ready to install a package manager. I recommend Fink,[fink.sf.net] since it's based on Debian's dpkg system, the packages are easy to make, and I've made a few of them too.
  4. See Some Productive Programs for useful GNU software.
  5. Don't forget TexShop [6] [7], Keynote, and Pages for papers, presentations, and posters.
    • Just drag TexShop to the Applications Folder.
    • Apple and MS software is available from the Library computer support desk here at USF
    • These often work much better than the port of Powerpoint because of the slowness of MS font rendering on the Mac.