Changes between Version 7 and Version 8 of LinuxBuild


Ignore:
Timestamp:
Sep 14, 2017 5:14:09 AM (7 years ago)
Author:
ajj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • LinuxBuild

    v7 v8  
    1 = Build Instructions for Linux (Ubuntu) = 
    2 The following instructions concern Ubuntu 14.04 but should provide sufficient guidelines for any linux distribution. 
    31 
    4 == Download source code for !SasView ==  
     2== Building and Running Sasview on Linux == 
     3There 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. 
     4 
     5=== Download source code for !SasView and !SasModels === 
    56- 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 
    67{{{ 
    78sudo apt-get install git 
    89}}} 
    9 - The easy way to download !SasView code is by simply cloning a git repository 
     10- The easy way to download the !SasView and !SasModels code is by simply cloning a git repository 
    1011{{{ 
     12mkdir sasview-code 
     13cd sasview-code 
    1114git clone https://github.com/SasView/sasview 
     15git clone https://github.com/SasView/sasmodels 
    1216}}} 
    13 - This will create a sasview folder in your current directory 
    14   
    15 == Install dependencies using apt-get ==  
     17- 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 
     18{{{ 
     19cd sasview 
     20git checkout v4.1.2 
     21cd ../sasmodels 
     22git checkout v0.96 
     23}}} 
     24- Each of !SasView and !SasModels should now be checked out at the current release version. 
     25 
     26=== Install dependencies using apt-get ===  
    1627- Scientific python packages (numpy, scipy) together with matplotlib, pylint and wxgtk2.8 can be installed by running 
    1728{{{ 
    18 sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk2.8 
     29sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk3.0 python-pyopencl sphinx-common 
    1930}}} 
    20 - For wxgtk3.0 read "Build instructions" at http://www.wxpython.org 
    2131 
    22 == Install pip == 
    23 - The remaining dependencies can be installed using pip, which can be obtained by running the following: 
     32=== Install pip === 
     33- The remaining dependencies can be installed using pip, which if it is not already installed, can be obtained by running the following: 
    2434{{{ 
    2535wget https://bootstrap.pypa.io/get-pip.py 
     
    2737}}} 
    2838 
    29 == Install dependencies using pip == 
     39=== Install dependencies using pip === 
    3040- Once pip is obtained the remaining dependencies are installed by: 
    3141{{{ 
     
    3343sudo pip install bumps 
    3444sudo pip install periodictable 
    35 sudo pip install sphinx 
    3645}}} 
    3746 
    38 == Compile !SasView == 
     47=== Run !SasView === 
     48- Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run 
     49{{{ 
     50python run.py 
     51}}} 
     52- This should then build !SasModels as needed and run !SasView. 
     53 
     54== Compile and install !SasView == 
    3955- Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run 
    4056{{{ 
     
    4258python setup.py install    # will install the package 
    4359}}} 
     60- A similar process should be used for !SasModels 
    4461- sudo commnand might be required for a global installation 
    4562