2016-09-08 3 views
1

Python을 컴파일하고 싶습니다. 나는 Github에서의 저장소를 복제 :파일의 타임 스탬프로 인해 Python을 컴파일하지 못했습니다.

git clone --depth=1 --branch=2.7 https://github.com/python/cpython.git 
구성이 작동하지만 파이썬은 발견되지 않기 때문에 건물이 실패

:

... 
Prerequisite 'Parser/Python.asdl' is newer than target 'Include/Python-ast.h'. 
Prerequisite 'Parser/asdl.py' is newer than target 'Include/Python-ast.h'. 
Prerequisite 'Parser/asdl_c.py' is newer than target 'Include/Python-ast.h'. 
Must remake target 'Include/Python-ast.h'. 
: Include/Python-ast.hParser/asdl_c.py보다 최신 때문에 make --debug에 의해 말대로

$ cd cpython 
$ ./configure 
... 
$ make 
/bin/mkdir -p Include 
./Parser/asdl_c.py -h Include ./Parser/Python.asdl 
/usr/bin/env: python: No such file or directory 
Makefile:718: recipe for target 'Include/Python-ast.h' failed 
make: *** [Include/Python-ast.h] Error 127 

이있다

사실, 헤더는 Python 스크립트 뒤에 조금 복제되었습니다.

$ ls --full-time Include/Python-ast.h Parser/asdl_c.py 
-rw-r--r-- 1 piwi piwi 21113 2016-09-08 15:22:32.984000000 +0200 Include/Python-ast.h 
-rwxr-xr-x 1 piwi piwi 41414 2016-09-08 15:22:33.248000000 +0200 Parser/asdl_c.py 

이 특정한 경우에 문제를 해결 헤더 작품을 터치 :이 문제를 방지 할 수있는 적절한 방법이

$ touch Include/Python-ast.h 
$ make 
... compiles ... 

있습니까?

감사합니다.

+0

를 참조하십시오'같은 종류의 모든 메이크 파일의 첫 번째 대상으로 all' :이 target1 target2'. make 나 make all은 항상 target1과 target2를 다시 만들 것이다. – ElpieKay

+0

또 다른 시도는'make -B' 또는'make -always-make'입니다. – ElpieKay

+0

@ElpieKay 감사합니다. – piwi

답변

관련 문제