I'm having problems with this.
The error still apeers. I already modificated acinclude.m4 with the parenthesis ad not worked. I get the same error msg.
My ./configure error msg:
checking for python version... 3.2
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.2/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.2/site-packages
checking for headers required to compile python extensions... File "<string>", line 1
import sys; print sys.prefix ^
SyntaxError: invalid syntax
File "<string>", line 1
import sys; print sys.exec_prefix ^
SyntaxError: invalid syntax
not found
configure: error: could not find Python headers
My acinclude.m4 file:
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_V$
fi
I'm having problems with this.
The error still apeers. I already modificated acinclude.m4 with the parenthesis ad not worked. I get the same error msg.
My ./configure error msg:
checking for python version... 3.2 /lib/python3. 2/site- packages prefix} /lib/python3. 2/site- packages
^
^
checking for python platform... linux2
checking for python script directory... ${prefix}
checking for python extension module directory... ${exec_
checking for headers required to compile python extensions... File "<string>", line 1
import sys; print sys.prefix
SyntaxError: invalid syntax
File "<string>", line 1
import sys; print sys.exec_prefix
SyntaxError: invalid syntax
not found
configure: error: could not find Python headers
My acinclude.m4 file:
AC_MSG_CHECKING(for headers required to compile python extensions) prefix= `$PYTHON -c "import sys; print(sys. exec_prefix) "` INCLUDES= "-I${py_ prefix} /include/ python$ {PYTHON_ VERSION} " INCLUDES= "$PYTHON_ INCLUDES -I${py_ exec_prefix} /include/ python$ {PYTHON_ V$
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
py_exec_
PYTHON_
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_
fi
Is this correct?