https://www.vistrails.org//api.php?action=feedcontributions&user=Heiland&feedformat=atomVistrailsWiki - User contributions [en]2024-03-28T08:44:07ZUser contributionsMediaWiki 1.36.2https://www.vistrails.org//index.php?title=Building_From_Source&diff=304Building From Source2007-02-23T22:09:09Z<p>Heiland: </p>
<hr />
<div>'''Requirements'''<br />
* Python 2.4 http://www.python.org<br />
* Graphviz http://www.graphviz.org<br />
* Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html<br />
* 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<br />
* PyXML http://pyxml.sourceforge.net<br />
* fpconst http://www.warnes.net/rwndown/~warnes/fpconst (or from the [http://cheeseshop.python.org/pypi/fpconst/0.7.2 Cheese Shop])<br />
* SOAPpy http://pywebsvcs.sourceforge.net<br />
* MySQLdb http://sourceforge.net/projects/mysql-python<br />
* VTK (if you want to run vtk workflows) http://www.vtk.org<br />
* scipy http://www.scipy.org<br />
* ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge])<br />
'''Instructions'''<br />
<br />
'''[[Mac Intel Instructions|Click here for Specific Instructions for Mac Intel]]'''<br />
<br />
* Install [http://www.graphviz.org/Download.php Graphviz]<br />
<br />
* Install Python<br />
** On most Linux distributions it comes by default.<br />
** On Windows: Get the msi release [http://www.python.org/2.4.2/ here]<br />
** Add the installation directory to the PATH variable<br />
<br />
* Install Python Extensions<br />
** 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]<br />
*** To install it from source, download the .tar.gz file and uncompress it<br />
*** Then inside the uncompressed folder, type: ''python setup.py build'' and later ''sudo python setup.py install''<br />
** 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]<br />
** '''For WINDOWS & LINUX:''' we need ctypes available [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 here] <br />
<br />
* Install VTK CVS version (if you want to use VTK)<br />
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]<br />
** Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]<br />
** '''(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. <br />
** To compile VTK follow the instructions in the file ''README.html'' in the root of VTK directory tree<br />
** 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<br />
** It is recommended to create a environment variable called PYTHONPATH<br />
*** PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.<br />
* Install Qt 4.2.0 or above<br />
** You can get the open source version for all platforms [http://www.trolltech.com/download/opensource.html here]<br />
** When installing on windows, Qt requires the mingw compiler. It will also offer to download and install automatically for you<br />
** After installing you need to build the Qt library:<br />
** ('''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).<br />
** Run '''configure''' then '''make'''<br />
* Install SIP<br />
** 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])<br />
** 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'''<br />
* Install PyQt4<br />
** 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])<br />
** 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'''<br />
* Install MySQLdb (Python library allowing MySQL databases access)<br />
** The file is available [http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775 here]<br />
* Install scipy (Necessary for the SciPy package)<br />
** Windows<br />
*** Download and install the Enthought Scipy Python package [http://code.enthought.com/enthon/]<br />
** Linux<br />
*** Download and install BLAS [http://www.netlib.org/blass] - 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<br />
*** Download and install LAPACK [http://www.netlib.org/lapack] - 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<br />
*** Download and install numpy [http://numpy.scipy.org]<br />
*** Download and install scipy [http://www.scipy.org]<br />
* Install ctypes <br />
** The source is avalable [http://python.net/crew/theller/ctypes here]</div>Heiland