Changes between Version 1 and Version 2 of KEMM37/InstallSasView


Ignore:
Timestamp:
Jan 25, 2018 6:15:07 AM (7 years ago)
Author:
ajj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • KEMM37/InstallSasView

    v1 v2  
    1 Install SasView 
     1= KEMM37l !SasView Instructions = 
     2 
     3== Installing for Windows or Mac == 
     4Download and install the latest release of !SasView for your platform (Windows 32bit / Windows 64bit / Mac) from: [https://github.com/SasView/sasview/releases/tag/v4.1.2] 
     5 
     6 
     7== Running Sasview on Linux == 
     8There are currently no packaged releases of !SasView for Linux. Thus some familiarity with linux command line tools is required. The following instructions concern Ubuntu 16.04 but should provide sufficient guidelines for any linux distribution. These instructions obviously reference the package manger on Debian based system (apt), so you should replace such commands with the correct ones for your distro. 
     9 
     10=== Download source code for !SasView and !SasModels === 
     11- To obtain the source code you need to have git running. if you haven't already got it, it can be obtained from Ubuntu repository 
     12{{{ 
     13sudo apt-get install git 
     14}}} 
     15- The easy way to download the !SasView and !SasModels code is by simply cloning a git repository 
     16{{{ 
     17mkdir sasview-code 
     18cd sasview-code 
     19git clone https://github.com/SasView/sasview 
     20git clone https://github.com/SasView/sasmodels 
     21}}} 
     22- This will create a sasview-code folder in your current directory and then check out the latest version of the sasview and sasmodels code. However, we need to use a stable version and not the developer version. So we need to then do 
     23{{{ 
     24cd sasview 
     25git checkout v4.1.2 
     26cd ../sasmodels 
     27git checkout v0.96 
     28}}} 
     29- Each of !SasView and !SasModels should now be checked out at the current release version. 
     30 
     31=== Install dependencies using apt-get ===  
     32- Scientific python packages (numpy, scipy) together with matplotlib, pylint and wxgtk3.0 can be installed by running 
     33{{{ 
     34sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk3.0 python-pyopencl sphinx-common 
     35}}} 
     36 
     37=== Install pip === 
     38- The remaining dependencies can be installed using pip, which if it is not already installed, can be obtained by running the following: 
     39{{{ 
     40wget https://bootstrap.pypa.io/get-pip.py 
     41sudo python get-pip.py 
     42}}} 
     43 
     44=== Install dependencies using pip === 
     45- Once pip is obtained the remaining dependencies are installed by: 
     46{{{ 
     47sudo pip install unittest-xml-reporting 
     48sudo pip install bumps 
     49sudo pip install periodictable 
     50}}} 
     51 
     52=== Run !SasView === 
     53- Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run 
     54{{{ 
     55python run.py 
     56}}} 
     57- This should then build !SasModels as needed and run !SasView. 
     58 
     59=== Building the Help Docs === 
     60The process for building the help docs has been steadily evolving. The latest instructions might be found [http://trac.sasview.org/wiki/BuildDocs here]