wiki:InstallLinux

Version 3 (modified by toby, 3 years ago) (diff)

--

Installing GSAS-II on Linux systems

There are a number of ways to install GSAS-II on Linux machines. Alas, none work on 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.

GSAS-II is normally distributed with binary files for Python and associated packages from the Anaconda Python distribution. If these files are not compatible with your version of Linux, you will need to obtain Python & required packages through some method, such packages distributed by your Python distribution channel. We also distribute compiled library (.so) files for the Fortran code used inside GSAS-II. These files need to be matched to the Python version and the numpy version, but sometimes will need to be compiled in the Linux environment where they will be used, despite this.

Installing the easy way

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 these instructions for more details.

Installing for Anaconda Enthusiasts

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 command:

conda install gsas2pkg -c briantoby 

See here for more information on this.

Installing Python Manually

GSAS-II will run with any distribution of Python provided it is version 2.7.x or >=3.6 and provided you have the required packages, which include wxPython, NumPy, SciPy, matplotlib and PyOpenGL; some other packages are required for optional functionality; see here for more information on package requirements in GSAS-II. Provided you can satisfy these requirements, then Python dists from Redhat, Debian, Ubuntu,... will work fine. Likewise, alternate Python distributions from Python(x,y), Enthought Canopy and ActiveState ActivePython should work fine, but none have been tested in many years.

You will also need subversion (svn) to download GSAS-II files.

Once you have installed Python, follow these steps to install GSAS-II:

  1. Create an empty directory. Best to have no spaces in the full path. GSASII is a good name for this, but this is optional.
  1. Download the installation script (bootstrap.py)

See InstallLinux-prev. See InstallLinux-prev.