2012-02-25 1 views
1

buildout을 통해 우분투 10.04에서 GDAL-1.9.0을 설치하려고하는데 불행히도 매우 이상한 오류가 발생합니다.우분투 10.04에서 빌드 아웃을 통해 GDAL 설정하기

python setup.py build 
'import site' failed; use -v for traceback 
Traceback (most recent call last): 
    File "setup.py", line 75, in <module> 
    from distutils.command.build_ext import build_ext 
    File "/usr/lib/python2.6/distutils/command/build_ext.py", line 13, in <module> 
    from site import USER_BASE, USER_SITE 
    File "/home/student/geoserv_new/geoportal2/trunk/parts/buildout/site.py", line 601, in <module> 
    main() 
    File "/home/student/geoserv_new/geoportal2/trunk/parts/buildout/site.py", line 583, in main 
    known_paths = addusersitepackages(known_paths) 
    File "/home/student/geoserv_new/geoportal2/trunk/parts/buildout/site.py", line 271, in addusersitepackages 
    user_site = getusersitepackages() 
    File "/home/student/geoserv_new/geoportal2/trunk/parts/buildout/site.py", line 246, in getusersitepackages 
    user_base = getuserbase() # this will also set USER_BASE 
    File "/home/student/geoserv_new/geoportal2/trunk/parts/buildout/site.py", line 235, in getuserbase 
    from sysconfig import get_config_var 
ImportError: No module named sysconfig 
make[2]: *** [build] Error 1 
make[2]: Leaving directory `/tmp/tmpY7oYvSbuildout-gdal/gdal-1.9.0/swig/python' 
make[1]: *** [build] Error 2 
make[1]: Leaving directory `/tmp/tmpY7oYvSbuildout-gdal/gdal-1.9.0/swig' 
make: *** [swig-modules] Error 2 
gdal: cmmi failed: /tmp/tmpY7oYvSbuildout-gdal 
While: 
    Installing gdal. 

An internal error occurred due to a bug in either zc.buildout or in a 
recipe being used: 
Traceback (most recent call last): 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.buildout-1.5.2-py2.7.egg/zc/buildout/buildout.py", line 1805, in main 
    getattr(buildout, command)(args) 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.buildout-1.5.2-py2.7.egg/zc/buildout/buildout.py", line 584, in install 
    installed_files = self[part]._call(recipe.install) 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.buildout-1.5.2-py2.7.egg/zc/buildout/buildout.py", line 1297, in _call 
    return f() 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.recipe.cmmi-1.3.5-py2.7.egg/zc/recipe/cmmi/__init__.py", line 113, in install 
    self.build() 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.recipe.cmmi-1.3.5-py2.7.egg/zc/recipe/cmmi/__init__.py", line 196, in build 
    self.cmmi(dest) 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.recipe.cmmi-1.3.5-py2.7.egg/zc/recipe/cmmi/__init__.py", line 222, in cmmi 
    system("make") 
    File "/home/student/geoserv_new/geoportal2/trunk/eggs/zc.recipe.cmmi-1.3.5-py2.7.egg/zc/recipe/cmmi/__init__.py", line 34, in system 
    raise SystemError("Failed", c) 
SystemError: ('Failed', 'make') 

여기 GDAL 내 buildout.cfg의 일부입니다

[gdal] 
recipe = zc.recipe.cmmi 
url = http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz 
extra_options = 
    --with-python 
    --with-geos=${geos:location}/bin/geos-config 

더욱 이상한 내가 쉘을 python2.7 및 가져 오기 SYSCONFIG을 시도하는거야 때. 모든 것이 잘 작동합니다. 이것에 대한 제안?

덕분에, 세르게이

답변

1

당신은 당신이 'python2.7'쉘에서 테스트를 언급.

이 :

File "/usr/lib/python2.6/distutils/command/build_ext.py", 

는 buildout 파이썬 2.6에서 실행되고 있음을 의미한다.

sysconfig가 python2.6 환경에서 사용 가능합니까 아니면 잘못된 버전으로 buildout을 실행하고 있습니까?

관련 문제