php-python icon indicating copy to clipboard operation
php-python copied to clipboard

build error with python2.7

Open zhaosih opened this issue 9 years ago • 1 comments

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

zhaosih avatar Sep 02 '15 09:09 zhaosih

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?

jparise avatar Sep 07 '15 19:09 jparise