NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦

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.

permanent link

answered 18 Sep '17, 11:40

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 03 Jun '19, 09:07

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

permanent link

answered 03 Jun '19, 08:43

lokks's gravatar image

lokks
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×105
×4

question asked: 18 Sep '17, 10:27

question was seen: 2,826 times

last updated: 03 Jun '19, 09:07

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum