As a result of making as described in "Compile Python with the Module and Prepare the Executable" on the following web page, a compilation error occurred.
How should we respond?
Is it not compatible with python3.10?
OS:AWS EC2
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:other-ext-apps:python-lsapi
In addition, the following warning occurred when running configure.py, but it is ignored.
How should we respond?
Is it not compatible with python3.10?
OS:AWS EC2
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:other-ext-apps:python-lsapi
Code:
cd /usr/local/lsws/wsgi-lsapi-1.6
python ./configure.py
make
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O0 -g3 -I. -I/usr/local/python3.10.4/include/python3.10 -I. -I/usr/local/python3.10.4/include/python3.10 -c -o main.o main.c
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O0 -g3 -I. -I/usr/local/python3.10.4/include/python3.10 -I. -I/usr/local/python3.10.4/include/python3.10 -c -o wsgi.o wsgi.c
wsgi.c:30:10: fatal error: node.h: No such file or directory
#include <node.h>
^~~~~~~~
compilation terminated.
make: *** [wsgi.o] Error 1
In addition, the following warning occurred when running configure.py, but it is ignored.
Code:
python ./configure.py
/usr/local/lsws/wsgi-lsapi-1.6/./configure.py:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.sysconfig import get_config_var
/usr/local/lsws/wsgi-lsapi-1.6/./configure.py:3: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
from distutils.sysconfig import get_config_var