Changes between Version 26 and Version 27 of InstallMacHardWay
- Timestamp:
- Jan 20, 2020 4:38:43 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallMacHardWay
v26 v27 1 1 = Installing GSAS-II on Mac OS X = 2 2 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. 3 Most 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 {{{ 5 conda install gsas2pkg -c briantoby 6 }}} 7 [wiki:InstallConda See here] for more information on this. 4 8 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 == 18 10 19 11 Note 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. … … 23 15 === Overview for Manual Installation === 24 16 25 ''Please don't do this unless you have to. The [ MacSingleStepInstallersingle-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.'' 26 18 27 19 28 20 1. **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] 29 21 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.22 2. **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. 31 23 32 24 3. 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. 33 25 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.26 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. 35 27 36 28 5. Run GSAS-II with the GSASII.app file created by the bootstrap procedure. … … 56 48 [[Image(EPDerror.png,300)]] 57 49 50 51 52 53 54 55 56 57 58 59 60 61 62 58 63 * [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. 59 64 60 65 === Subversion === 61 66 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.67 If 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. 63 68 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. 69 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. Finally, svn is also supplied as a package in the Anaconda distribution and command 70 {{{ 71 conda install svn 72 }}} 73 will load it. 65 74 66 75 = GSAS-II Installation = 67 76 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:77 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, older Macs came with subversion installed. (10.8 see above.) This procedure loads GSAS-II using subversion: 69 78 70 79 1. Create a folder where you want to install GSAS-II.