Difference between revisions of "Building From Source"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
'''Requirements''' | '''Requirements''' | ||
* Python 2.5 http://www.python.org | * Python 2.5 or above http://www.python.org | ||
* Qt 4. | * Qt 4.4.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html | ||
* PyQt4 (v4.4 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.7 or above) http://www.riverbankcomputing.co.uk/software/sip | * PyQt4 (v4.4 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.7 or above) http://www.riverbankcomputing.co.uk/software/sip | ||
* numpy http://www.numpy.org (scipy) | * numpy http://www.numpy.org (scipy) | ||
* scipy http://www.scipy.org (scipy) | * scipy 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): | ||
* ZSI 2.1 http://sourceforge.net/projects/pywebsvcs (web services - get the trunk version!) | |||
* ZSI 2.1 http://sourceforge.net/projects/pywebsvcs (web services) | * MySQLdb http://sourceforge.net/projects/mysql-python (accessing databases) | ||
* MySQLdb http://sourceforge.net/projects/mysql-python ( | |||
* VTK http://www.vtk.org (vtk) | * VTK http://www.vtk.org (vtk) | ||
* matplotlib http://matplotlib.sourceforge.net/ (pylab) | * matplotlib http://matplotlib.sourceforge.net/ (pylab) | ||
Line 21: | Line 18: | ||
* 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/download | ** On Windows: Get the msi release 2.6.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 | ||
** Install ZSI if you plan to use web services package | |||
* Install VTK (if you need VTK - for infovis support install the development version) | |||
** Install | |||
** 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 | ** 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 31: | ||
** 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:. | ||
* '''For Linux only''': Install Qt 4. | * '''For Linux only''': Install Qt 4.4.0 or above (Qt 4.6.2 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] | ||
** Run '''configure''' then '''make''' | ** Run '''configure''' then '''make''' |
Revision as of 16:19, 27 April 2010
Requirements
- Python 2.5 or above http://www.python.org
- Qt 4.4.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html
- PyQt4 (v4.4 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.7 or above) http://www.riverbankcomputing.co.uk/software/sip
- numpy http://www.numpy.org (scipy)
- scipy http://www.scipy.org (scipy)
For running various not-required packages and features (packages are listed last, in parentheses):
- ZSI 2.1 http://sourceforge.net/projects/pywebsvcs (web services - get the trunk version!)
- MySQLdb http://sourceforge.net/projects/mysql-python (accessing databases)
- VTK http://www.vtk.org (vtk)
- matplotlib http://matplotlib.sourceforge.net/ (pylab)
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.6.x here
- Add the installation directory to the PATH variable
- Install Python Extensions
- Install ZSI 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.4.0 or above (Qt 4.6.2 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.5/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.5/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