Changes between Version 7 and Version 8 of InstallMacHardWay


Ignore:
Timestamp:
Apr 20, 2012 1:03:38 PM (10 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallMacHardWay

    v7 v8  
    1111We 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  * 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:
     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:
    1414{{{
    1515# Setting PATH for EPD-7.2-2
     
    1818}}}
    1919
    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.
     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 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 prompts to install locally.
    2121
    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.
     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.
    2323
    2424=== Compiling Fortran Code ===
    2525
    26 You can probably skip this step: GSAS-II requires a small number of Fortran routines that are incorporated as Python packages (.so files). GSAS-II is distributed with these files compiled for Python 2.7 and Mac OS X 10.5 and 10.6+, but if you are using something that does not match this, you may need to compile the Fortran routines yourself using the !NumPy f2py routine and the compiler of your choice. Both G77 and GFortran have worked on the Mac.
     26You can probably skip this step: GSAS-II requires a small number of Fortran routines that are incorporated as Python packages (.so files). If you use Python 2.7 and ac OS X 10.5 and 10.6+, GSAS-II should run with distributed files. If you are using less common, you may need to compile the Fortran routines yourself using the !NumPy f2py routine and the compiler of your choice. Both G77 and GFortran have worked on the Mac.
    2727
    2828To help with compiling the programs, use the python scons routine inside the GSASII/fsource directory. If you are lucky, this routine will find the needed compiler and python program, set all options correctly for you and run all steps needed to prepare the .so files. This is done by
     
    5151 3. Move the {{{bootstrap.py}}} file into the newly created GSAS-II folder
    5252
    53  4. Run the bootstrap.py file by double-clicking on it or using the command "python bootstrap.py"
     53 4. Run the bootstrap.py file by double-clicking on it or using the command {{{python bootstrap.py}}}
    5454
    5555 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.
     
    6464
    6565If 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