I was attempting to compile tpt on Debian/Linux and the compiler terminated thus:
/WOOD.cpp src/simulation/elements/WTRV.cpp src/simulation/elements/YEST.cpp
sh: 1: python2: not found
scons: *** [build/generated/ElementClasses.cpp] Error 127
scons: building terminated because of errors.
What went wrong with "ElementClasses.cpp"?
I was following the instructions of this guide.(https://powdertoy.co.uk/Wiki/W/Compiling_TPT%2B%2B_on_debian/ubuntu.html)
Has anyone had similar problems before?
EDIT:Error 127 suggests that the file doesn't exist.
Make sure Python (version 2.x, not version 3) is installed.
Find out what the name of the python executable is. For example, by doing ls /usr/bin/python*
Then add --python-ver=something to the scons command line options, where "something" is the name of the python executable (for example, --python-ver=python2.7 or --python-ver=/usr/local/bin/python).