source: orange/Orange/doc/INSTALL.linux.txt @ 9671:a7b056375472

Revision 9671:a7b056375472, 2.8 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1This document explains how to compile and install Orange on a Linux system.
2The following commands were tested on Ubuntu 9.04 and Ubuntu 11.04 and should
3be modified accordingly for other distributions.
4
51. OBTAINING SOURCES
6
7You can download the Orange's nightly packed sources from 
8http://orange.biolab.si/nightly_builds.html and extract the archive.
9
10An alternative is to check out the newest revision directly from SVN
11repository. In latter case, the following should do the job:
12
13sudo apt-get install subversion # install the SVN client
14
15svn co http://www.ailab.si/svn/orange/trunk/orange
16cd orange
17svn co http://www.ailab.si/svn/orange/trunk/source
18
192. DEPENDENCIES
20
212.1 For Python scripting
22
23If you only need the scripting interface, accessible through python,
24the dependencies are easier to fulfil. Only the common building tools and
25python extensions for imaging, graphs and computation with matrices are needed.
26
27sudo apt-get install make g++ python-dev python-numpy python-matplotlib python-imaging
28
29(For some older Ubuntu releases, it might be necesarry to replace the
30python-numpy with python-numpy-ext.)
31
32This suffices for Orange scripting version to work.
33
342.2 Orange Canvas (widgets)
35
36If you would like to use Orange Canvas, you will need to install PyQWT 5.1.
37On Ubuntu 9.10 and newer use:
38
39sudo apt-get install python-qwt5-qt4
40
41On Ubuntu 9.04 it needs to be compiled from source. To fulfill its compilation
42dependencies use:
43
44sudo apt-get install python-qt4-dev libqwt5-qt4-dev pyqt4-dev-tools sip4
45
46Then download PyQWT version 5.1.0 (.tar.gz package) from:
47http://sourceforge.net/projects/pyqwt/files/
48
49Extract it and move inside the extracted folder. Next, use the following.
50(For other systems, substitute the install path with your python package
51directory.)
52
53cd configure
54python configure.py -Q ../qwt-5.1 --module-install-path=/usr/lib/python2.6/dist-packages/PyQt4/Qwt5
55make -j8
56sudo make install
57
583. COMPILING AND INSTALLING ORANGE
59
60Move to the directory containing the downloaded Orange's sources. Compile the
61C++ sources:
62
63cd source
64make
65cd .. #to move to main orange directory
66
67Transfer files. Tar is used instead of cp because it can exclude unnecessary
68files and keeps symbolic links. For other systems, substitute the install path
69with your python package directory.
70
71sudo mkdir /usr/lib/python2.6/dist-packages/orange
72tar -cf - --exclude='.svn' * | sudo tar --no-same-owner -xf - -C /usr/lib/python2.6/dist-packages/orange
73
74sudo sh -c "echo '/usr/lib/python2.6/dist-packages/orange' > /usr/lib/python2.6/dist-packages/orange.pth"
75
764. RUNNING
77
78To use Orange in python scripts, try importing "orange" and "orngStat"
79in python interpreter. It should work flawlessly.
80
81You can run the Orange Canvas (widgets) with:
82python /usr/lib/python2.6/dist-packages/orange/OrangeCanvas/orngCanvas.pyw
Note: See TracBrowser for help on using the repository browser.