Changes between Version 9 and Version 10 of InstallMac


Ignore:
Timestamp:
Jan 8, 2021 4:32:04 PM (8 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallMac

    v9 v10  
    1111Most 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 [wiki:MacSingleStepInstallerFigs 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.
    1212
    13 1. Open a terminal window. Paste the three commands below in that window:
     131. Open a terminal window. Paste the two lines below in that window:
    1414
    1515{{{
    16 mkdir -p ~/.conda
    1716g2="https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/gsas2full-Latest-MacOSX-x86_64.sh"
    18 curl "$g2" > /tmp/g2.sh; bash /tmp/g2.sh
     17curl "$g2" > /tmp/g2.sh; bash /tmp/g2.sh -b -p ~/g2full
    1918}}}
    2019
    21  If this fails, see [wiki:MacSingleStepInstallerFigs the expanded instructions], which include an alternate download location.
     20Note that this installs GSAS-II into directory `g2full` in your home folder. Change `~/g2full` if desired or omit the `"-b -p ~/g2full"` section completely for more verbose installation, where you can type the install path. Aee [wiki:MacSingleStepInstallerFigs the expanded instructions] for more details.
    2221
    23 2. Answer prompts from the install script, pressing Enter to start, then space to page through the copyright notice.
     222. Wait while the files are installed (typically a few minutes)
    2423
    25 3. Type Yes for to accept the license information.
    26 
    27 4. 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.
    28 
    29 5. Wait while the files are installed (typically a few minutes)
    30 
    31 6. Type "no" for "initializing gsas2full using conda init"
    32 
    33 7. Drag the GSAS-II app to the dock (optional). Do not move this file.
    34 
    35 8. Create an alias for the GSAS-II app and move to the desktop -- or elsewhere (optional). This can be renamed if desired after moving.
     243. Drag the GSAS-II app to the dock (optional). Note that this file cannot be moved to another folder. It is possible to create an alias and move that, for example if you want access to GSAS-II app on your desktop.
    3625
    3726Note that the first time that GSAS-II is started you will need to confirm that access to the Terminal app will be allowed.
     
    4433== Big Sur ==
    4534
    46 There are two problems with running GSAS-II on Macs under Big Sur that have not yet been properly addressed. One major, one minor. The major one is that Python needs an update to find the OpenGL library. A patch for that is [https://stackoverflow.com/a/64021312/2487653 here] but a better fix is not available yet. The minor one is that the !AppleScript fails with a "Not authorized to send Apple events to Terminal" error. Clicking Edit and running the script from inside the Script Editor (click on the arrow in the upper right) is clumsy, but does work.
     35There are two problems with running GSAS-II on Macs under Big Sur. These have been resolved in the installer as of 8 Jan 2021. If upgrading from where a previous installation is present, it is possible to update and then run the makeMacApp.py file (or bootstrap.py) to fix things, but reinstalling may be easier.
     36  ''For those who care, the major bug is that due to macOS 11 changes, Python needs an update to find the OpenGL library. See discussion [https://stackoverflow.com/a/64021312/2487653 here]. Eventually Python should catch up. A more minor bug is that the !AppleScript fails with a "Not authorized to send Apple events to Terminal" error. A work around for that appears to be to open and save the script inside the Script Editor. This is now done automatically in the installation process.''
    4737