This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Error running renderd on debian 9

0

Hey I updated my debian to debian 9. When I am now trying to run renderd I got this error message:

renderd: error while loading shared libraries: libmapnik.so.2.2: cannot open shared object file: No such file or directory

It seems renderd want to use the wrong libmapnik library. My System has the following libmapnik libraries installed:

/usr/local/lib/libmapnik.so.3.1.0
/usr/local/lib/libmapnik.so.3.1
/usr/local/lib/libmapnik.so
/usr/lib/libmapnik.so.3.0.12
/usr/lib/libmapnik.so.3.0
/usr/lib/libmapnik.so

My renderd.conf looks like:

[renderd]
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile
stats_file=/var/run/renderd/renderd.stats


[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input/
font_dir=/usr/share/fonts/truetype
font_dir_recurse=1

[default]
URI=/osm_tiles/
TILEDIR=/var/lib/mod_tile
XML=/opt/openstreetmap-carto/mapnik.xml
HOST=localhost
TILESIZE=256

So maybe I need to update the version of renderd. But how do I do this?

Any help would be nice :)

asked 18 Sep '17, 10:27

Nevyen's gravatar image

Nevyen
11223
accept rate: 0%

Looks like you have two mapnik installations, one via the package manager and one self-compiled version. Do you really need both? If not, try removing the conflicting one.

(18 Sep '17, 10:47) scai ♦

2 Answers:

0

First things first - make sure you've got a restorable backup of where you are currently :)

Secondly - try and investigate why renderd thinks "libmapnik.so.2.2" is missing yet the renderd.conf file is trying to use a 3.0 plugins directory: "plugins_dir=/usr/lib/mapnik/3.0/input/".

If you have the opportunity, try setting up renderd with Debian 9 in a virtual machine - that way you can see what's supposed to link to what (and even if it works at all!) before tinkering with your main machine.

answered 18 Sep '17, 11:40

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 03 Jun '19, 09:07

0

Hello! I just copied all files libiniparser.* to /usr/lib/ and it worked. Note that some of them are just symlincs.

answered 03 Jun '19, 08:43

lokks's gravatar image

lokks
111
accept rate: 0%

Source code available on GitHub .