You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The following commands will allow you to run xmgrace,pyplot,gimp,ase on your Macbook Pro Laptop with MacOS X 10.6 (Snow Leopard). It may work on other Macs, but we haven't tried it.

Before doing the following, you must install:

  1. "Xcode" from MacOSX CD "optional installs" (not "applications" CD) that came with your laptop (ask cpo if you don't have a copy)
  2. "macports" from here

Then execute the following commands in a terminal on your mac (assumes bash shell):

export ASE_TAGS=https://svn.fysik.dtu.dk/projects/ase/tags/
svn co -r 1574 $ASE_TAGS/3.4.1 ase-3.4.1
scp youraccountname@noric.slac.stanford.edu:/afs/slac/g/suncat/mac/pyplot-0.11.tar.gz ~
tar xvfz pyplot-0.11.tar.gz
sudo tcsh
port install grace gimp py26-gtk py26-matplotlib
cp -r pyplot /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
cp -r ase-3.4.0 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase
exit

This "port install" command may take several hours (last time we tried: 6). Then include the following lines in ~/.profile (again, assumes bash shell):

export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
alias pyplot='cd /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyplot; python pyplot.py; cd -'
alias ag='/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase/tools/ag'
  • No labels