Changes between Version 20 and Version 21 of OldMacSingleStepInstaller
- Timestamp:
- May 1, 2019 2:50:29 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OldMacSingleStepInstaller
v20 v21 1 1 == Installing GSAS-II with a Single-Step Download == 2 2 3 A new approach for downloading and installing GSAS-II, along with required prerequisites has been developed using tools from Continuum Analytics, Inc. and their Anaconda freeproduct. Downloading3 A new approach for downloading and installing GSAS-II, along with required prerequisites has been developed using tools from Continuum Analytics, Inc. and their free Anaconda product. Downloading 4 4 this file 5 ( ~200 Mb) provides, Python, a number of Python packages, and subversion, which is used to install and update GSAS-II. This is a new installation process, so please report problems, unclear instructions to [mailto:toby@anl.gov Brian Toby] (notes about success are also appreciated). Note that a much more detailed version of these instructions, with lots of screen images, [MacSingleStepInstallerFigs is found here.]5 (200-300 Mb) provides, Python, a number of Python packages, and subversion, which is used to install and update GSAS-II. This is a new installation process, so please report problems, unclear instructions to [mailto:toby@anl.gov Brian Toby] (notes about success are also appreciated). Note that a much more detailed version of these instructions, with lots of screen images, [MacSingleStepInstallerFigs is found here.] 6 6 7 7 === Step 1: === 8 8 9 Download **one** of the following (which have different versions of Python & packages, but will all provide the latest version of GSAS-II):9 Download this file: 10 10 11 * https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/gsas2full-Latest-MacOSX-x86_64.sh (provides Python 3.7, all required Python packages and a recent version of GSAS-II which will be updated via the internet; can be installed on computers without an internet connection, but without that update.) 11 12 12 * https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-1.0.1-MacOSX-x86_64.sh 13 * g2conda-1.0.1-MacOSX-x86_64.sh has contains the latest intercompatible Python packages, including Python 3.7, wxPython 4.0.3, !NumPy 1.51.1, !SciPy 1.1.0, matplotlib 2.2.3,... Since the code has not been fully tested with this environment, there is some chance for finding compatibility bugs we have not yet seen (but will certainly fix if reported.) 13 These links offer an older distributions that have worked for many people, if you have trouble with the previous (but please do report problems). Note that these installers require an internet connection: 14 14 15 * https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-py27-1.0.2-MacOSX-x86_64.sh 16 * g2conda-py27-1.0.2-MacOSX-x86_64.sh has mostly the same packages as the above, but contains Python 2.7.x and an older version of wxPython (3.0.0). This may be a bit more safe with regards to bugs, but we are now recommending Python 3.x rather than this dist. 17 18 or this older installation file (there have been reports that the files above do not operate properly on 10.14.x, Mojave, which is too new for us to test) 19 * Download file ```g2conda-0.1.2-MacOSX-x86_64.sh``` from this URL https://anl.box.com/v/GSASII4mac12 20 * as this is older, its use is not recommended unless you have problems with the previous installers. This contains an older version of bootstrap.py, which does not handle proxies perfectly. (In case of problems, after the bootstrap.py fails, use https://subversion.xray.aps.anl.gov/trac/pyGSAS/browser/install/bootstrap.py?format=txt to download an update, replace the bootstrap.py file in the GSASII subdirectory and run it in the recently-installed python, [https://subversion.xray.aps.anl.gov/trac/pyGSAS/wiki/InstallMac#OverviewforManualInstallation see here].) 15 * https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-1.0.1-MacOSX-x86_64.sh (Python 3.7, wxPython 4.0.3, !NumPy 1.51.1, !SciPy 1.1.0, matplotlib 2.2.3,...) 16 * https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-py27-1.0.2-MacOSX-x86_64.sh (Python 2.7.x, wxPython 3.0.0...) 17 * ```g2conda-0.1.2-MacOSX-x86_64.sh``` from this URL https://anl.box.com/v/GSASII4mac12 (quite old, not recommended) 21 18 22 19 === Step 2: === … … 24 21 Execute this file. 25 22 This should be done by typing the command 26 ```bash <path>/g 2conda-*-MacOSX-x86_64.sh```23 ```bash <path>/gsas2full-Latest-MacOSX-x86_64.sh``` 27 24 in a terminal window. One easy way to to this is to open a terminal (!Applications/Utilities/Terminal.app) type "```bash ```" (leaving a space), then use finder to drag the downloaded file to the terminal window. Then press Enter to run the command. 28 25 ([wiki:MacSingleStepInstallerFigs#Step2: click here to see screen images].) … … 45 42 === Step 4:=== 46 43 47 After Python and packages are installed, the ```GSASII/bootstrap.py``` file (also called ```bin/gsas2-install.py```) is invoked to installthe GSAS-II files using program svn (subversion) from the APS server ```https://subversion.xray.aps.anl.gov/pyGSAS```44 After Python and packages are installed, the ```GSASII/bootstrap.py``` file (also called ```bin/gsas2-install.py```) is invoked to create shortcuts and update the GSAS-II files using program svn (subversion) from the APS server ```https://subversion.xray.aps.anl.gov/pyGSAS``` 48 45 49 46 This script requests the name of a proxy server. Most people will use the default and press return. However, some sites block web traffic unless it is passed through a particular computer. If needed, enter that computer name or IP address here (e.g. proxyout.lanl.gov); you will be then be requested to also supply a port number, which defaults to 8080. 50 47 51 Note that the location of the Python image is shown here (```/Users/toby/g2 conda/bin/python```) this is worth noting in case you have installation problems and need to rerun the bootstrap.py script ([wiki:MacSingleStepInstaller#Incaseofproblems see below]).48 Note that the location of the Python image is shown here (```/Users/toby/g2full/bin/python```) this is worth noting in case you have installation problems and need to rerun the bootstrap.py script ([wiki:MacSingleStepInstaller#Incaseofproblems see below]). 52 49 53 50 Once the svn command is executed a large number of files are downloaded ending with display of the current GSAS-II version number. … … 75 72 == In case of problems == 76 73 77 If you are able to download the ```g 2conda-0.1.1-MacOSX-x86_64.sh``` file, but have a problem installing it, you may not be executing the command properly. Please make sure you are typing ```bash``` correctly and leaving a space between that and the file name, also be sure you are allowed to write files to the location you choose for installation.74 If you are able to download the ```gsas2full-Latest-MacOSX-x86_64.sh``` file, but have a problem installing it, you may not be executing the command properly. Please make sure you are typing ```bash``` correctly and leaving a space between that and the file name, also be sure you are allowed to write files to the location you choose for installation. 78 75 79 If you are able to install the Python files, but the downloading of GSAS-II fails ([#Step4: Step 4]), you may need to specify a proxy; contact a computer/network support person for your institution. While it may be simpler to delete the directory where you have installed the files (typically ```.../g2conda```) and resume from Step 2, it is also possible to rerun the bootstrap.py file using a command such as76 If you are able to install the Python files, but the updating of GSAS-II fails ([#Step4: Step 4]), you may need to specify a proxy; contact a computer/network support person for your institution. While it may be simpler to delete the directory where you have installed the files (typically ```.../g2full```) and resume from Step 2, it is also possible to rerun the bootstrap.py file using a command such as 80 77 81 78 ''<path>''```/bin/python``` ''<path>''```/GSASII/bootstrap.py```