我正在使用centos并在我的服务器上安装mapnik。我正在学习本教程http://krisarnold.com/2010/07/14/installing-mapnik-on-centos-5/
但是,当我通过“导入mapnik”测试安装时,它会给出以下错误。
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提前感谢您的建议和解决方案。
发布于 2012-06-06 06:05:36
我解决了这个问题。
只需将‘/usr/local/lib64 64’项添加到‘/etc/ld.so.con.d/’中的一个文件中。
而不是运行ldconfig。
现在工作得很好。
在此页中找到解决方案https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting
https://serverfault.com/questions/395962
复制相似问题