[OSGeo Africa] building a GIS workstation using freeandopensource software

Gavin Fleming GavinF at mintek.co.za
Wed Jan 23 06:30:17 EST 2008


Thanks Tim, that worked, except for one change:

sudo dpkg -r libqgis1 qgis qgis-grass

Should be:

sudo dpkg -r libqgis1 qgis qgis-plugin-grass


Gavin


-----Original Message-----
From: africa-bounces at lists.osgeo.org
[mailto:africa-bounces at lists.osgeo.org] On Behalf Of Tim Sutton
Sent: 23 January 2008 12:42 PM
To: Africa local chapter discussions; Gary Sherman
Subject: Re: [OSGeo Africa] building a GIS workstation using
freeandopensource software

Hi

Wow. Ok I guess we need to put a note on the download page telling
users to manually remove old packages before switching to the
repository. So we need to manually clean out the old stuff I guess.
Use the following commands with caution as the remove files
recursively as root - I take no responsibility for data loss... :

Lets first clear everything out and then reinstall only 0.9.1 (it
should install again from your cache so no more download should be
required - except for libqgis 0.9.1 which appears to be missing).

sudo dpkg --purge libqgis0
sudo dpkg -r libqgis1 qgis qgis-grass

dpkg -l |grep qgis

Purge any qgis packages if they appear with rc next to them after
running the above commands.

Now lets manually check there are no lingering qgis files on your
filesystem:

sudo rm  /usr/lib/libqgis*
sudo rm -rf /usr/lib/qgis
sudo rm -rf /usr/share/qgis
sudo rm -rf /usr/bin/qgis*

Finally reinstall 0.9.1 from apt:

sudo apt-get install qgis qgis-plugin-grass


Hopefully that will work. Gary can you attach the above as a little
readme on the download page?

Regards

Tim

