[Yt-svn] yt-commit r1309 - trunk/doc

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue May 19 13:45:46 PDT 2009


Author: mturk
Date: Tue May 19 13:45:46 2009
New Revision: 1309
URL: http://yt.spacepope.org/changeset/1309

Log:
Fixing issues with compiling with gfortran on ... most systems.  Additionally,
adding some host specific notices for verne and kraken to ensure we're in the
right programming environment.



Modified:
   trunk/doc/install_script.sh

Modified: trunk/doc/install_script.sh
==============================================================================
--- trunk/doc/install_script.sh	(original)
+++ trunk/doc/install_script.sh	Tue May 19 13:45:46 2009
@@ -55,6 +55,27 @@
     fi
 }
 
+function host_specific
+{
+    MYHOST=`hostname -s` # just give the short one, not FQDN
+    if [ "${MYHOST##kraken}" != "${MYHOST}" ]
+    then
+        echo "BE SURE TO EXECUTE"
+        echo "   $ module swap PrgEnv-pgi PrgEnv-gnu"
+        echo
+        return
+    fi
+    if [ "${MYHOST##verne}" != "${MYHOST}" ]
+    then
+        echo "NOTE: YOU MUST BE IN THE GNU PROGRAMMING ENVIRONMENT"
+        echo "This command will take care of that for you:"
+        echo
+        echo "   $ module swap PE-pgi PE-gnu"
+        echo
+    fi
+}
+
+
 echo
 echo
 echo "========================================================================"
@@ -106,6 +127,7 @@
 echo "If you'd rather stop, maybe think things over, even grab a sandwich, "
 echo "hit Ctrl-C."
 echo
+host_specific
 echo "========================================================================"
 echo
 read -p "[hit enter] "
@@ -252,7 +274,8 @@
     cd ../..
 fi
 
-export LDFLAGS="${LDFLAGS} -L${DEST_DIR}/lib/ -L${DEST_DIR}/lib64/"
+# This fixes problems with gfortran linking.
+unset LDFLAGS 
 
 echo "Installing setuptools"
 ( ${DEST_DIR}/bin/python2.6 ${YT_DIR}/ez_setup.py 2>&1 ) 1>> ${LOG_FILE} || do_exit



More information about the yt-svn mailing list