Changes between Version 26 and Version 27 of InstallMacHardWay


Ignore:
Timestamp:
Jan 20, 2020 4:38:43 PM (21 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallMacHardWay

    v26 v27  
    11= Installing GSAS-II on Mac OS X =
    22
    3 GSAS-II has been tested by us on Intel (i386) Macs typically running 10.12. Newer versions of OS X should not be a problem. Versions of OS X as old as 10.6 should work, but you will need to find and install older Python distributions -- see section III below.
     3Most Mac users will be able to install GSAS-II [InstallMac using simple instructions (here)]. Alternately, if you are already a user of Anaconda Python and do not want to install yet another version of Python on your computer, you can use the conda package manager in Anaconda to install GSAS-II for you with a simple terminal window command:
     4{{{
     5conda install gsas2pkg -c briantoby
     6}}}
     7[wiki:InstallConda See here] for more information on this.
    48
    5 == I. Installing the easy way ==
    6 
    7 Most people will install GSAS-II by downloading a single file that contains all needed Python packages and then launches a script that downloads the appropriate files from the GSAS-II svn server. Use [MacSingleStepInstaller the instructions here] and please report any problems.
    8 
    9 == II. Installing for Anaconda Enthusiasts ==
    10 
    11 If you are already a user of Anaconda Python, then you may not want to install yet another version of Python on your computer. If so, you can use the conda package manager in Anaconda to install GSAS-II for you with a simple terminal window command:
    12 
    13 conda install gsas2pkg -c briantoby
    14 
    15 See here for more information on this.
    16 
    17 == III. Installing Python etc. Manually ==
     9== Installing Python etc. Manually ==
    1810
    1911Note that Before GSAS-II can be used on your computer, you must have Python 2.7.x or Python 3.6+ installed with a number of [PythonPackages required Python packages] (see below.) You will also need to have subversion (svn) installed.
     
    2315=== Overview for Manual Installation ===
    2416
    25 ''Please don't do this unless you have to. The [MacSingleStepInstaller single-step installer] is so much easier than the instructions below.''
     17''Please don't do this unless you have to. The [InstallMac single-step installer] is so much easier than the instructions below.''
    2618
    2719
    28201. **Python**:  We recommend use of [https://www.continuum.io/downloads Anaconda Python], but we previously made extensive use of the older 32-bit EPDfree Python distribution, which can be  [https://s3.amazonaws.com/storage.enthought.com/installers/epd_free-7.3-2-macosx-i386.dmg the downloaded here] -- note this requires administrator privileges to install. Another good choice is Canopy from [https://www.enthought.com/downloads/ Enthought downloads]
    2921
    30 2. **Install Subversion**: (For 10.7 or earlier, skip this step; if using anaconda, you can also use the "conda install svn" command as an alterative to this step.)  For Mountain Lion (OS X 10.8+) or later type svn into a terminal window ([InstallNotesMavericks as shown here]) to get a prompt from OS X to download and install this directly from Apple.
     222. **Install Subversion**: (For OS X of 10.7 or earlier, skip this step; if using anaconda, you can also use the "conda install svn" command as an alterative to this step.)  For Mountain Lion (OS X 10.8+) or later type svn into a terminal window ([InstallNotesMavericks as shown here]) to get a prompt from OS X to download and install this directly from Apple.
    3123
    32243. 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.
    3325
    34 4. 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 the python you installed. ```<path2>```` will be where you have installed the bootstrap.py file. Simply clicking on that file might work.
     264. 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 the python you installed. ```<path2>``` will be where you have installed the bootstrap.py file. Simply clicking on that file might work.
    3527
    36285. Run GSAS-II with the GSASII.app file created by the bootstrap procedure.
     
    5648[[Image(EPDerror.png,300)]]
    5749
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
    5863 * [http://www.activestate.com/activepython ActiveState ActivePython] is a another possible alternative. This is also commercial licensed software, with a free version with no support. We have not tried this yet. If it works for you, please let us know.
    5964
    6065=== Subversion ===
    6166
    62 If you are running 10.7 (Lion) or earlier, skip this step. For 10.8 (Mountain Lion) you must install the subversion (svn) package. To do this, type svn in a terminal window.
     67If you are running 10.7 (Lion) or earlier, skip this step. For 10.8 (Mountain Lion) and you must install the subversion (svn) package. One way to do this, is to type svn in a terminal window and OS X will ask you if you want to install XCode or the helper applications. Either works for this.
    6368
    64 Alternately, install one of the following: Apple's Command Line Tools, or Apple's Xcode development environment, a 3rd party SVN package, or build from source code, see http://subversion.apache.org/download/. The Command Line Tools and Xcode can be downloaded from the Apple Developer's web site (https://developer.apple.com/) or can possibly be found on the OS X install DVD. A free 3rd party version of Subversion from WANdisco is here: http://www.wandisco.com/get/?f=subversion-binaries/1.7/Subversion-1.7.7_10.8.x.pkg.
     69Alternately, install one of the following: Apple's Command Line Tools, or Apple's Xcode development environment, a 3rd party SVN package, or build from source code, see http://subversion.apache.org/download/. The Command Line Tools and Xcode can be downloaded from the Apple Developer's web site (https://developer.apple.com/) or can possibly be found on the OS X install DVD. A free 3rd party version of Subversion from WANdisco is here: http://www.wandisco.com/get/?f=subversion-binaries/1.7/Subversion-1.7.7_10.8.x.pkg. Finally, svn is also supplied as a package in the Anaconda distribution and command
     70{{{
     71conda install svn
     72}}}
     73will load it.
    6574
    6675= GSAS-II Installation =
    6776
    68 We prefer that GSAS-II be installed using subversion so that it is easy to get updates (which are frequent). Fortunately, with OS X 10.5, 10.6 or 10.7, Macs come with subversion installed. (10.8 see above.) This procedure loads GSAS-II using subversion:
     77We prefer that GSAS-II be installed using subversion so that it is easy to get updates (which are frequent). Fortunately, with OS X 10.5, 10.6 or 10.7, older Macs came with subversion installed. (10.8 see above.) This procedure loads GSAS-II using subversion:
    6978
    7079 1.  Create a folder where you want to install GSAS-II.