2008/1/23, Gavin Fleming <GavinF at mintek.co.za>:
> Even though I had 'removed' 0.8 it seems there's some of it left, as
> well as 0.7! Also, I don't have libqgis1 for 0.9. What's the best way
to
> sort this out?
>
> gavinf at mtk-srv017:/etc/apache2$ sudo locate libqgis_core.so
> /usr/lib/libqgis_core.so.1
> /usr/lib/libqgis_core.so.1.0.0
> gavinf at mtk-srv017:/etc/apache2$ ls /usr/lib/libqgis_*
> /usr/lib/libqgis_composer.so.1      /usr/lib/libqgis_gui.so.1
> /usr/lib/libqgis_raster.so.1
> /usr/lib/libqgis_composer.so.1.0.0  /usr/lib/libqgis_gui.so.1.0.0
> /usr/lib/libqgis_raster.so.1.0.0
> /usr/lib/libqgis_core.so.1          /usr/lib/libqgis_legend.so.1
> /usr/lib/libqgis_core.so.1.0.0      /usr/lib/libqgis_legend.so.1.0.0
> gavinf at mtk-srv017:/etc/apache2$ dpkg -l |grep qgis
> rc  libqgis0                              0.7.4-5ubuntu1
> QGIS Geographic Information System - shared
> ii  libqgis1                              0.8.0-5ubuntu2
> QGIS Geographic Information System - shared
> ii  qgis                                  0.9.1-2
> Geographic Information System (GIS)
> ii  qgis-plugin-grass                     0.9.1-2
> Plugin for accessing GRASS data from QGIS
>
> thanks
>
> Gavin
>
>
> -----Original Message-----
> From: africa-bounces at lists.osgeo.org
> [mailto:africa-bounces at lists.osgeo.org] On Behalf Of Tim Sutton
> Sent: 22 January 2008 02:36 PM
> To: Africa local chapter discussions
> Subject: Re: [OSGeo Africa] building a GIS workstation using free
> andopensource software
>
> Hi
>
> Do you have more that one QGIS installation on that machine?
>
> Can you do:
>
> sudo updatedb      (to update your slocate database)
> locate libqgis_core.so
>
> And paste the results back to me. The libs should have been installed
> into /usr/lib e.g. on my system:
>
> [~] ls /usr/lib/libqgis_*
> /usr/lib/libqgis_core.so  /usr/lib/libqgis_gui.so
>
> Above is for QGIS installed via my PPA. If you are on a 64bit machine
> they could be in /usr/lib64. You should also check you dont have
> conflicting packages on your machine:
>
> [~] dpkg -l |grep qgis
> ii  libqgis1                                   0.9.1-2
>                   QGIS Geographic Information System - shared
> ii  libqgis1-dev                               0.9.1-2
>                   QGIS Geographic Information System - develop
> ii  qgis                                       0.9.1-2
>                   Geographic Information System (GIS)
>
> If you get more matches than that try removing the older ones.
>
> Regards
>
> Tim
>
> 2008/1/22, Gavin Fleming <GavinF at mintek.co.za>:
> > Tim, after installing QGis from your PPA, I also installed
> > qgis-plugin-grass.
> >
> > Then I tried to run 'qgis' and got this error:
> >
> > qgis: error while loading shared libraries: libqgis_core.so: cannot
> open
> > shared object file: No such file or directory. Any tips?
> >
> > thanks
> >
> > Gavin
> >
> >
> > -----Original Message-----
> > From: africa-bounces at lists.osgeo.org
> > [mailto:africa-bounces at lists.osgeo.org] On Behalf Of Tim Sutton
> > Sent: 22 January 2008 12:19 PM
> > To: Africa local chapter discussions
> > Subject: Re: [OSGeo Africa] building a GIS workstation using free
and
> > opensource software
> >
> > Hi All
> >
> > Please note that Perry wrote that article some time ago and the
> > packages he refers to are out of date. Since then I have created an
> > Ubuntu PPA (personal package archive) for QGIS so all you need to do
> > (assuming you are running Gutsy) is to add:
> >
> > deb: http://ppa.launchpad.net/timlinux/ubuntu gutsy main
> >
> > to your /etc/apt/sources.list and then apt-get update; apt-get
install
> > qgis. Updates to QGIS will automatically be downloaded and installed
> > after doing that using the standard Ubuntu update-manager along with
> > general Ubuntu updates.
> >
> > Regards
> >
> > Tim
> >
> > 2008/1/22, Gavin Fleming <GavinF at mintek.co.za>:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > building a GIS workstation using free and open source software
> > >
> > > -- see Matt Perry's blog - Turning Ubuntu into a GIS workstation
> > >
> > > http://www.perrygeo.net/wordpress/?p=10
> > >
> > > The instructions take Ubuntu 7.10 and add the following desktop
GIS
> > > applications:
> > >  Postgresql/PostGIS : a relational database with vector spatial
data
> > > handling
> > >  GRASS : A full blown GIS analysis toolset
> > >  Quantum GIS: A user-friendly graphical GIS application
> > >  GDAL, Proj, Geos : Libraries and utilities for processing spatial
> > data
> > >  Mapserver : web mapping program and utilites
> > >  Python bindings for QGIS, mapserver and GDAL
> > >  GPSBabel : for converting between various GPS formats
> > >  R : a high-end statistics package with spatial capabilities
> > >  GMT : the Generic Mapping Tools for automated high-quality map
> output
> > >
> > >
> > > (If some on this list try following the instructions, please let
the
> > list
> > > know how you got on with it)
> > >
> > > From: sdi-africa-bounces at lists.gsdi.org
> > > [mailto:sdi-africa-bounces at lists.gsdi.org] On Behalf Of
> > > Kate Lance
> > >  Sent: 21 January 2008 02:56 PM
> > >  To: SDI-Africa
> > >  Subject: [SDI-Africa] building a GIS workstation using free and
> open
> > > sourcesoftware
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Africa mailing list
> > > Africa at lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/africa
> > >
> > >
> >
> >
> > --
> > Tim Sutton
> > QGIS Project Steering Committee Member - Release  Manager
> > Visit http://qgis.org for a great open source GIS
> > openModeller Desktop Developer
> > Visit http://openModeller.sf.net for a great open source ecological
> > niche modelling tool
> > Home Page: http://tim.linfiniti.com
> > Skype: timlinux
> > Irc: timlinux on #qgis at freenode.net
> > _______________________________________________
> > Africa mailing list
> > Africa at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/africa
> > _______________________________________________
> > Africa mailing list
> > Africa at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/africa
> >
>
>
> --
> Tim Sutton
> QGIS Project Steering Committee Member - Release  Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological
> niche modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
> _______________________________________________
> Africa mailing list
> Africa at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/africa
> _______________________________________________
> Africa mailing list
> Africa at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/africa
>


-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
_______________________________________________
Africa mailing list
Africa at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/africa


More information about the Africa mailing list