Orange

Installing Orange in Suse and openSuse (based on text by Ignacio Arriaga Sánchez)

Download sources

Download the last Orange version, select the sources package and extract it.

Install dependencies

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 install
For 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

Transfer files:

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

Running Orange

To use Orange in python scripts, import "orange" in the python interpreter. You can also run the Orange Canvas (widgets) with:

python /usr/lib64/python2.6/site-packages/orange/OrangeCanvas/orngCanvas.pyw

Installing C45 Plug-in (optional, Orange has its own reimplementation of the algorithm)

  1. Download the C4.5 (Release 8) sources from http://www.rulequest.com/Personal/c4.5r8.tar.gz. Then extract it in a temporary directory.
  2. Download buildC45.zip and unzip its contents into the C4.5 directory R8/Src.
  3. Open buildC45.py and, after the last line add:
            print "Installation path: %s" % orangedir,
    
  4. Then execute buildC45.py as root:
            sudo python buildC45.py
    
  5. 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
    
  6. In the python interpreter try to write:
            import orange
            orange.C45Learner()
    
    If there are no errors the plug-in have been installed correctly.