Difference between revisions of "Building From Source"

From VistrailsWiki
Jump to navigation Jump to search
m
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''Requirements'''
__NOTOC__
Base requirements:
 
* Python 2.4 http://www.python.org
== Requirements ==
* Graphviz http://www.graphviz.org
 
* Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html
* Python 2.6 or 2.7 http://www.python.org
* PyQt4 (v4.1.1)http://www.riverbankcomputing.co.uk/pyqt/index.php and SIP (4.5.2) http://www.riverbankcomputing.co.uk/sip/index.php
* Qt 4.6 (or above) Open Source Edition http://qt.nokia.com/downloads
* ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge])
* PyQt4 (v4.7 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.10 or above) http://www.riverbankcomputing.co.uk/software/sip
* numpy (1.4 or above) http://www.numpy.org (scipy)
* scipy (0.7 or above) http://www.scipy.org (scipy)
* matplotlib (0.99 or above) http://www.scipy.org (scipy)


For running various not-required packages and features (packages are listed last, in parentheses):
For running various not-required packages and features (packages are listed last, in parentheses):
* PyXML http://pyxml.sourceforge.net (web services)
* SUDS https://fedorahosted.org/suds/ (web services) [http://www.vistrails.org/index.php/SUDS_Patch optional patch]
* fpconst http://www.warnes.net/rwndown/~warnes/fpconst  (or from the [http://cheeseshop.python.org/pypi/fpconst/0.7.2 Cheese Shop]) (web services)
* MySQLdb http://sourceforge.net/projects/mysql-python (accessing databases)
* SOAPpy http://pywebsvcs.sourceforge.net (web services)
* VTK (5.4.2 and above) http://www.vtk.org (vtk)
* MySQLdb http://sourceforge.net/projects/mysql-python (execution logging)
* matplotlib http://matplotlib.sourceforge.net/ (pylab)
* VTK http://www.vtk.org (vtk)
* scipy http://www.scipy.org (scipy)
'''Instructions'''


'''[[Mac Intel Instructions|Click here for Specific Instructions for Mac Intel]]'''
== Instructions ==


* Install [http://www.graphviz.org/Download.php Graphviz]
'''[[Mac Intel Instructions|Click here for specific instructions for Mac OS X]]'''


* Install Python
* Install Python
** On most Linux distributions it comes by default.
** On most Linux distributions it comes by default.
** On Windows: Get the msi release [http://www.python.org/2.4.2/ here]
** On Windows: Get the msi release 2.7.x [http://www.python.org/download/ here]
** Add the installation directory to the PATH variable
** Add the installation directory to the PATH variable


* Install Python Extensions
* Install Python Extensions
** PyXml is needed for web services and is available [http://sourceforge.net/project/showfiles.php?group_id=6473&package_id=6541 here]. There's a binary package for Mac [http://pythonmac.org/packages/py24-fat/mpkg/PyXML-0.8.4-py2.4-macosx10.4.mpkg.zip here]
** Install  SUDS if you plan to use web services package  
*** To install it from source, download the .tar.gz file and uncompress it
* Install VTK (if you need VTK - for infovis support install the development version)
*** Then inside the uncompressed folder, type: ''python setup.py build'' and later ''sudo python setup.py install''
** fpconst and SOAPpy are also required for using web services. fpconst is available [http://www.sci.utah.edu/~emanuele/files/fpconst-0.7.2.tar here]. SOAPpy is available [http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=18246 here]
** '''For WINDOWS & LINUX:'''  we need ctypes available [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 here]
 
* Install VTK CVS version (if you want to use VTK)
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
** Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
** Then you can get vtk: follow the instructions to download the source code on this [http://www.vtk.org/get-software.php page]
** '''(Skip this step if you don't need to run CORIE workflows)''' Follow [[ExtraVTKFIles|these instructions]] to add CORIE and other needed files to VTK.  
** '''(Skip this step if you don't need to run CORIE workflows)''' Follow [[ExtraVTKFIles|these instructions]] to add CORIE and other needed files to VTK.  
** To compile VTK follow the instructions in the file ''README.html'' in the root of VTK directory tree
** To compile VTK follow the instructions in the file ''README.html'' in the root of VTK directory tree
Line 40: Line 35:
** It is recommended to create a environment variable called PYTHONPATH
** It is recommended to create a environment variable called PYTHONPATH
*** PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
*** PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
* Install Qt 4.2.0 or above
* '''For Linux only''': Install Qt 4.6.3 or above (Qt 4.8.X recommended)
** You can get the open source version for all platforms [http://www.trolltech.com/download/opensource.html here]
** You can get the open source version for all platforms [http://www.trolltech.com/download/opensource.html here]
** When installing on windows, Qt requires the mingw compiler. It will also offer to download and install automatically for you
** After installing you need to build the Qt library:
** ('''Skip this step if you're not a windows user''') Run the Qt 4.1.0 Command Prompt located in the Qt Program Folder (it will set all the environment variables to build the library for you).
** Run '''configure''' then '''make'''
** Run '''configure''' then '''make'''
* Install SIP
* '''For Linux only''': Install SIP
** Get the stable release version available '''[http://www.riverbankcomputing.co.uk/sip/download.php here]'''. (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/sip4/ here])
** Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.
** Uncompress the file, and inside the directory, type '''python configure.py'''. On WIndows type '''python configure.py -p win32-g++'''.  On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.4/site-packages/PyQt4'''. Then '''make''' and '''make install'''
** Uncompress the file, and inside the directory, type '''python configure.py'''.  On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.7/site-packages/'''. Then '''make''' and '''make install'''
* Install PyQt4
* Install PyQt4
** Get the stable version, available '''[http://www.riverbankcomputing.co.uk/pyqt/download.php here]'''. (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ here])
** Downloads of the latest stable release and latest snapshots are available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.
** Uncompress the file, and inside the directory, type '''python configure.py'''. On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.4/site-packages/PyQt4'''. Then '''make''' and '''make install'''
** '''Windows only''': Download the binary package that contains everything you need to run PyQt4. This will install SIP and Qt for you.
** '''For Linux only''': Uncompress the file, and inside the directory, type '''python configure.py'''. On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.7/site-packages/'''. Then '''make''' and '''make install'''
 
* Install MySQLdb (Python library allowing MySQL databases access)
* Install MySQLdb (Python library allowing MySQL databases access)
** The file is available [http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775 here]
** The file is available [http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775 here]
* Install scipy (Necessary for the SciPy package)
* Install SciPy
** Windows
** Windows
*** Download and install the Enthought Scipy Python package [http://code.enthought.com/enthon/]
*** First download and install [http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 NumPy] and then  [http://sourceforge.net/project/showfiles.php?group_id=27747 SciPy]
** Linux
** Linux
*** Download and install BLAS [http://www.netlib.org/blas] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable BLAS_SRC
*** Download and install BLAS [http://www.netlib.org/blas] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable BLAS_SRC
Line 62: Line 56:
*** Download and install numpy [http://numpy.scipy.org]
*** Download and install numpy [http://numpy.scipy.org]
*** Download and install scipy [http://www.scipy.org]
*** Download and install scipy [http://www.scipy.org]
* Install ctypes
* Install matplotlib
** The source is avalable [http://python.net/crew/theller/ctypes here]
** Windows
*** Get it [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 here]
** Linux
*** Files are available [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 here]
 
* To run VisTrails from source:
** Excute this on a terminal window or on a command prompt on Windows:
  cd /path/to/vistrails_src
  python vistrails/run.py

Latest revision as of 14:07, 29 June 2016


Requirements

For running various not-required packages and features (packages are listed last, in parentheses):

Instructions

Click here for specific instructions for Mac OS X

  • Install Python
    • On most Linux distributions it comes by default.
    • On Windows: Get the msi release 2.7.x here
    • Add the installation directory to the PATH variable
  • Install Python Extensions
    • Install SUDS if you plan to use web services package
  • Install VTK (if you need VTK - for infovis support install the development version)
    • First you'll need CMake: get the latest release here
    • Then you can get vtk: follow the instructions to download the source code on this page
    • (Skip this step if you don't need to run CORIE workflows) Follow these instructions to add CORIE and other needed files to VTK.
    • To compile VTK follow the instructions in the file README.html in the root of VTK directory tree
    • On configuring CMake, make sure that the variables VTK_WRAP_PYTHON, VTK_USE_GUISUPPORT, VTK_USE_DISPLAY are ON and VTK_USE_QVTK is OFF
    • It is recommended to create a environment variable called PYTHONPATH
      • PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.
  • For Linux only: Install Qt 4.6.3 or above (Qt 4.8.X recommended)
    • You can get the open source version for all platforms here
    • Run configure then make
  • For Linux only: Install SIP
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py. On 64-bit Linux type python configure.py -d /usr/lib64/python2.7/site-packages/. Then make and make install
  • Install PyQt4
    • Downloads of the latest stable release and latest snapshots are available here.
    • Windows only: Download the binary package that contains everything you need to run PyQt4. This will install SIP and Qt for you.
    • For Linux only: Uncompress the file, and inside the directory, type python configure.py. On 64-bit Linux type python configure.py -d /usr/lib64/python2.7/site-packages/. Then make and make install
  • Install MySQLdb (Python library allowing MySQL databases access)
    • The file is available here
  • Install SciPy
    • Windows
    • Linux
      • Download and install BLAS [1] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable BLAS_SRC
      • Download and install LAPACK [2] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable LAPACK_SRC
      • Download and install numpy [3]
      • Download and install scipy [4]
  • Install matplotlib
    • Windows
    • Linux
      • Files are available here
  • To run VisTrails from source:
    • Excute this on a terminal window or on a command prompt on Windows:
 cd /path/to/vistrails_src
 python vistrails/run.py