Changes between Version 10 and Version 11 of InstallMacHardWay


Ignore:
Timestamp:
May 6, 2013 1:55:59 PM (9 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallMacHardWay

    v10 v11  
    33Prerequisite: Before GSAS-II can be used on your computer, you must have Python installed with a number of [PythonPackages required Python packages] (see below.) You must also have the subversion (svn) package installed, which is standard on all Macs prior to Mountain Lion (10.8).
    44
    5 GSAS-II has been tested by us on Intel (i386) Macs running 10.5 (Leopard), 10.6 (Snow Leopard) and 10.7 (Lion). We expect no problems with 10.8 (Mountain Lion) but have not tested ourselves. Getting GSAS-II to run on 10.4 or PPC (G4/G5) Macs is likely possible, but will require considerable work since you would need to build python and its packages from source code, subversion and compile the GSAS-II Fortran code; this is not recommended except to the cognoscenti.
     5GSAS-II has been tested by us on Intel (i386) Macs running 10.5 (Leopard), 10.6 (Snow Leopard) and 10.7 (Lion). We have heard from people running with 10.8 (Mountain Lion) but have not tested this ourselves. Getting GSAS-II to run on 10.4 or PPC (G4/G5) Macs is likely possible, but will require considerable work since you would need to build python and its packages from source code and compile the GSAS-II Fortran code; this is not recommended except to the cognoscenti.
     6
     7=== Quick Install Instructions ===
     8
     91.   Install EPDfree, download [https://s3.amazonaws.com/storage.enthought.com/installers/epd_free-7.3-2-macosx-i386.dmg the EPDfree 32-bit Mac installer] from web page https://www.enthought.com/repo/free/. This requires administrator privileges. Note that GSAS-II requires a 32-bit version of Python.
     10
     112. (For 10.7 or earlier, skip this step.) Install Subversion, if running Mountain Lion (OS X 10.8) using http://www.wandisco.com/get/?f=subversion-binaries/1.7/Subversion-1.7.7_10.8.x.pkg or see below for distributions from Apple.
     12
     133. Download file bootstrap.py file from ​https://subversion.xray.aps.anl.gov/trac/pyGSAS/browser/install/bootstrap.py?format=txt and move it to the location where you want GSAS-II to be installed.
     14
     154. Start a terminal window and run the previous file by typing ```<path1>python <path2>bootstrap.py```, where ```<path1>``` is the location where the full python has been loaded. If you are not sure, you can type python on a line by itself and see if you are running EPD python. ```<path2>```` will be where you have installed the bootstrap.py file. Simply clicking on that file might work.
     16
     175. Run GSAS-II with the GSASII.app file created by the bootstrap procedure.
    618
    719=== Python ===
    820
    9 Python is a computer scripting language, which means that one must have the Python interpreter installed on your Mac to run a Python program. Macs come with python installed, but not with all the [PythonPackages Python packages required by GSAS-II] that are not distributed within Python, so some software installation is required. Note that GSAS-II requires the !WxPython package, which at present runs on the Mac only in 32-bit Python.
     21Python is a computer scripting language, which means that one must have the Python interpreter installed on your Mac to run a Python program. Macs do come with python installed, but not with all the [PythonPackages Python packages required by GSAS-II], so some Python software installation is required. '''Note that GSAS-II requires the !WxPython package, which at present runs on the Mac only in 32-bit Python.'''
    1022
    11 We use the [http://www.enthought.com/products/epd.php Enthought Python Distribution] (EPD) package for our code development (Argonne has a site license). We have done some testing with a free version of this package, called [http://www.enthought.com/products/epd_free.php EPDFree] that will run GSAS-II with addition of one small package (see below). Note that the versions of python supplied with OS X seem pretty old, so adding the missing packages is probably not a good idea. Use of the Fink or !DarwinPorts versions of Python is also not the best choice -- the GUI and graphics will be shown in X-windows rather than in Mac style. Note that at this time, Python 2.7 is recommended for GSAS-II; older versions of Python (particularly 2.5 or earlier) may not work. GSAS-II does not yet support Python 3.0+.
     23We use the [http://www.enthought.com/products/epd.php Enthought Python Distribution] (EPD) package for our code development (Argonne has a site license). EPD is being replaced by a newer product, Canopy, which we have not tested. We have done some testing with a free version of this package, called [http://www.enthought.com/products/epd_free.php EPDFree] that will run GSAS-II with addition of one small package (see below). Note that the versions of python supplied with OS X seem pretty old, so adding the missing packages is probably not a good idea. Use of the Fink or !DarwinPorts versions of Python is also not the best choice -- the GUI and graphics will be shown in X-windows rather than in Mac style. Note that at this time, Python 2.7 is recommended for GSAS-II; older versions of Python (particularly 2.5 or earlier) may not work. GSAS-II does not yet support Python 3.0+.
    1224
    13  * The freely distributed [http://www.enthought.com/products/epd_free.php Enthought EPDFree Python package] provides everything one needs to run GSAS-II, except the interface needed for OpenGL graphics ([http://pypi.python.org/pypi/PyOpenGL PyOpenGL]) which can be added; GSAS-II will attempt to install this package for you when first started. [http://www.enthought.com/products/epd_free.php EPDFree] for the Mac is a ~72Mb .dmg file that requires admin privs to install. Installation from the .dmg is easy: click on the file to open it (that might happen automatically when you download it). In that new volume, you will see the EPD_free.mpkg installer. Click on that to start the installation process. It works best to run this from the account where you will run GSAS-II and supply the name of the admin account and its password when requested, as this will cause your login shell setup file to be updated so that directory {{{/Library/Frameworks/Python.framework/Versions/Current/bin}}} is in your path. (This is done by adding lines like this to file ~/.profile:
     25 * The freely distributed [http://www.enthought.com/products/epd_free.php Enthought EPDfree Python package] provides everything one needs to run GSAS-II, except the interface needed for OpenGL graphics ([http://pypi.python.org/pypi/PyOpenGL PyOpenGL]) which can be added; GSAS-II will attempt to install this package for you when first started. Note that Enthought has replaced EPDfree with !CanopyExpress; we have not tested that. To get EPDfree, download [https://s3.amazonaws.com/storage.enthought.com/installers/epd_free-7.3-2-macosx-i386.dmg the EPDfree 32-bit Mac installer] from web page https://www.enthought.com/repo/free/. This is a ~72Mb .dmg file that requires admin privs to install. Installation from the .dmg is easy: click on the file to open it (that might happen automatically when you download it). In that new volume, you will see the EPD_free.mpkg installer. Click on that to start the installation process. It works best to run this from the account where you will run GSAS-II and supply the name of the admin account and its password when requested, as this will cause your login shell setup file to be updated so that directory {{{/Library/Frameworks/Python.framework/Versions/Current/bin}}} is in your path. (This is done by adding lines like this to file ~/.profile:
    1426{{{
    1527# Setting PATH for EPD-7.2-2