Found these python executables on your PATH: 1. /usr/bin/python Use which? [1] 1 Using /usr/bin/python This python is so old it doesn't know how to answer my questions. Instead, you will be asked a series of questions about it. If possible, I will give you a set of reasonable options to choose from. You can always enter the complete answer yourself if none of mine are correct. 1. LIBS option. I need to know what extra libraries, if any, are required by this build of python. I recommend this: -lpthread Enter extra libraries (e.g. -lfoo -lbar) [-lpthread] -lpthread 2. LIBRARY option. The location of the python library. Inline::Python needs to link against it to use Python. Here are the libraries I know about: 1) /usr/lib/libpython1.5.so 2) /usr/lib/python1.5/config/libpython1.5.a Which? Or enter another. [1] 1 3. INCLUDE option. The location of the python include files. Inline::Python needs these to compile. Here are the locations I know about: 1) /usr/include/python1.5 2) /usr/local/include/python2.1 Which? Or enter another. [1] 1 Using These Settings: Extra Libs: -lpthread Python Lib: -L/usr/lib -lpython1.5 Includes: -I/usr/include/python1.5 Extra Flags: none (perl Makefile.PL --help for details) Checking if your kit is complete... Looks good Writing Makefile for Inline::Python cp Python.pm blib/lib/Inline/Python.pm cp Python.pod blib/lib/Inline/Python.pod /home/cpanrun/build/5.6.1/bin/perl -I/home/cpanrun/build/5.6.1/lib/5.6.1/i686-linux-thread-multi -I/home/cpanrun/build/5.6.1/lib/5.6.1 /home/cpanrun/build/5.6.1/lib/5.6.1/ExtUtils/xsubpp -typemap /home/cpanrun/build/5.6.1/lib/5.6.1/ExtUtils/typemap Python.xs > Python.xsc && mv Python.xsc Python.c gcc -c -I/usr/include/python1.5 -DUSE_REENTRANT_API -D_GNU_SOURCE -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -fpic -I/home/cpanrun/build/5.6.1/lib/5.6.1/i686-linux-thread-multi/CORE -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL Python.c Python.xs: In function `XS_Inline__Python_py_call_method': Python.xs:293: `Py_TPFLAGS_HEAPTYPE' undeclared (first use in this function) Python.xs:293: (Each undeclared identifier is reported only once Python.xs:293: for each function it appears in.) make: *** [Python.o] Error 1