Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using centos and installed mapnik on my server. I am following this tutorial

But when I test the installation by "import mapnik", it gives me following error.

root@dev [~]# python
Python 2.6.6 (r266:84292, Dec  7 2011, 20:48:22)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/mapnik/", line 53, in <module>
    from _mapnik import *
ImportError: cannot open shared object file: No such file or directory

Thanks in advance for suggestions and solutions.

share|improve this question
up vote 1 down vote accepted

I solved this.

just needed to add an entry of '/usr/local/lib64' into one of the files inside '/etc/'

and than ran ldconfig.

Working very well now.

Solution found on this page

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.