Changes between Version 10 and Version 11 of InstallLinux


Ignore:
Timestamp:
Sep 14, 2021 3:22:46 PM (3 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallLinux

    v10 v11  
    33There are a number of ways to install GSAS-II on Linux machines. Alas, none work on all Linux dists, because there are so many different versions of libraries files in use and this means that any compiled files created on one Linux version will be incompatible with some others.
    44
    5 GSAS-II is normally distributed with binary (.so) files for the Fortran code used inside GSAS-II. These files are compiled on a Redhat Enterprise Linux system using Python and numPy from the [https://www.anaconda.com/download/#linux Anaconda Python distribution]. You may have compatibility issues with your local version of Linux, depending on what version of Python you have installed and what system libraries are available. See discussions on [#CompilingFortranCode Compiling Fortran Code] and [#Problems Problems], below. Note that the compiled files we distribute must be matched to both the Python version and the numpy version.
     5GSAS-II is normally distributed with binary (.so) files for the Fortran code used inside GSAS-II. These files are compiled on a Redhat Enterprise Linux system using Python and numPy from the [https://www.anaconda.com/download/#linux Anaconda Python distribution]. You may have compatibility issues with your local version of Linux, depending on what version of Python you have installed and what system libraries are available. See discussions on [#CompilingFortranCode Compiling Fortran Code] and [#Problems Problems], below. Note that the compiled files we distribute must be matched to both the Python version and the numPy version.
    66
    7 == I. Installing the easy way ==
     7== Option I. Installing the easy way ==
    88
    99If 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:
     
    2222}}}
    2323
    24 see [wiki:LinuxSingleStepInstaller these instructions] for more details. This is only available for 64 bit Linux dists running on Intel-compatible processor.
     24see [wiki:LinuxSingleStepInstaller these instructions] for more details. This installer is only available for 64-bit Linux dists running on Intel-compatible processor.
    2525
    26 == II. Installing for Anaconda Enthusiasts ==
     26== Option II. Installing for Anaconda Enthusiasts ==
    2727
    2828If 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:
     
    4343This is described [wiki:InstallConda here in more detail].
    4444
    45 == III. Installing Python etc. Manually ==
     45== Option III. Installing Python etc. Manually ==
    4646
    4747GSAS-II will run with any distribution of Python, provided it is version >=3.6, and provided you have the GSAS-II required packages, which include wxPython, !NumPy, !SciPy, matplotlib and PyOpenGL; some other packages are required for optional functionality; see [https://gsas-ii.readthedocs.io/en/latest/#required-packages here for more information on package requirements in GSAS-II.] I can report that the ARM version of wxPython runs fine on the Mac, but have not tried this in Linux yet. In general, if you can get Python and the above packages to run on a different CPU type, and can compile ([#CompilingFortranCode see below]), GSAS-II should run.
     
    122122There are many, many versions of Linux and some are too new or old and thus will not have .so libraries installed that allow running our supplied versions of Python or the compiled GSAS-II Fortran code.
    123123
    124 You should be able to run GSAS-II with Python and packages from your Linux dist, though sometimes those package versions are so new that you will discover incompatibilities that we have not yet seen. To avoid that you can use the Anaconda Python installer, which is included in the {{{gsas2full-Latest-Linux-x86_64.sh}}} file referenced in [#I.Installingtheeasyway Step I] above.
     124You should be able to run GSAS-II with Python and packages from your Linux dist, though sometimes those package versions are so new that you will discover incompatibilities that we have not yet seen. To avoid that you can use the Anaconda Python installer, which is included in the {{{gsas2full-Latest-Linux-x86_64.sh}}} file referenced in [#OptionI.Installingtheeasyway Option I] above.
    125125
    126126One problem we have seen with this comes from not running the installer 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.