php-python
php-python copied to clipboard
build error with python2.7
when I use ./configure --with-python=/usr/include/python2.7 LDFLAGS="-L/usr/lib64/python2.7" --with-php-config=/opt/lampp/bin/php-config
to bulid then get error below:
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate checking for gawk... gawk checking for embedded Python support... yes, shared checking for dlopen in -ldl... yes checking for Py_Initialize in -lpython2.5... no configure: error: wrong Python lib version or lib not found
in config.log I found
configure:4169: checking for Py_Initialize in -lpython2.5 configure:4194: cc -o conftest -g -O2 -L/usr/lib64/python2.7 conftest.c -lpython2.5 -ldl -L/usr/include/python2.7/lib/python2.5/config -lm -pthread -lutil >&5 /usr/bin/ld: cannot find -lpython2.5 collect2: error: ld returned 1 exit status
That's funny. Do you also have Python 2.5 installed on that machine? Could you also try looking in the generated config.log
file for any hints?