Development:Linux Development Environment
From OpenLP
Contents |
Installing on Kubuntu, Ubuntu or Ubuntu derivatives
Warning: Kubuntu-specific Section
This section is written by a Kubuntu user with Kubuntu (or one of it's siblings, such as Ubuntu and Xubuntu) in mind. Thus, he liberally uses aptitude, and assumes that everything will work exactly the same for you.
If you don't run Kubuntu (or one of it's siblings), it won't work, so look for the section on this page that deals with your specific Linux distribution.
(If you have Google Translated this page into your language, ensure you follow instructions from the untranslated page)
Ubuntu Notes
At the time of writing, there are known problems with media for some Gnome installations. Installing libxine-ffmpeg and/or phonon-backend-gstreamer might help with these.
Kubuntu Karmic Koala (9.10) and higher
For versions of Kubuntu from 9.10 (aka Karmic Koala) and up, run this command to install all required packages:
user@linux:~$ sudo aptitude install qt4-dev-tools qt4-designer qt4-doc python-qt4 python-qt4-dev python-qt4-phonon
python-qt4-gl pyqt4-dev-tools eric python-sqlalchemy python-lxml python-migrate
Enable the Universe repository if it is not already enabled and then:
user@linux:~$ sudo aptitude install python-beautifulsoup python-enchant
Earlier Versions of Kubuntu
The rest of Kubuntu section is for earlier versions of Kubuntu.
Install Qt 4
The recommended version of Qt4 is version 4.4.0 or higher.
Version 4.4.3 is the default version of Qt 4 on Kubuntu 8.10. On previous versions of Kubuntu, you'll need to install Qt4, and make sure you install version 4.4.0 or higher. On Ubuntu, the following command should install most of Qt4:
user@linux:~$ sudo aptitude install qt4-dev-tools qt4-designer qt4-doc
Install PyQt4
The recommended version of PyQt4 is version 4.4.0 or higher
Version 4.4.3 is the default version of PyQt4 on Kubuntu 8.10. If you're using a previous version of Kubuntu, you'll need to make sure you get hold of version 4.4.0. You can install PyQt4 with the following command:
user@linux:~$ sudo aptitude install python-qt4 python-qt4-dev python-qt4-phonon python-qt4-gl
Install Eric4
The recommended version of Eric4 is version 4.2.0 or higher
Kubuntu Jaunty comes with Eric4 version 4.3.0, so it's a simple matter of using apt-get to install it.
user@linux:~$ sudo aptitude install eric
Note: The version of Eric4 that comes with Kubuntu 8.10 and 9.04 is an old and broken version of Eric4. This means you need to download and install the updated version of Eric4 from the download page (it's hosted on SourceForge.net, so you'll need to navigate there and download it with your browser).
Now extract and install the downloaded version of Eric4:
user@linux:~$ cd Downloads user@linux:~/Downloads$ tar -xzvf eric4-4.2.4a.tar.gz user@linux:~/Downloads$ cd eric4-4.2.4a user@linux:~/Downloads/eric4-4.2.4a$ sudo python install.py
Install SQLAlchemy
The recommended version of SQLAlchemy is version 0.5 or higher
Currently, SQLAlchemy on Kubuntu Jaunty is still version 0.4.8, so we need to install setuptools, and then use easy_install to install SQLAlchemy.
user@linux:~$ sudo aptitude install python-setuptools user@linux:~$ sudo easy_install SQLAlchemy
Install PyEnchant
PyEnchant offers spellchecking functionality when editing songs/custom.
user@linux:~$ sudo aptitude install python-enchant
Install Python-mako
Python-mako package is required for the remotes plugin to work
user@linux:~ $ sudo aptitude install python-mako
Installing on Fedora
Warning: Fedora-specific Section
This section is written by a Fedora user with Fedora in mind. Thus, he liberally uses pkcon, and assumes that everything will work exactly the same for you.
If you don't run Fedora, it won't work, so look for the section on this page that deals with your specific Linux distribution.
(If you have Google Translated this page into your language, ensure you follow instructions from the untranslated page)
Install Qt 4
The recommended version of Qt4 is version 4.6.0 or higher
Version 4.6.2 is the default version of Qt 4 on Fedora 13.
user@linux:~$ pkcon install qt-x11 qt-devel qt-doc
Install PyQt4
The recommended version of PyQt4 is version 4.5.0 or higher
Version 4.6.2 is the default version of PyQt4 on Fedora 13. If you're using a previous version of Fedora, you'll need to make sure you get hold of version 4.4.0. You can install PyQt4 with the following command:
user@linux:~$ pkcon install PyQt4
Install Eric4
The recommended version of Eric4 is version 4.2.0 or higher
user@linux:~$ pkcon install eric
Install SQLAlchemy
The recommended version of SQLAlchemy is version 0.5 or higher
Installing SQLAlchemy on Fedora is a very simple affair:
user@linux:~$ pkcon install python-sqlalchemy python-migrate
Install Chardet
To get the bibles to work with the unicode settings Chardet is required
Installing Chardet on Fedora is a very simple affair:
user@linux:~$ pkcon install python-chardet
Install Phonon
To allow the media plugin to function
Installing Phonon on Fedora is a very simple affair:
user@linux:~$ pkcon install phonon
Install PyEnchant
PyEnchant offers spellchecking functionality when editing songs/custom.
user@linux:~$ pkcon install python-enchant
Install lxml
user@linux:~$ pkcon install python-lxml
Install Open/Libre Office
user@linux:~$ pkcon install python-openoffice
Installing on openSUSE
Warning: openSUSE-specific Section
This section is written by an openSUSE user with openSUSE in mind. Thus, he liberally uses zypper, and assumes that everything will work exactly the same for you.
If you don't run openSUSE, it won't work, so look for the section on this page that deals with your specific Linux distribution.
(If you have Google Translated this page into your language, ensure you follow instructions from the untranslated page)
Warning!!!!: The python-qt4 packages in OpenSUSE versions prior to 12.1 do not support Phonon so OpenLP will not run. If you want to run/develop OpenLP on OpenSUSE you should upgrade to 12.1
Add Python OBS Repository
user@opensuse:~ $ sudo zypper addrepo obs://devel:languages:python/openSUSE_12.1 python-obs
Install Dependencies
user@opensuse:~ $ sudo zypper install python-qt4 python-devel phonon python-beautifulsoup python-chardet python-enchant python-lxml python-mako python-sqlalchemy python-sqlalchemy-migrate hicolor-icon-theme libreoffice-impress libreoffice-pyuno
Install Eric IDE (Optional)
user@opensuse:~ $ sudo zypper install eric
Installing on Gentoo
Work-in-progress notes for this on Development:Linux Development Environment/Gentoo


