我正在使用centos并在我的服务器上安装mapnik 。 我正在学习本教程http://krisarnold.com/2010/07/14/installing-mapnik-on-centos-5/
但是,当我通过“导入mapnik”testing安装,它给我下面的错误。
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/__init__.py", line 53, in <module> from _mapnik import * ImportError: libmapnik.so.0.7: cannot open shared object file: No such file or directory
预先感谢您的build议和解决scheme。
我解决了这个问题
只需要在“/etc/ld.so.conf.d/”里添加一个“/ usr / local / lib64”
并比运行ldconfig。
现在工作得很好。
在此页面上find解决schemehttps://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting