Changes between Initial Version and Version 1 of GeoDjangoFedoraInstall


Ignore:
Timestamp:
Aug 26, 2008, 12:35:38 AM (16 years ago)
Author:
Tristen Georgiou
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoFedoraInstall

    v1 v1  
     1These instructions apply for Fedora 9 and GeoDjango on django1.0 and mysql 5.0.51
     2
     3= Third Party Library Installation =
     4Download and untar the geos lib
     5{{{
     6$ wget http://download.osgeo.org/geos/geos-3.0.0.tar.bz2
     7$ tar xjf geos-3.0.0.tar.bz2
     8}}}
     9Next, change into the directory where GEOS was unpacked, run the configure script and attempt to run the make script
     10{{{
     11$ ./configure
     12$ make
     13}}}
     14If make fails, I think it's due to gcc 4.3.0 not liking the includes for some of the files. You can download the latest svn drop (3.1.0) and that should compile OR you can make the changes in the 3.0.0 source code by following the diff's on this page: http://bugs.gentoo.org/attachment.cgi?id=149838&action=view (i.e. add the lines starting with a '+' and remove the lines starting with a '-' from the respective file)
     15
     16Once you have made it successfully, install it
     17{{{
     18# make install
     19}}}
     20
     21Install [GeoDjangoInstall#PROJ.4 PROJ.4] and [GeoDjangoInstall#GDAL GDAL] according to the [GeoDjangoInstall#GeoDjangoInstallation main installation page]
     22
     23Test that the GEOS libraries are where they should be by changing to a django project directory and importing the models from django.contrib.gis.db
     24{{{
     25$ python manage.py shell
     26Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
     27[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
     28Type "help", "copyright", "credits" or "license" for more information.
     29(InteractiveConsole)
     30>>> from django.contrib.gis.db import models
     31}}}
     32
     33If you get no errors, it's all good! If you get this (at the bottom of the stack trace)
     34{{{
     35...
     36  File "/usr/lib64/python2.5/ctypes/__init__.py", line 340, in __init__
     37    self._handle = _dlopen(self._name, mode)
     38OSError: libgeos_c.so.1: cannot open shared object file: No such file or directory
     39}}}
     40
     41then copy your libgeos files from /usr/local/lib/ to /usr/lib
     42{{{
     43# cp /usr/local/lib/libgeos* /usr/lib/
     44}}}
     45
     46OR if you have 64bit installed, copy them to /usr/lib64
     47{{{
     48# cp /usr/local/lib/libgeos* /usr/lib64/
     49}}}
Back to Top