No word about onion

shaman.sir's telling you about stuff

Eric IDE 4.0.1 in Ubuntu 7.04

Eric – is very good IDE for Python. And just yesterday the new 4.0.1 version was released, but in repositories the last version for the moment is 3.9, and I found myself missing those good old times when I’ve compiled packages form sources recently. So I am presenting you a listing of things to be done just in case, to prevent you from meeting the errors that visited me through the process of compilation. Something from this stuff is oriented on new versions :). Just because it was installed on clean Ubuntu - everything must be adequate… If I missed something, please report.

What is used:

so, let’s go into some catalogue for compilation and start:

$ cd ~/distr-temp/

using sources from sourceforge:

$ wget http://mesh.dl.sourceforge.net/sourceforge/eric-ide/eric4-4.0.1.tar.gz

we will install different libraries for PyQt (depending of apt-get settings you may need an install CD):

$ sudo apt-get install python2.5-dev
$ sudo apt-get install python-qt4
$ sudo apt-get install libqt4-dev
$ sudo apt-get install python-qt4-dev

then we’ll install g++ compiler and make a /usr/bin/g++ link:

$ sudo apt-get install g++-3.4
$ sudo ln -s /usr/bin/g++-3.4 /usr/bin/g++

then download and install the last current version of SIP – it allows the libraries written C[++] to act themselves as Python modules:

$ wget http://www.riverbankcomputing.com/Downloads/sip4/sip-4.6.tar.gz
$ tar -xvzf ./sip-4.6.tar.gz
$ cd ./sip-4.6.tar.gz
$ python ./configure.py
$ make
$ sudo make install
$ cd ..

then download and install the last current version of QScintilla – Qt-port for source code editor component (version is for Qt4):

$ wget http://www.riverbankcomputing.com/Downloads/ \
  Snapshots/QScintilla2/QScintilla-gpl-2-snapshot-20070709.tar.gz
$ tar -xvzf ./QScintilla-gpl-2-snapshot-20070709.tar.gz
$ cd ./QScintilla-gpl-2-snapshot-20070709/Qt4
$ qmake qscintilla.pro
$ sudo make
$ sudo make install

now we need to install bindings of QScintilla for Python – they are placed in Python directory:

$ cd ../Python
$ python ./configure.py
$ make
$ sudo make install

and finally the eric’s turn:

$ cd ../../eric4-4.0.1/
$ sudo python install.py

when installing, you need to specify the directory where Qt lies: /usr/share/qt4.

Well, actually that’s all. You can type eric4 and make fun, if you want :).

Back to top