NetBSD에서 Python 3.2를 컴파일하는 방법은 무엇입니까? 오류 코드 127

NetBSD에서 Python 3.2를 컴파일하는 방법은 무엇입니까? 오류 코드 127

NetBSD 5.1에서 Python 3.2를 컴파일하려고 하면 이상한 오류가 발생합니다:

python ./Objects/typeslots.py < ./Include/typeslots.h > ./Objects/typeslots.inc
python: not found
*** Error code 127

내가 뭘 잘못했나요?

저는 일반적인 방법으로 Python을 컴파일하려고 합니다.

./configure
make
su
make install

답변1

어떤 이유로 이 프로세스 중에 touch일부 파일에 액세스해야 합니다 make. 오류 127로 인해 make가 종료되면 다음을 실행하십시오.

touch ./Include/typeslots.h
touch ./Objects/type
touch ./Objects/typeslots.py
make

Python 소스 디렉터리 내부.

두 번째로 불평할 것입니다:

./Python/makeopcodetargets.py ./Python/opcode_targets.h
env: python: No such file or directory

이번에도 touch문제가 되는 파일만 삭제하고 make다시 실행해 보세요.

touch ./Python/makeopcodetargets.py
touch ./Python/opcode_targets.h
make

답변2

이제 (2012년 5월 기준) pkgsrc --lang/python32

관련 정보