Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

make install
share|improve this question
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

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
share|improve this answer

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

share|improve this answer

Your Answer


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.