Version 1 (modified by toby, 3 years 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" instruction.
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 describe briefly how to do this, but more expanded instructions are here. Please report problems.
- 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.
- Answer prompts from the install script, pressing Enter to start, then space to page through the copyright notice.
- Type Yes for to accept the license information.
- 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.
- Wait while the files are installed (typically a few minutes)
- Type "no" for "initializing gsas2full using conda init"
- Drag the GSAS-II app to the dock (optional). Do not move this file.
- 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.