Skip to content
This repository was archived by the owner on Dec 6, 2018. It is now read-only.
This repository was archived by the owner on Dec 6, 2018. It is now read-only.

build error with python2.7 #15

@zhaosih

Description

@zhaosih

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions