Changes between Version 7 and Version 8 of LinuxBuild
- Timestamp:
- Sep 14, 2017 5:14:09 AM (7 years ago)
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.3 1 4 == Download source code for !SasView == 2 == Building and Running Sasview on Linux == 3 There 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 === 5 6 - 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 6 7 {{{ 7 8 sudo apt-get install git 8 9 }}} 9 - The easy way to download !SasViewcode is by simply cloning a git repository10 - The easy way to download the !SasView and !SasModels code is by simply cloning a git repository 10 11 {{{ 12 mkdir sasview-code 13 cd sasview-code 11 14 git clone https://github.com/SasView/sasview 15 git clone https://github.com/SasView/sasmodels 12 16 }}} 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 {{{ 19 cd sasview 20 git checkout v4.1.2 21 cd ../sasmodels 22 git 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 === 16 27 - Scientific python packages (numpy, scipy) together with matplotlib, pylint and wxgtk2.8 can be installed by running 17 28 {{{ 18 sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk 2.829 sudo apt-get install python-numpy python-scipy python-matplotlib pylint python-wxgtk3.0 python-pyopencl sphinx-common 19 30 }}} 20 - For wxgtk3.0 read "Build instructions" at http://www.wxpython.org21 31 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: 24 34 {{{ 25 35 wget https://bootstrap.pypa.io/get-pip.py … … 27 37 }}} 28 38 29 == Install dependencies using pip==39 === Install dependencies using pip === 30 40 - Once pip is obtained the remaining dependencies are installed by: 31 41 {{{ … … 33 43 sudo pip install bumps 34 44 sudo pip install periodictable 35 sudo pip install sphinx36 45 }}} 37 46 38 == Compile !SasView == 47 === Run !SasView === 48 - Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run 49 {{{ 50 python run.py 51 }}} 52 - This should then build !SasModels as needed and run !SasView. 53 54 == Compile and install !SasView == 39 55 - Then one can navigate to a !SasView source directory (most likely "cd sasview") and simply run 40 56 {{{ … … 42 58 python setup.py install # will install the package 43 59 }}} 60 - A similar process should be used for !SasModels 44 61 - sudo commnand might be required for a global installation 45 62