장고를 사용하고 있으며 geoip 패키지를 사용하거나 GeoIP을 가져올 때 우분투 12.04에서 제대로 작동하는 동안 centos에서 다음 오류가 발생합니다.CentOS 서버에서 GeoIP을 가져 오는 중 오류가 발생했습니다.
from django.contrib.gis.utils.geoip import GeoIP
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/django/contrib/gis/utils/geoip.py", line 67, in <module>
'Try setting GEOIP_LIBRARY_PATH in your settings.' % lib_name)
django.contrib.gis.utils.geoip.GeoIPException: Could not find the GeoIP library (tried "GeoIP"). Try setting GEOIP_LIBRARY_PATH in your settings.
저를 도와 시도하십시오 다음과 같이
오류가 나는이없이 더 이상 갈 수 없다.
$ echo $GEOIP_LIBRARY_PATH
을하고 출력을 비교 :