Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm getting strange errors when I try to compile Python 3.2 on NetBSD 5.1:

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

What am I doing wrong?

I'm trying to compile Python in the usual fashion:

./configure
make
su
make install
share|improve this question

2 Answers 2

up vote 1 down vote accepted

For some reason, you have to touch some files during the make process. When make quits with this Error 127, run:

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

Inside of the Python source directory.

It will complain a second time:

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

Again, just touch the offending files and run make again.

touch ./Python/makeopcodetargets.py
touch ./Python/opcode_targets.h
make
share|improve this answer

It's now (since May 2012) in pkgsrc -- lang/python32

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.