[Yt-svn] yt: Adding a quick note about gcc-4.2

hg at spacepope.org hg at spacepope.org
Mon Feb 14 08:10:56 PST 2011


hg Repository: yt
details:   yt/rev/b48039cd4f79
changeset: 3732:b48039cd4f79
user:      Matthew Turk <matthewturk at gmail.com>
date:
Mon Feb 14 11:10:52 2011 -0500
description:
Adding a quick note about gcc-4.2

diffstat:

 doc/install_script.sh |  14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r f4a81a66bf1a -r b48039cd4f79 doc/install_script.sh
--- a/doc/install_script.sh	Sun Feb 13 18:20:51 2011 -0500
+++ b/doc/install_script.sh	Mon Feb 14 11:10:52 2011 -0500
@@ -72,6 +72,7 @@
 {
     MYHOST=`hostname -s`  # just give the short one, not FQDN
     MYHOSTLONG=`hostname` # FQDN, for Ranger
+    MYOS=`uname -s`       # A guess at the OS
     if [ "${MYHOST##kraken}" != "${MYHOST}" ]
     then
         echo "Looks like you're on Kraken."
@@ -134,6 +135,19 @@
         echo "   $ module load gcc"
         echo
     fi
+    if [ "${MYOS##Darwin}" != "${MYOS}" ]
+    then
+        echo "Looks like you're running on Mac OSX."
+        echo
+        echo "NOTE: You may have problems if you are running OSX 10.6 (Snow"
+        echo "Leopard) or newer.  If you do, please set the following"
+        echo "environment variables, remove any broken installation tree, and"
+        echo "re-run this script verbatim."
+        echo
+        echo "$ export CC=gcc-4.2"
+        echo "$ export CXX=g++-4.2"
+        echo
+    fi
 }
 
 



More information about the yt-svn mailing list