wiki:InstallMac

Version 7 (modified by toby, 19 months ago) (diff)

--

Installing GSAS-II on Mac OS X

GSAS-II has been tested by us (Brian) on Intel (i386) Macs typically running 10.12 to 10.14. 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 the "hard way" instructions.

Installing the easy way

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. The instructions below briefly describe how to do this, but more a expanded version of these instructions are here that show screen images and explore the most likely errors. If this does not solve problems, please report them.

  1. Open a terminal window. Paste the three commands below in that window:
mkdir -p ~/.conda
g2="https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/gsas2full-Latest-MacOSX-x86_64.sh"
curl "$g2" > /tmp/g2.sh; bash /tmp/g2.sh

If this fails, see the expanded instructions, which include an alternate download location.

  1. Answer prompts from the install script, pressing Enter to start, then space to page through the copyright notice.
  1. Type Yes for to accept the license information.
  1. Enter the installation location. Spaces or special characters in the name may cause problems (or maybe not). Once you have installed in a location, do not move the files elsewhere. Instead install again. Make a note of where you have installed GSAS-II; this may be useful if you have problems.
  1. Wait while the files are installed (typically a few minutes)
  1. Type "no" for "initializing gsas2full using conda init"
  1. Drag the GSAS-II app to the dock (optional). Do not move this file.
  1. Create an alias for the GSAS-II app and move to the desktop -- or elsewhere (optional). This can be renamed if desired after moving.

Note that the first time that GSAS-II is started you will need to confirm that access to the Terminal app will be allowed.

Installing the hard way

See these instructions if you want to install Python yourself or have an old Mac OS X version, etc.