Changes between Version 5 and Version 6 of InstallMacHardWay


Ignore:
Timestamp:
Apr 20, 2012 12:44:14 PM (10 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallMacHardWay

    v5 v6  
    11= Installing GSAS-II on Mac OS X =
    22
    3 Prerequisites: Before GSAS-II can be used on your computer, you must have python installed with a number of [PythonPackages required Python packages] (see below.) Further, we recommend using another software package, subversion, to download GSAS-II, but that is already present on most Macs.
     3Prerequisite: Before GSAS-II can be used on your computer, you must have python installed with a number of [PythonPackages required Python packages] (see below.)
    44
    5 If you can help expand any of these instructions, discover new mechanisms for installing Python, or have problems getting this to work, please let [mailto:Brian.Toby@ANL.gov me know].
     5GSAS-II has only been run on Intel (i386) Macs running 10.5 (Leopard) and 10.6 (Snow Leopard). We expect no problems with 10.7 (Lion) or 10.8 (Mountain Lion). 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.
    66
    77=== Python ===
    88
    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 the required !WxPython package runs only in 32-bit python on Macs.
     9Python 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 the required !WxPython package at present runs only in 32-bit python on Macs.
    1010
    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). There is also 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 so far are 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; if this indeed does work, the performance will be poor. Note that at this time, GSAS-II does not support Python 3.0 or greater and Python 2.7 is recommended.
     11We 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+.
    1212
    13 GSAS-II has only been run on Intel (i386) Macs running 10.5 (Leopard) and 10.6 (Snow Leopard). We expect no problems with 10.7 (Lion) or 10.8 (Mountain Lion). Getting GSAS-II to run on 10.4 or PPC Macs may be possible, but will likely require considerable work to build/install python packages and compilers and is not recommended except to the cognoscenti.
    14 
    15  * [http://www.enthought.com/products/epd.php Enthought Python Distribution (EPD)] is a commercially licensed Python package that features differing levels of support. It appears that academic users can obtain this for free at this link http://enthought.com/products/edudownload.php. It is usually distributed as an ~250Mb .dmg file that requires admin privs for installation (but note that at a version that can be installed without admin privs is here: http://www.enthought.com/repo/epd/installers/mac_local/). 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.mpkg installer. Click on that to start the installation process. Note that admin privileges are required to load this package. It works best to run this from the account where you will run GSAS-II and supply the name of the admin account 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:
     13 * The freely distributed [http://www.enthought.com/products/epd_free.php EPDFree] 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:
    1614{{{
    1715# Setting PATH for EPD-7.2-2
     
    2018}}}
    2119
    22  * We have done some testing with the freely distributed [http://www.enthought.com/products/epd_free.php EPDFree] package. This is a ~72Mb .dmg file that also requires admin privs to install. Follow the previous installation directions. [http://www.enthought.com/products/epd_free.php EPDFree] 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.
     20 * [http://www.enthought.com/products/epd.php Enthought Python Distribution (EPD)] is a commercially licensed Python package that features differing levels of support. It appears that academic users can obtain this for free at this link http://enthought.com/products/edudownload.php. It is usually distributed as an ~250Mb .dmg file that requires admin privs for installation (but note that at a version that can be installed without admin privs is here: http://www.enthought.com/repo/epd/installers/mac_local/). Follow the above instructions to install from the .dmg file or type {{{bash epd-7.7-2-macos-i386.sh}}} and follow instructions to install locally.
    2321
    24  * [http://www.activestate.com/activepython ActiveState ActivePython] This is also commercial licensed software. There is a free version with no support. We have not tried this yet.
    25 
    26 === Subversion ===
    27 
    28 Subversion is a software version tracking system that allows you to download and update the GSAS-II software from the APS subversion server (https://subversion.xor.aps.anl.gov/pyGSAS/trunk/). Macs with 10.5 (Leopard) and 10.6 (Snow Leopard) have this. As mentioned, while GSAS-II can probably be run on 10.4, this is probably a lot more work than one would like.
     22 * [http://www.activestate.com/activepython ActiveState ActivePython] is a possible alternative to EPD. This is also commercial licensed software where there is a free version with no support. We have not tried this yet. If it works for you, please let us know.
    2923
    3024=== Compiling Fortran Code ===
     
    4539We prefer that GSAS-II be installed using subversion so that it is easy to get updates (which are frequent). Fortunately, since 10.5, Macs come with subversion installed. This procedure loads GSAS-II using subversion:
    4640
    47 
    4841 1.  Create a folder where you want to install GSAS-II.
    4942
    50  2. Download file bootstrap.py file using this link:
     43 2. Download file {{{bootstrap.py}}} file using this link:
    5144
    5245   https://subversion.xor.aps.anl.gov/trac/pyGSAS/browser/install/bootstrap.py?format=txt
     
    5649   {{{curl https://subversion.xor.aps.anl.gov/pyGSAS/install/bootstrap.py > bootstrap.py}}}
    5750
    58  3. Move that file into the new GSAS-II folder
     51 3. Move the {{{bootstrap.py}}} file into the newly created GSAS-II folder
    5952
    6053 4. Run the bootstrap.py file by double-clicking on it or using the command "python bootstrap.py"
     
    6255 5. This creates a GSASII.app file that can be used to start GSAS-II either by clicking on the app or by dragging a file onto the app. Note that the app file can be dragged to the doc, but it cannot be moved to another folder. Instead, create an alias and move the alias where desired.
    6356
    64  Note that GSAS-II can be updated by use of the bootstrap.py, which will download any newly created or updated program files.
     57Note that GSAS-II can be updated at any time by reusing the {{{bootstrap.py}}} file. This will download any newly created and modify any updated program files.
    6558
    6659=== Errors from GSASII.app ===
     
    6861The error messages from the GSASII.app are placed in a file named GSASIIerrors in the user's home directory
    6962
     63----
     64
     65If you can help expand any of these instructions, discover new mechanisms for installing Python, or have problems getting this to work, please let [mailto:Brian.Toby@ANL.gov me know].
     66
     67