[El] Missing dependencies

Micha Silver micha at arava.co.il
Thu Aug 19 10:36:11 EDT 2010


I'm working on a fresh installation of CentOS 5.5 i386, and trying to
use the elgis repo. It seems there are still missing packages. Here's
my experience so far:

(apologies in advance for the long post...)

1) Whenever I install CentOS I first add the rpmforge repository. In
rpmforge there are already packages for proj and geos. If you get
these, instead of the elgis packages, then the elgis gdal
installation will fail because of missing dependencies. There are two
ways to get around this: either temporarily disable rpmforge, and
install proj and geos from elgis, or else set up with yum-priorities to
have the elgis repos of higher priority (lower number) than the
rpmforge repo.

2) When I got to installing gdal, I was still missing these 5 rpms: 
libgeotiff, ogdi, hdf5, cfitsio, and gpsbabel. I found all of them on
the pbone.net website. After installing all of them, then I could get
gdal, grass and qgis setup.

Here's my step-by-step procedure (watch out for line wrapping in the
email)

-----clip-----
# First general system update
sudo yum update
# Add rpmforge and elgis repos
sudo rpm -Uiv http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
sudo rpm -Uvh http://elgis.argeo.org/repos/5/elgis-release-5-5_0.noarch.rpm
# Grab devel tools
sudo yum groupinstall "Development Tools" 
# Add xfce environment
sudo yum groupinstall "XFCE-4.4"
# Just to be sure...
sudo yum install gcc gcc-c++ gcc-gfortran flex byacc cmake bison gsl gsl-devel yum-utils yum-priorites rpm-build
# Install proj, geos, from the elgis repo (skip rpmforge)
sudo yum --disablerepo=rpmforge install proj proj-epsg proj-devel geos swig sip sip-devel
# Now more python stuff
sudo yum install wxGTK wxGTK-devel python-psycopg2 numpy wxPython wxPython-devel
# Download from pbone.net 5 additional rpm packages to fulfil dependencies for gdal
# Can we get these into elgis??
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/libgeotiff-devel-1.2.4-3.el5.kb.i386.rpm
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/libgeotiff-1.2.4-3.el5.kb.i386.rpm
sudo yum --nogpgcheck localinstall libgeotiff-*
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/5/i386/gpsbabel-1.3.3-1.el5.i386.rpm
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/ogdi-3.2.0-0.12.beta2.el5.kb.i386.rpm
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/hdf5-1.6.6-1.el5.kb.i386.rpm
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/cfitsio-devel-3.030-3.el5.kb.i386.rpm
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/cfitsio-3.030-3.el5.kb.i386.rpm
# Install those rpms
sudo yum --nogpgcheck localinstall *.rpm
# Now we're ready for the gis stuff
sudo yum --enablerepo=elgis-plus --enablerepo=elgis-testing install
PyQt4 PyQt4-devel qgis qgis-python qgis-grass grass sqlite sqlite-devel postgis postgresql84
-----end clip-----
Can we get these packages built into the elgis repository? Or are they
available from somewhere else?


Now two questions:
QGIS works but no plugin-installer :-(
I get this error on application startup:
-----clip------
Couldn't load plugin plugin_installer due an error when calling its
classFactory() method

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/qgis/utils.py", line 141, in
startPlugin plugins[packageName] = package.classFactory(iface)
  File "/usr/share/qgis/python/plugins/plugin_installer/__init__.py",
line 33, in classFactory from installer_plugin import InstallerPlugin
  File
"/usr/share/qgis/python/plugins/plugin_installer/installer_plugin.py",
line 25 class InstallerPlugin(): ^
SyntaxError: invalid syntax

Python version:
2.4.3 (#1, Sep  3 2009, 15:37:12) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

Python path: ['/usr/share/qgis/python', '/home/micha/.qgis//python',
'/home/micha/.qgis//python/plugins', '/usr/share/qgis/python/plugins',
'/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/gtk-2.0',
'/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode',
'/usr/share/qgis/python/plugins/fTools/tools']
-----end clip-----

Anyone know what's wrong here?? Am I missing some python package?


And next a question regarding GRASS. In the wxpython interface the
vector digitizer is not available. This happens, AFAIK, for one of two
reasons: either GRASS was configured without the --with-cxx option, or
the version of swig (python-c++ bindings) is too new. Checking the
GRASS source spec file from elgis, I see that --with-cxx is included,
and the swig version on CentOS is 1.2.29. Should be OK (If swig is newer
than 1.3.26 then the vector digitizer functionality disappears). BTW,
in the tcktk interface, the digitizer works fine.

Thanks, and again, sorry for so many questions right at the start
-- 
Micha


More information about the el mailing list