Installing Orange in Suse and openSuse (based on text by Ignacio Arriaga Sánchez)
Download the last Orange version, select the sources package and extract it.
For Python scripting we have to install the common building tools:
sudo zypper install make gcc-c++
And then we need the numpy library. Download numpy from http://sourceforge.net/projects/numpy/.
tar -xvf numpy-1.3.0.tar. cd numpy-1.3.0 python setup.py build sudo python setup.py installFor Orange Canvas:
We need the qt toolkit (if you use kde will be already installed and its Python bindings.
sudo zypper install libqt4 libqt4-devel python-qt4
And then we need the QWT library which extends the Qt framework with widgets for scientific and engineering applications. We will install directly the Python bindings because the library is included in the installation package. Download the source package from http://pyqwt.sourceforge.net/download.html (Option 6). And then:
tar -xvf PyQwt-5.1.0.tar.gz cd PyQwt-5.1.0/qwt-5.1 qmake make sudo make install
This will install the qwt library. Then install the Python bindings:
cd cd ../configure python configure.py -Q ../qwt-5.1 make sudo make install
For further information about installing PyQWT you could read the documentation (Doc/html/pyqwt/install.html).
Compiling and Installing Orange
Compile the C++ sources:
cd .. make
cd .. sudo mkdir /usr/lib64/python2.6/site-packages/orange tar -cf - --exclude='.svn' * | sudo tar --no-same-owner -xf - -C /usr/lib64/python2.6/site-packages/orange sudo sh -c "echo '/usr/lib64/python2.6/site-packages/orange' > /usr/lib64/python2.6/site-packages/orange.pth" sudo ln -s /usr/lib64/python2.6/site-packages/orange/liborange.so /usr/lib64/liborange.so
To use Orange in python scripts, import "orange" in the python interpreter. You can also run the Orange Canvas (widgets) with:
Installing C45 Plug-in (optional, Orange has its own reimplementation of the algorithm)
- Download the C4.5 (Release 8) sources from http://www.rulequest.com/Personal/c4.5r8.tar.gz. Then extract it in a temporary directory.
- Download buildC45.zip and unzip its contents into the C4.5 directory R8/Src.
- Open buildC45.py and, after the last line add:
print "Installation path: %s" % orangedir,
- Then execute buildC45.py as root:
sudo python buildC45.py
- The script will output, something line this: "Installation path: /usr/lib64/site-packages/orange/". Then you have to create a symbolic link to the library that has been generated:
ln -s /usr/lib64/site-packages/orange/c45.so /usr/lib64/c45.so
- In the python interpreter try to write:
import orange orange.C45Learner()If there are no errors the plug-in have been installed correctly.