Re: [OSM-talk] server cannot find mod_tile

2009-02-28 Thread Kenneth Gonsalves
On Friday 27 February 2009 17:08:00 Kenneth Gonsalves wrote:
> > So - back a stage, how did you install mapnik? Source or an rpm?
>
> it was from svn head. I went back and built it again. Then rebuilt
> mod_tile. Got no errors. Ran ./renderd - first got an error as it was
> looking fonts in /usr/local/lib64/mapnik/fonts. Found this hardcoded and
> changed it. Now both renderd and renderd.py give the same error:
>
> Render fd(6) xml(Default), z(0), x(0), y(0)
> ./renderd: symbol lookup error: ./renderd: undefined symbol:
> _ZN6mapnik3Map15set_buffer_sizeEi

solved - the broken build had put libmapnik.so in /usr/lib whereas the correct 
build had put it in /usr/local/lib. I removed the b0rked files and all is 
serene - thanks a lot for your help.
-- 
regards
Kenneth Gonsalves
Associate
NRC-FOSS
http://nrcfosshelpline.in/web/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] server cannot find mod_tile

2009-02-27 Thread Kenneth Gonsalves
On Thursday 26 February 2009 21:02:37 you wrote:
> > I had run it previously - I now recall that after the error in make, I
> > ran make again and did not get any error. So I thought it was ok. This
> > time also, running make the second time did not give any error. The
> > mod_tile is from the svn head. I am on fedora10. I am able to generate
> > images and tiles using mapnik-python, so I guess everything else is in
> > place.
>
> It looks to me as if the mapnik python dependencies are working but
> the c headers have not been installed.  That it works at all looks
> like a problem with the make file dependencies (but I've noticed some
> oddness there before so I'm not surprised).  If it doesn't work
> immediately after the make clean then it didn't work :-)
>
> So - back a stage, how did you install mapnik? Source or an rpm?

it was from svn head. I went back and built it again. Then rebuilt mod_tile. 
Got no errors. Ran ./renderd - first got an error as it was looking fonts in 
/usr/local/lib64/mapnik/fonts. Found this hardcoded and changed it. Now both 
renderd and renderd.py give the same error:

Render fd(6) xml(Default), z(0), x(0), y(0)
./renderd: symbol lookup error: ./renderd: undefined symbol: 
_ZN6mapnik3Map15set_buffer_sizeEi

Hopefully if this is solved, it will work ;-)
-- 
regards
Kenneth Gonsalves
Associate
NRC-FOSS
http://nrcfosshelpline.in/web/


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] server cannot find mod_tile

2009-02-25 Thread Jon Burgess
On Wed, 2009-02-25 at 15:29 +0530, Kenneth Gonsalves wrote:
> Hi,
> I have set up apache to access renderd as in mod_tile readme.txt. But when I 
> try to acess http://localhost//osm_tiles2/, the server insists on looking for 
> /var/www/html//osm_tiles2/. Looks like some 'Location' directive is needed. 
> Can someone tell me how?

There are two things which need to be setup. The main /etc/renderd.conf
file and the Apache config directives. In /etc/renderd.conf you need to
define the names of your styles and the mapping to the URI and xml
files:

  [Default]
  URI=/osm_tiles2/
  XML=/home/jburgess/mapnik/osm-local.xml

In an Apache config file you need to tell it to load the module and tell
it where the previous configuration file is located:

  LoadModule tile_module modules/mod_tile.so
  LoadTileConfigFile /etc/renderd.conf

The Apache LoadTileConfigFile option can be inside a virtual server
definition or at the top level.

Jon



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk