CompilingEricUnderSlackware

Compiling the Eric IDE under Slackware

(Warning - this is still a work in progress - expect updates)

One of my personal projects is to get back to Python programming. Shell scripts are great for small tasks, but unsuitable for the type of projects I have in mind, and Perl is just... well... Perl.

Anyway, investigating the IDE available out there for Python, I discovered Eric, which seems like the ideal IDE for me, especially since it's free, and comes with a lot of recommendations. It's a complete IDE (Integrated Development Environment), including a nice editor, integrated debugger, and interfaces to Subversion and other version control software.

Compiling/Installing Eric under Slackware 13 is not too hard, but requires the following to be performed, exactly in the order shown:

1. Install SIP

SIP provides functions to interface Python with C/C++ libraries. It is necessary to install Pyqt (The QT/Python interface) which is used by Qscintilla and Eric.

Get SIP from the Riverbank software site (see below), and do the following:

$ python ./configure.py
$ make all
$ sudo make install

2. Install Pyqt

The library pyqt allows Python to control the QT graphical library. QT is used, among others, by KDE, the K Desktop Environment. Since KDE is the default graphical "desk" of Slackware, QT4 is already installed.

To compile and install Pyqt, just do the following (it takes a while on my machine, so please be patient):

$ python ./configure.py

Then, edit the Makefile and comment all the lines with phonon in them. For instance:

all:
        @(cd qpy; $(MAKE))
        @(cd QtCore; $(MAKE))
        @(cd QtGui; $(MAKE))
        @(cd QtHelp; $(MAKE))
        @(cd QtNetwork; $(MAKE))
        @(cd QtOpenGL; $(MAKE))
        @(cd QtScript; $(MAKE))
        @(cd QtScriptTools; $(MAKE))
        @(cd QtSql; $(MAKE))
        @(cd QtSvg; $(MAKE))
        @(cd QtTest; $(MAKE))
        @(cd QtWebKit; $(MAKE))
        @(cd QtXml; $(MAKE))
        @(cd QtXmlPatterns; $(MAKE))
#       @(cd phonon; $(MAKE))
        @(cd QtAssistant; $(MAKE))
        @(cd QtDesigner; $(MAKE))
        @(cd Qt; $(MAKE))
        @(cd dbus; $(MAKE))
        @(cd pyuic; $(MAKE))
        @(cd pylupdate; $(MAKE))
        @(cd pyrcc; $(MAKE))

Then, start the compilation with the traditional:

$ make all
$ sudo make install

Commenting out phonon seems to be necessary since, at least on my machine, it crashes the compilation of the Pyqt (for a reason I am still not clear about). Commenting it out therefore allows the compilation to proceed correctly.

3. Install Qscintilla

We are almost there! Qscintilla is the editing library Scintilla ported under QT4. While not as good as Vim, Scintilla is a good editor, programmer-oriented.

Installing it is a bit different from the usual:

$ cd QScintilla-gpl-2.4.5
$ cd Qt4
$ qmake qscintilla.pro
$ make 
$ sudo make install

Replace the 'QScintilla-gpl-2.4.5' directory as necessary.

4. Install Eric

Finally, to install Eric on Slackware, just do:

To be done...

See Also: