Installing QGIS 2.4 on Arch-based Distros

Like most normal Arch-based folks (I’m on Manjaro, which I can’t recommend enough), I have QGIS installed via the Arch User Repository. QGIS 2.4 won’t compile with the 4.11 versions of pyqt4-common and python2-pyqt4 however, so you’ll have to downgrade those modules for long enough to compile QGIS 2.4. Credit to leosw in the AUR comments for documenting a fix.

1
2
3
4
5
6
7
8
pacman -S downgrade
downgrade pyqt4-common
# pick a 4.10 release from the list, saying no to permanently downgrading
downgrade python2-pyqt4
# pick a 4.10 release from the list, saying no to permanently downgrading
yaourt qgis
yaourt -Suy
yaourt -Rns downgrade