Got the same error i looked in the log and this is what led up to the error:
configure:11468: checking consistency of all components of python development environment
configure:11494: gcc -o conftest -g -O2 -I/usr/include/python2.7 conftest.c -L/usr/lib/python2.7/config -lpython2.7 -ldl -lpthread -framework CoreFoundation >&5
ld: library not found for -ldl
collect2: ld returned 1 exit status
configure:11494: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libnl"
| #define PACKAGE_TARNAME "libnl"
| #define PACKAGE_VERSION "3.1"
| #define PACKAGE_STRING "libnl 3.1"
| #define PACKAGE_BUGREPORT "
tgraf@suug.ch"
| #define PACKAGE_URL ""
| #define PACKAGE "libnl"
| #define VERSION "3.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON "2.7"
| /* end confdefs.h. */
|
| #include <Python.h>
| int
| main ()
| {
| Py_Initialize();
| ;
| return 0;
| }
|
configure:11511: result: no
configure:11515: error: in `/usr/lib/libnl-3.1':
configure:11517: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"