Changes between Version 3 and Version 4 of LinuxSingleStepInstaller


Ignore:
Timestamp:
Sep 17, 2018 5:49:22 PM (3 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LinuxSingleStepInstaller

    v3 v4  
    11== Installing GSAS-II for Linux with a Single-Step Download ==
    22
    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 free product. Downloading [https://anl.box.com/v/GSASII4linux12 this file]
    4 (~280 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 [Brian dot Toby at ANL dot gov] (notes about success are also appreciated).
     3A new approach for downloading and installing GSAS-II, along with required prerequisites has been developed using tools from Anaconda Inc. (previously Continuum Analytics) and their Anaconda free product. ([https://www.anaconda.com Thanks Anaconda!].) Downloading one file
     4(~300 Mb) provides: Python, a number of Python packages, and subversion (svn), which is then used to install GSAS-II. The svn program is also used to update GSAS-II (using the Help/Update menu) as changes are made.
    55
    66=== Step 1: ===
    7 Download file ```g2conda-0.1.2-Linux-x86_64.sh``` from this URL https://anl.box.com/v/GSASII4linux12
     7
     8Download **one** of the following:
     9
     10
     11* https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-1.0.1-Linux-x86_64.sh
     12   * This has the latest Python & wxPython versions. It may have a few compatibility bugs we have not yet seen.
     13
     14* https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/g2conda-py27-1.0.2-Linux-x86_64.sh
     15   * This has more tried-and-true Python (2.7.x) and wxPython (3.0.x) versions and may be a bit more safe, but we will eventually move to the above.
     16
     17or
     18* https://anl.box.com/v/GSASII4linux12 (file ```g2conda-0.1.2-Linux-x86_64.sh```)
     19  * this is older and is not recommended, unless you have a older Linux dist
     20
     21Note that regardless of which installer you use above, this process will always install the latest version of GSAS-II.
    822
    923=== Step 2: ===
    1024
    11 Execute this file.
     25Execute the downloaded file.
    1226This should be done by typing the command
    13    ```bash <path>/g2conda-0.1.2-Linux-x86_64.sh```
     27{{{
     28bash <path>/g2conda-*-Linux-x86_64.sh
     29}}}
     30
    1431in a terminal window. Then press Enter to run the command.
    1532
     
    3754Once the svn command is executed a large number of files are downloaded ending with display of the current GSAS-II version number.
    3855
    39 The final question to be asked is should the installation location be placed into your system's path. If you plan to run other Python scripts from the command line, you may want to type "yes", but this is not needed for GSAS-II, so the suggested answer is "no".
     56The final question to be asked is should the installation location be placed into your system's path. Answering "no" is recommended (unless you plan to run other Python scripts from the command line with this version of Python, in which case you may want to type "yes".)
    4057
    4158The Python and GSAS-II installation is now complete, and you can close the terminal window.
    4259
    4360On some Linux distributions a shortcut will be created to run GSAS-II, for example on the desktop. On others you will need to do this yourself. Note that the command to run GSAS-II will be something like this
     61{{{
     62~/g2conda/bin/python ~/g2conda/GSASII/GSASII.py
     63}}}
    4464
    45    ```~/g2conda/bin/python ~/g2conda/GSASII/GSASII.py```
    46 
     65but the prefix ```~/g2conda/``` will vary depending on where you install GSAS-II.
    4766
    4867== In case of problems ==
    4968
    50 If you are able to download the ```g2conda-0.1.2-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.
     69This installation process is undergoing revisions, so please report problems, unclear instructions to [Brian dot Toby at ANL dot gov] (notes about success are also appreciated).
     70
     71If you are able to download the ```g2conda-*-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. If
     72the installation fails, delete the previous installation directory before trying again.
    5173
    5274If 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 as
    53 
    54    ```~/g2conda/bin/python ~/g2conda/GSASII/bootstrap.py```
     75{{{
     76~/g2conda/bin/python ~/g2conda/GSASII/bootstrap.py
     77}}}
    5578
    5679where ```~/g2conda` may need to be changed to the  location where these files have been installed.