ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.43k stars 889 forks source link

make error to build crow #416

Open lds-coder opened 1 year ago

lds-coder commented 1 year ago

Those errors are occurred when I build crow with 'make' command in ubuntu 22.04. Error information as below:

liudingsong@liudingsong-System:/usr/local/crow/build$ make [ 4%] Generating amalgamate/crow_all.h /bin/sh: 1: python: not found make[2]: [CMakeFiles/amalgamation.dir/build.make:74:amalgamate/crow_all.h] Error 127 make[1]: [CMakeFiles/Makefile2:153:CMakeFiles/amalgamation.dir/all] Error 2 make: *** [Makefile:101:all] Error 2 liudingsong@liudingsong-System:/usr/local/crow/build$

ghost commented 1 year ago

Do you have python installed? Or maybe python3? Check python --version or python3 --version in your terminal. If it is python3 you installed, change "python" to "python3 "in the CMakeLists.txt

digitive commented 1 year ago

Alternatively, run

sudo apt install python-is-python3