Compiler help?

  • tux1003
    27th Aug 2013 Member 0 Permalink

    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.

    Edited once by tux1003. Last: 27th Aug 2013
  • jacksonmj
    27th Aug 2013 Developer 0 Permalink

    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).

     

     

    Edited once by jacksonmj. Last: 27th Aug 2013
  • tux1003
    6th Sep 2013 Member 0 Permalink

    Ah. Thanks! It works now.