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. |
| 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 using these commands: |
| 10 | {{{ |
| 11 | curl https://subversion.xray.aps.anl.gov/admin_pyGSAS/downloads/gsas2full-Latest-Linux-x86_64.sh > /tmp/gsas2full-Latest-Linux-x86_64.sh |
| 12 | bash /tmp/gsas2full-Latest-Linux-x86_64.sh -b -p ~/g2full |
| 13 | }}} |
| 14 | |
| 15 | Start GSAS-II with either this command: |
| 16 | {{{ |
| 17 | ~/g2full/bin/python ~/g2full/GSASII/GSASII.py |
| 18 | }}} |
| 19 | or this |
| 20 | {{{ |
| 21 | bash ~/g2full/start_GSASII.sh |
| 22 | }}} |
| 23 | |
| 24 | see [wiki:LinuxSingleStepInstaller these instructions] for more details. This is only available for 64 bit Linux dists. |
| 121 | |
| 122 | There 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. |
| 123 | If 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 | |
| 127 | With 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 | }}} |
| 131 | changing the prefix ```~/g2full/``` to reflect your choice for {{{<condapath>}}}. |
| 132 | |
| 133 | If 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 | |