I'm trying to get Inline::Python working on OSX 10.3. I have installed
the framework build of 2.4.1 and am able to use it, run scripts, etc.
Inline seemd to install fine (I didn't think to test Inline::C before
installing Inline::Python). When I installed Inline::Python, however,
it asked me:
> $ perl Makefile.PL
> Found these python executables on your PATH:
> 1. /usr/local/bin/python
> 2. /usr/bin/python
> Use which? [1] Using /usr/local/bin/python
>
> This python's configuration files are messed up. You'll have have to
> answer the questions yourself. Here is what Python said:
>
> Extra Libs: None
> Python Library: None/config/None
> Include Path: None
>
> 1. LIBS option. I need to know what extra libraries, if any,
are required by this build of python. I recommend this:
> None
>
> Enter extra libraries (e.g. -lfoo -lbar) [None]
> 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:
>
> Which? Or enter another. [1]
/Library/Frameworks/Python.framework/Versions/2.4/Python
> 3. INCLUDE option. The location of the python include files.
> Inline::Python needs these to compile.
>
> Here are the locations I know about:
>
> Which? Or enter another. [1]
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/
I've asked on the PythonMac-SIG list, and the answer there was to create
symlinks from the above files to more typical places:
$ sudo ln -s
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
/usr/local/include/python2.4
$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/Python
/usr/local/lib/libpython2.4.dylib
However, that didn't change the behavior I am seeing (below). I've
tried fiddling with the things I gave it, and the include dir seems to
be correct, but when I run something that uses Inline, I get the following:
> $ perl test.pl Can't make loaded symbols global on this platform
while loading /Library/Perl//darwin/auto/Inline/Python/Python.bundle at
/Library/Perl//darwin/DynaLoader.pm line 229.
> dyld: /usr/local/bin/perl Undefined symbols:
> _PyCallable_Check
> _PyClass_Type
...much removed...
> __Py_NoneStruct
> __Py_TrueStruct
> Failed to autogenerate /Users/elis/code/play/perl/_Inline/config.
>
> at test.pl line 13
> BEGIN failed--compilation aborted at test.pl line 13.
Any thoughts on what I am doing wrong?
Thanks for any input,
Eli