Changes between Version 8 and Version 9 of InstallLinux


Ignore:
Timestamp:
Jan 6, 2021 5:17:28 PM (8 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallLinux

    v8 v9  
    77== I. Installing the easy way ==
    88
    9 If you are lucky, you can install GSAS-II by downloading a single file that contains all needed Python packages and then automatically downloads the appropriate files from the GSAS-II svn server. See [wiki:LinuxSingleStepInstaller these instructions] for more details. This is only available for 64 bit Linux dists.
     9If you are lucky, you can install GSAS-II by downloading a single file that contains all needed Python packages and then automatically downloads the appropriate files from the GSAS-II svn server using these commands:
     10{{{
     11curl https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/gsas2full-Latest-Linux-x86_64.sh > /tmp/gsas2full-Latest-Linux-x86_64.sh
     12bash /tmp/gsas2full-Latest-Linux-x86_64.sh -b -p ~/g2full
     13}}}
     14
     15Start GSAS-II with either this command:
     16{{{
     17~/g2full/bin/python ~/g2full/GSASII/GSASII.py
     18}}}
     19or this
     20{{{
     21bash ~/g2full/start_GSASII.sh
     22}}}
     23
     24see [wiki:LinuxSingleStepInstaller these instructions] for more details. This is only available for 64 bit Linux dists.
    1025
    1126== II. Installing for Anaconda Enthusiasts ==
    1227
    13 If you are already a user of Anaconda Python, then you may not want to install yet another version of Python on your computer. If so, you can use the conda package manager in Anaconda to install GSAS-II for you with a simple terminal window command:
     28If you are already a user of Anaconda Python, then you may not want to install yet another version of Python on your computer. Assuming you have anaconda or miniconda installed, you can use the conda package manager to install GSAS-II for you with a simple terminal window command:
    1429
    1530{{{
    1631conda install gsas2pkg=2 -c briantoby
     32}}}
     33
     34Start GSAS-II with either this command:
     35{{{
     36<condapath>/bin/python <condapath>/GSASII/GSASII.py
     37}}}
     38or this
     39{{{
     40bash <condapath>/start_GSASII.sh
    1741}}}
    1842
     
    95119Most GSAS-II testing is done with Windows and Macs (sorry), but we do some testing of GSAS-II on Linux
    96120and it does work as far as we are aware. Please do report problems, since we can't fix what we don't know about ([https://subversion.xray.aps.anl.gov/trac/pyGSAS#Bugs see here]), but cannot promise to test with a specific Linux dist.
     121
     122There are many, many versions of Linux and some are too new or old and will not have compatible .so libraries with either the GSAS-II code and/or Python. Sometimes installing compatibily libraries are needed. How to do this is best determined with a Google search relevant you your Linux dist.
     123If you are able to download the ```gsas2full-Latest-Linux-x86_64.sh``` file, but the install does not run properly, you may not be executing the bash 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 starts but does not complete, delete the previous installation directory before trying again.
     124
     125== Rerunning bootstrap.py ==
     126
     127With gsas2full-Latest-Linux-x86_64.sh and the conda gsas2pkg installers from January 2021 and later, the installer creates file {{{<condapath>/start_G2_bootstrap.sh}}} which can be run in bash to launch the bootstrap process. Otherwise a command like this is needed:
     128{{{
     129~/g2full/bin/python ~/g2full/GSASII/bootstrap.py
     130}}}
     131changing the prefix ```~/g2full/``` to reflect your choice for {{{<condapath>}}}.
     132
     133If GSAS-II is installed, this will complete any remaining installation steps and will update GSAS-II to the latest version. Note that this script requests the name of a proxy server. For most people, none is needed and they should simply use the the default by  pressing 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. If you are able to download files but updates fail, see the discussion of [ProxyInfo web proxies].
     134
     135
     136