Unable to build libpython2.5.so on OS X 10.4

elwinter elwinter at verizon.net
Thu May 7 11:56:50 EDT 2009


Thanks for the response. I knew about the .dylib suffix, but that's
not being built either, even when I supply the --enable-shared option
to configure. I also tried the --enable-unicode configure option, but
no joy. Might there be some additional OS X package I need to install
to get this to work?


On May 7, 11:45 am, Christian Heimes <li... at cheimes.de> wrote:
> Eric Winter schrieb:
> > Hi all. I'm trying to build some internal code that needs to link
> > against libpython2.5.so on a OS X 10.4 (Tiger) machine. It seems that
> > no matter what combination of options and environment variables I give
> > to the configure script from python 2.5.1, all I get is the
> > libpython2.5.a (the static library). I've googled the problem and
> > searched the comp.lang.python archives, but I have been unable to find
> > anything that works.
> > Is there some special magic I have to invoke to do this? I've not done
> > any Mac development, so there may be some obvious point I am missing.
> > The Python README file and configure script comments are not getting
> > me very far.
> You have to start with a clean plate and use the --enable-shared option
> to configure:
> make distclean
> ./configure --enable-unicode=ucs4 --enable-shared
> make
> That will give you a libpython2.5.dylib. The suffix for shared libraries
> is .dylib on On Mac OS X, not .so!
> Christian

More information about the Python-list mailing list